NanoHTTPD Cross-site Scripting vulnerability
Moderate severity
GitHub Reviewed
Published
Feb 25, 2021
to the GitHub Advisory Database
•
Updated Sep 12, 2023
Description
Published by the National Vulnerability Database
Feb 23, 2021
Reviewed
Feb 24, 2021
Published to the GitHub Advisory Database
Feb 25, 2021
Last updated
Sep 12, 2023
An issue was discovered in RouterNanoHTTPD.java in NanoHTTPD through 2.3.1. The GeneralHandler class implements a basic GET handler that prints debug information as an HTML page. Any web server that extends this class without implementing its own GET handler is vulnerable to reflected XSS, because the GeneralHandler GET handler prints user input passed through the query string without any sanitization.
References