Skip to content

CodeQL for Client Side Prototype Polltion #209

Answered by asgerf
msrkp asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @msrkp 👋

First of all a huge thank you for collecting those prototype pollution examples in one place. 🙇‍♂️
Having a collection of real-world examples like this is incredibly useful.

I think you're right to use PrototypePollutionUtility as a starting point. However, it's one of the more complicated queries we have, so if you're new to CodeQL, I'm not sure this is good place to start learning.

Part of the reason this query is so complicated is that it is one of the few data-flow queries that doesn't rely on a source of untrusted data. For example, it will warn about functions that recursively copy properties between objects, even if none of the objects can possibly be controlled by an a…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@msrkp
Comment options

@asgerf
Comment options

Answer selected by criemen
Comment options

You must be logged in to vote
2 replies
@asgerf
Comment options

@pwntester
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants