Skip to content

what if there's Json deserializations before the injection payload is executed by SQL? #5892

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

Open
macarthor opened this issue Apr 15, 2025 · 1 comment

Comments

@macarthor
Copy link

hi community,

real projects usually use Json deserializations like FastJson/Jackson/Gson to convert POST Json payload to specific beans, and then send the beans to SQL execution.

the injection payload cannot be deserialized to such specific beans, so json exception is thrown, and the exception is sent back to client i.e. sqlmap. the payload has not reached SQL execution, so sqlmap cannot really inject the database.

what to do in this case?

sorry i cannot provide any snippet or test environment. it's a business vulnerability test which is over, so testing it now or giving any information is illegal... but i believe the community can understand what i said...

@Amzza0x00
Copy link

If you cannot control the field name and it is a strongly typed Bean, then there is no injection

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@macarthor @Amzza0x00 and others