Skip to content
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

Error parsing JSON POST URL parameter #17

Open
pcastagnaro opened this issue Sep 24, 2019 · 2 comments
Open

Error parsing JSON POST URL parameter #17

pcastagnaro opened this issue Sep 24, 2019 · 2 comments
Labels
bug Something isn't working

Comments

@pcastagnaro
Copy link

Hi,

I'm using this script but it seems this is not reading properly JSON POST parameters.
When I write down a request and set the -p parameter, the script tells the [ERROR]:No injection point found ! (use -p) error:

Request file:

image

Error:

image

image

@swisskyrepo
Copy link
Owner

I will check the problem, can you provide a little bit of context about the big "text" before the JSON data, is it an authentication header, or some data from the request ? Do you have the header "Content-Type: application/json" ?
The parser doesn't seem to go to the JSON check at https://github.com/swisskyrepo/SSRFmap/blob/master/core/requester.py#L80

@swisskyrepo swisskyrepo added the bug Something isn't working label Nov 6, 2019
@3lpsy
Copy link

3lpsy commented Dec 11, 2019

I had an issue with Content-Type: application/json;charset=utf-8. The requester does a hard check for "application/json" so I just removed the trailing charset segment. Maybe change the check to see if Content-Type startes with "application/json"? Or just check if "application/json" is in the Content-Type.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants