-
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
base: main
Are you sure you want to change the base?
Conversation
javascript/ql/lib/semmle/javascript/security/dataflow/RemoteFlowSources.qll
Fixed
Show fixed
Hide fixed
javascript/ql/lib/semmle/javascript/security/dataflow/RemoteFlowSources.qll
Fixed
Show fixed
Hide fixed
javascript/ql/lib/semmle/javascript/security/dataflow/RemoteFlowSources.qll
Fixed
Show fixed
Hide fixed
javascript/ql/lib/semmle/javascript/security/dataflow/RemoteFlowSources.qll
Fixed
Show fixed
Hide fixed
javascript/ql/lib/semmle/javascript/security/dataflow/RemoteFlowSources.qll
Fixed
Show fixed
Hide fixed
I'm wondering which other properties being set on elements might need to be treated as XSS sinks, so that I don't fix up just I'll see if I can copy what's done in the existing library. I'm thinking that |
javascript/ql/lib/semmle/javascript/security/dataflow/DomBasedXssCustomizations.qll
Outdated
Show resolved
Hide resolved
javascript/ql/lib/semmle/javascript/security/dataflow/RemoteFlowSources.qll
Outdated
Show resolved
Hide resolved
You might be able to model this as an |
…ater Threat Model
I'm not 100% sure how to implement this, but I had a go in I wasn't totally sure how to define If I write a simple query to select dom-based XSS sinks, having removed my hardcoded definition of the Angular-Renderer2-innerHTML sink in import javascript
import semmle.javascript.security.dataflow.DomBasedXssCustomizations::DomBasedXss
from Sink sink
select sink I don't know which bit of the library uses the various |
Sorry, you'll have to do both:
The reason is that |
Pull Request checklist
All query authors
.qhelp
. See the documentation in this repository.Internal query authors only
.ql
,.qll
, or.qhelp
files. See the documentation (internal access required).