We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
OrmFieldAsSource
1 parent 67612e6 commit 85782ffCopy full SHA for 85782ff
ruby/ql/lib/codeql/ruby/security/XSS.qll
@@ -324,7 +324,9 @@ module StoredXss {
324
OrmFieldAsSource() {
325
exists(DataFlow::CallNode subSrc |
326
OrmTracking::flow(subSrc, this.getReceiver()) and
327
- subSrc.(OrmInstantiation).methodCallMayAccessField(this.getMethodName())
+ subSrc.(OrmInstantiation).methodCallMayAccessField(this.getMethodName()) and
328
+ this.getNumberOfArguments() = 0 and
329
+ not exists(this.getBlock())
330
)
331
}
332
0 commit comments