Rare ASP.NET request validation bypass using request encoding
ASP.NET request validation can be bypassed when errors are ignored, using request encoding techniques. This allows stored cross-site scripting attacks.
soroush.me
Published on soroush.me
Article’s PDF: https://soroush.me/downloadable/RareASP.NETRequestValidationBypassUsingRequestEncoding.pdf
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the request validation feature does not properly decode or normalise encoded input when error handling is set to ignore, allowing malicious payloads to pass through.
Impact
An attacker could perform stored cross-site scripting attacks, potentially executing scripts in victims' browsers.
What the attacker needed
ASP.NET request validation errors are ignored
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
ASP.NET is a web framework that tries to block dangerous input like scripts. If a setting makes it ignore errors, an attacker can encode the input in a special way to sneak a script past the filter. That script then runs in other users' browsers, which is called stored cross-site scripting.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.