Skip to content

Commit 695e728

Browse files
committed
Ruby: Lower access path limit to 1 for OrmTracking
1 parent dddba32 commit 695e728

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)