-
Notifications
You must be signed in to change notification settings - Fork 1.9k
JS: Add support for unescape
#19009
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JS: Add support for unescape
#19009
Conversation
There was a problem hiding this 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
There was a problem hiding this 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.
Added a taint step for
unescape.Closes #19003