webssh2
webssh2 copied to clipboard
Fix header url param to not render html to resolve XSS
Fixes https://github.com/billchurch/webssh2/issues/345
http://localhost:2222/ssh/host/mydevice.local?header=<img src=x onerror=alert('XSS')>
Before:
After:
Note - This could be breaking if someone is using the header for HTML rendering, however, i would say this is still justified.