We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
community-plugins/packages/location/leaflet/index.js
Line 24 in 30f50e5
Lines 10 to 20 in 30f50e5
L19 introduce XSS. Html content coming from the label query parameter will be inserted in insecure way.
label
https://github.com/Leaflet/Leaflet/blob/142f94a9ba5757f7e7180ffa6cbed2b3a9bc73c9/src/layer/Popup.js#L393-L406
Fast forward, this will call _updateContent which will set the div popup innerHTML to content which in our case is going to be label. https://github.com/Leaflet/Leaflet/blob/142f94a9ba5757f7e7180ffa6cbed2b3a9bc73c9/src/layer/DivOverlay.js#L273-L281
_updateContent
innerHTML
content
Example label query param: <img%20src=x%20onerror=alert(document.cookie)>
<img%20src=x%20onerror=alert(document.cookie)>
The text was updated successfully, but these errors were encountered:
No branches or pull requests
community-plugins/packages/location/leaflet/index.js
Line 24 in 30f50e5
community-plugins/packages/location/leaflet/index.js
Lines 10 to 20 in 30f50e5
L19 introduce XSS. Html content coming from the
label
query parameter will be inserted in insecure way.https://github.com/Leaflet/Leaflet/blob/142f94a9ba5757f7e7180ffa6cbed2b3a9bc73c9/src/layer/Popup.js#L393-L406
Fast forward, this will call
_updateContent
which will set the div popupinnerHTML
tocontent
which in our case is going to belabel
.https://github.com/Leaflet/Leaflet/blob/142f94a9ba5757f7e7180ffa6cbed2b3a9bc73c9/src/layer/DivOverlay.js#L273-L281
Example
label
query param:<img%20src=x%20onerror=alert(document.cookie)>
The text was updated successfully, but these errors were encountered: