Skip to content

Commit 4085c8e

Browse files
authored
Merge pull request github#15866 from hvitved/ruby/orm-tracking-ap-limit
Ruby: Lower access path limit to 1 for `OrmTracking`
2 parents dd5eb98 + 695e728 commit 4085c8e

File tree

1 file changed

+2
-0
lines changed
  • ruby/ql/lib/codeql/ruby/security

1 file changed

+2
-0
lines changed

ruby/ql/lib/codeql/ruby/security/XSS.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,8 @@ private module OrmTracking {
299299
}
300300

301301
predicate isBarrierIn(DataFlow::Node node) { node instanceof DataFlow::SelfParameterNode }
302+
303+
int accessPathLimit() { result = 1 }
302304
}
303305

304306
import DataFlow::Global<Config>

0 commit comments

Comments
 (0)