-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
JavaScript CodeQL library updates: new Angular sink(s) #18397
Draft
aegilops
wants to merge
22
commits into
github:main
Choose a base branch
from
aegilops:angular-sources-sinks
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 18 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
09e4c78
New XSS sink - writing to innerHTML using the Angular Renderer2 API
aegilops 0f64822
New remote source - reading from an @Input() decorated class member
aegilops a23f4ee
Merge branch 'main' into angular-sources-sinks
aegilops 4773917
Formatting
aegilops 4891c1e
Added QLdoc and simplified QL in source class
aegilops 7128700
Simplified AngularInputUse class
aegilops aba8be2
Changelog for Angular source/sink update
aegilops 8dac00a
Change from getParameter() to getArgument()
aegilops e414b8c
Remove @Input() decorated members as remote sources, in favour of a l…
aegilops 6fb2013
Update changelog note to remove new source
aegilops 322c731
Attempt at AttributeDefinition to generalise Angular Renderer2 support
aegilops 564df36
Merge branch 'main' of https://github.com/github/codeql into angular-…
aegilops 820fe6c
Formatting
aegilops 4530118
Comment out hardcoded definition of sink
aegilops 2dc9e7b
Moved def from AngularJSCore to Angular2
aegilops 4b57d5f
Added XSS sink for innerHTML/outerHTML using new Angular attribute def
aegilops 98b4c35
Set doc string on getElementNode predicate
aegilops 62599b2
Formatted
aegilops e7881a8
Fix typo
aegilops b07e801
Add new test for new XSS sink, update `expected` to match
aegilops 1ada511
Merge branch 'main' into angular-sources-sinks
aegilops da68a04
Merge branch 'angular-sources-sinks' of https://github.com/aegilops/c…
aegilops File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
javascript/ql/lib/change-notes/2025-01-03-angular-source-sink.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
category: majorAnalysis | ||
--- | ||
* Added new XSS sink where `InnerHTML` is assigned to with the Angular Renderer2 API | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This needs to be
innerHTML
and also mentionouterHTML