Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix XSS Vulnerability #86

Merged
merged 1 commit into from
Mar 29, 2019
Merged

Fix XSS Vulnerability #86

merged 1 commit into from
Mar 29, 2019

Conversation

jason0x90
Copy link
Contributor

icingaweb2-module-map is vulnerable to cross site scripting attacks via injected javascript, for example:

map?default_lat=35.92464453144099&default_long=-120.38818359375001;alert(%27xss%20verified%27)&default_zoom=6&view=compact

would inject a javascript payload.

I've made a patch here to intval() variables that will only be ints, and then lat/long is filtered to only 0-9-., chars, and the rest just strip out '; chars so you can't escape out of the printed javascript.

icingaweb2-module-map is vulnerable to cross site scripting attacks via injected javascript, for example:

map?default_lat=35.92464453144099&default_long=-120.38818359375001;alert(%27xss%20verified%27)&default_zoom=6&view=compact

would inject a javascript payload.

I've made a patch here to intval() variables that will only be ints, and then lat/long is filtered to only 0-9-., chars, and the rest just strip out '; chars so you can't escape out of the printed javascript.
@nbuchwitz nbuchwitz merged commit 1a3d0b4 into nbuchwitz:master Mar 29, 2019
@nbuchwitz
Copy link
Owner

Thanks!

@nbuchwitz nbuchwitz added this to the v1.2.0 milestone Mar 29, 2019
@nbuchwitz nbuchwitz added the bug label Mar 29, 2019
@nbuchwitz nbuchwitz self-requested a review March 29, 2019 16:57
@nbuchwitz nbuchwitz modified the milestones: v1.2.0, v2.0.0 Jan 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants