mirror of
https://github.com/github/codeql.git
synced 2025-12-20 10:46:30 +01:00
Update java/ql/src/experimental/Security/CWE/CWE-352/JsonpInjectionLib.qll
Co-authored-by: Chris Smowton <smowton@github.com>
This commit is contained in:
@@ -100,7 +100,7 @@ class SpringControllerRequestMappingGetMethod extends SpringControllerGetMethod
|
||||
/** A concatenate expression using `(` and `)` or `);`. */
|
||||
class JsonpBuilderExpr extends AddExpr {
|
||||
JsonpInjectionExpr() {
|
||||
getRightOperand().toString().regexpMatch("\"\\)\"|\"\\);\"") and
|
||||
getRightOperand().toString().regexpMatch("\"\\);?\"") and
|
||||
getLeftOperand()
|
||||
.(AddExpr)
|
||||
.getLeftOperand()
|
||||
|
||||
Reference in New Issue
Block a user