Burp Suite extension is able to find reflected XSS on page in real-time while browsing on web-site and include some features as:
- Highlighting of reflection in the response tab.
- Test which symbols is allowed in this reflection.
- Analyze of reflection context.
- Content-Type whitelist.
How to use
Each burp issue includes detailed info about reflected parameter, such as:
- Symbols that allowed in this reflection.
- Highlighting of reflection value in response.
- Reflection context analyze.
Allowed sybmols analyse
When the reflection is found and option “Aggressive mode” is activated, the reflector will check which of special-symbols are displayed on this page from vulnerable parameters. For this action, reflector compose additional requests for each reflected parameter. In example, while we was working with elkokc.ml website reflector are generated issue with a detailed information about reflection. There are 3 reflection for “search” parameter and each of them pass special symbols. Because of the possibility of displaying special characters issue severity is marked as high. Every time when reflection is found reflector define severity and generate burp issue.
In the “Check context” mode reflector it’s not only show special characters that are reflected to the page, but also figure out a character that allows to break the syntax in the page code. In example you may see server response by reflector extension. Parameter “search” was send with a payload – [email protected]<“‘[email protected] As a result, it was reflected a few times in a different contexts.
- reflection with next characters – ‘,”, < and the double quote allow to exit from this context and write HTML code.
- reflection with next characters – “, < and the bracket allow to inject HTML-tags.
- reflection with next characters – ‘,”, < and the single quote allow to exit from js variable context and write malicious code.
In the issue information it’s marked as:
- Context char – character that allows to breake the syntax.
- Other chars – other chars that are reflected without context.
- Scope only – allow reflector to work only with a scope added websites.
- Agressive mode – reflector generates additional request with a test payload .
- Check context – activate check context mode.
How to compile
Compiled by jdk 1.7
- javac.exe -d build src/burp/*.java
- jar.exe cf plugin.jar -C build burp