Reporter Kushal Jaisingh
`# Exploit Title: nZEDb v0.7.3.3 - Reflected XSS
# Date: August 7, 2017
# Software Link: https://nzedb.com/
# Exploit Author: Kushal Jaisingh
# Contact: https://ca.linkedin.com/in/kushaljaisingh
# Category: WebApps, XSS
Reflected XSS is possible in nZEDb due to insufficient input sanitization through URL tampering. By default, when a user attempts to navigate to a page which does not exist in nZEDb, a non-static 404 page will be displayed which echos back the URL entered by the user. Upon further inspection of viewing the page source, special characters such as <> are echoed back without being properly encoded, thus enabling the possibility for XSS.
2. Proof of Concept
To remediate against such vulnerabilities, a static 404 page should be configured which does not display back any input provided by the user. All user input should be considered untrusted by default. This includes but is not limited to input via URL tampering as well.