Skip to content

Find all potential initiating GET requests #11598

Answered by RasmusWL
Sim4n6 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Sim4n6. We don't currently model the request method, but Http::Client::Request will give you all outgoing requests, so you should be able to use the code below to find any modeled HTTP client request

private import python
private import semmle.python.dataflow.new.DataFlow
private import semmle.python.Concepts

select any(Http::Client::Request r)

I'm very interested to hear why you only care about GET requests.

If you really need this, I'd be open to help you figure out how we can add the request method to our modeling. However, notice that there will be cases like the one below where it's not possible to know what method will be used

def func(method):
    requests.request(method, "ht…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@Sim4n6
Comment options

@RasmusWL
Comment options

@Sim4n6
Comment options

@Sim4n6
Comment options

Answer selected by Sim4n6
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