Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 458b556

Browse filesBrowse files
committed
Ruby: Allow ORM tracking into ERb templates
1 parent 8587a84 commit 458b556
Copy full SHA for 458b556

File tree

Expand file treeCollapse file tree

1 file changed

+4
-1
lines changed
Filter options
  • ruby/ql/lib/codeql/ruby/security
Expand file treeCollapse file tree

1 file changed

+4
-1
lines changed

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

Copy file name to clipboardExpand all lines: ruby/ql/lib/codeql/ruby/security/XSS.qll
+4-1Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,10 @@ private module OrmTracking {
289289
Shared::isAdditionalXssFlowStep(node1, node2)
290290
}
291291

292-
predicate isBarrierIn(DataFlow::Node node) { node instanceof DataFlow::SelfParameterNode }
292+
predicate isBarrierIn(DataFlow::Node node) {
293+
node instanceof DataFlow::SelfParameterNode and
294+
not node.getLocation().getFile() instanceof ErbFile
295+
}
293296
}
294297

295298
import DataFlow::Global<Config>

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.