Skip to content

JS: Track response data through promises - #22268

Open
theinfosecguy wants to merge 1 commit into
github:mainfrom
theinfosecguy:js-response-threat-promise-chain
Open

JS: Track response data through promises#22268
theinfosecguy wants to merge 1 commit into
github:mainfrom
theinfosecguy:js-response-threat-promise-chain

Conversation

@theinfosecguy

Copy link
Copy Markdown
Contributor

Tracks client response data into promise fulfillment values under the response threat model.

This covers .then(...) chains where response data flows into sinks such as DOM XSS sinks.

Tests:

  • codeql test run javascript/ql/test/query-tests/Security/CWE-079/DomBasedXssWithResponseThreat --search-path=/Users/keshavmalik/Documents/codeql --threads=0
  • codeql test run javascript/ql/test/library-tests/frameworks/ClientRequests javascript/ql/test/query-tests/Security/CWE-079/DomBasedXss javascript/ql/test/query-tests/Security/CWE-079/DomBasedXssWithResponseThreat javascript/ql/test/query-tests/Security/CWE-078/CommandInjection javascript/ql/test/query-tests/Security/CWE-200/FileAccessToHttp.qlref javascript/ql/test/query-tests/Security/CWE-829/InsecureDownload.qlref javascript/ql/test/query-tests/Security/CWE-912/HttpToFileAccess.qlref --search-path=/Users/keshavmalik/Documents/codeql --threads=0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant