Skip to content

Conversation

@Napalys
Copy link
Contributor

@Napalys Napalys commented Mar 13, 2025

Added a taint step for unescape.
Closes #19003

@Napalys Napalys marked this pull request as ready for review March 13, 2025 12:10
Copilot AI review requested due to automatic review settings March 13, 2025 12:10
@Napalys Napalys requested a review from a team as a code owner March 13, 2025 12:10
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for the unescape function by introducing an additional taint step.

  • Added a new function FooBar in tst.js to test the behavior of unescape.
  • Updated the change notes to document the introduction of the taint step for unescape.

Reviewed Changes

Copilot reviewed 2 out of 4 changed files in this pull request and generated no comments.

File Description
javascript/ql/test/query-tests/Security/CWE-079/DomBasedXss/tst.js Added FooBar function that tests unescape taint propagation
javascript/ql/lib/change-notes/2025-03-13-unescape.md Documented the addition of unescape taint step
Files not reviewed (2)
  • javascript/ql/lib/semmle/javascript/dataflow/TaintTracking.qll: Language not supported
  • javascript/ql/test/query-tests/Security/CWE-079/DomBasedXss/Xss.expected: Language not supported

Tip: Copilot only keeps its highest confidence comments to reduce noise and keep you focused. Learn more

erik-krogh
erik-krogh previously approved these changes Mar 13, 2025
Copy link
Contributor

@erik-krogh erik-krogh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

Assuming DCA results look good when they're done.

(Remember to comment in the original issue).


Edit: Oh, you need to accept some more test outputs.

@Napalys Napalys merged commit 28d1152 into github:main Mar 13, 2025
13 checks passed
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.

js taint tracking libs - add unescape as taint propagator

3 participants