cherokee / webserver

Cherokee Web Server
GNU General Public License v2.0
568 stars 104 forks source link

Reflected XSS in handler_server_info #1227

Closed mmmds closed 5 years ago

mmmds commented 5 years ago

Requested URL is improperly displayed on the About page. The problem occurs on default configuration in Cherokee and Cheroke administrator panel. XSS in administrator panel can be used to reconfigure the server and execute arbitrary commands.

PoC

http://127.0.0.1/about/"><script>alert(1)</script>
http://127.0.0.1:9090/about/"><script>alert(1)</script>

Setup:

found by: Mateusz Kocielski, Michał Dardas from LogicalTrust

skinkie commented 5 years ago

@mmmds Thanks for doing the research on our code and reporting the issue. I have committed a patch and qa-test to our master branch.