Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

17.x port - Stop DOS attacks by making the lexer stop early on evil input #2902

Merged
merged 3 commits into from Jul 26, 2022

Conversation

bbakerman
Copy link
Member

17x port of #2892

…nput

* This stops DOS attacks by making the lexer stop early.

* This stops DOS attacks by making the lexer stop early. Added BadSituationsRunner

* This stops DOS attacks by making the lexer stop early. Added BadSituationsRunner with comments

* This stops DOS attacks by making the lexer stop early. Added per query jvm settings

* This stops DOS attacks by making the lexer stop early. Added whitespace counts separate from token counts

* This stops DOS attacks by making the lexer stop early. Added whitespace counts separate from token counts - tweaks

* This stops DOS attacks by making the lexer stop early. Added whitespace counts separate from token counts - tweaks

* This stops DOS attacks by making the lexer stop early. Added whitespace counts separate from token counts - tweaks

* This stops DOS attacks by making the lexer stop early.Use array instead of map

* This stops DOS attacks by making the lexer stop early.Use array instead of map with comments

* PR feedback - renamed options and added SDL options
# Conflicts:
#	src/main/java/graphql/ParseAndValidate.java
#	src/main/java/graphql/parser/GraphqlAntlrToLanguage.java
#	src/main/java/graphql/parser/Parser.java
#	src/main/java/graphql/parser/ParserOptions.java
#	src/main/java/graphql/schema/idl/SchemaParser.java
#	src/test/groovy/graphql/parser/ParserTest.groovy
@bbakerman bbakerman added this to the 17.4 milestone Jul 26, 2022
@bbakerman bbakerman changed the title Stable fix on 17x of pr 2892 17.x port - Stop DOS attacks by making the lexer stop early on evil input Jul 26, 2022
@bbakerman bbakerman merged commit cb88645 into 17.x Jul 26, 2022
@seanf
Copy link

seanf commented Sep 14, 2022

Just to make this backport easier to find, this is for CVE-2022-37734.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants