Skip to content

JS: Add js/code-injection sink for script tags in React #5056

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

Merged
merged 3 commits into from
Feb 2, 2021

Conversation

erik-krogh
Copy link
Contributor

Libraries like react-helmet allows for writing header tags in React.
I've therefore added the body of a script tag as a code-injection sink.

(And I additionally added a test that <script src="sink" /> in React was supported for client-side-unvalidated-url-redirection).

@github-actions github-actions bot added the JS label Jan 29, 2021
@erik-krogh
Copy link
Contributor Author

An evaluation shows performance within the margin of error, and no change in results.

@erik-krogh erik-krogh marked this pull request as ready for review February 2, 2021 09:08
@erik-krogh erik-krogh requested a review from a team as a code owner February 2, 2021 09:08
@codeql-ci codeql-ci merged commit 4fdbda3 into github:main Feb 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants