This affects the package hellojs before 1.18.6. The code get the param oauth_redirect from url and pass it to location.assign without any check and sanitisation. So we can simply pass some XSS payloads into the url param oauth_redirect, such as javascript:alert(1).
References
Link | Resource |
---|---|
https://github.com/MrSwitch/hello.js/blob/3b79ec93781b3d7b9c0b56f598e060301d1f3e73/dist/hello.all.js%23L1545 | Broken Link |
https://github.com/MrSwitch/hello.js/commit/d6f5137f30de6e0ef7048191ee6ae575fdc2f669 | Patch Third Party Advisory |
https://snyk.io/vuln/SNYK-JS-HELLOJS-1014546 | Third Party Advisory |
https://github.com/MrSwitch/hello.js/blob/3b79ec93781b3d7b9c0b56f598e060301d1f3e73/dist/hello.all.js%23L1545 | Broken Link |
https://github.com/MrSwitch/hello.js/commit/d6f5137f30de6e0ef7048191ee6ae575fdc2f669 | Patch Third Party Advisory |
https://snyk.io/vuln/SNYK-JS-HELLOJS-1014546 | Third Party Advisory |
Configurations
History
21 Nov 2024, 05:37
Type | Values Removed | Values Added |
---|---|---|
References | () https://github.com/MrSwitch/hello.js/blob/3b79ec93781b3d7b9c0b56f598e060301d1f3e73/dist/hello.all.js%23L1545 - Broken Link | |
References | () https://github.com/MrSwitch/hello.js/commit/d6f5137f30de6e0ef7048191ee6ae575fdc2f669 - Patch, Third Party Advisory | |
References | () https://snyk.io/vuln/SNYK-JS-HELLOJS-1014546 - Third Party Advisory |
Information
Published : 2020-10-06 15:15
Updated : 2024-11-21 05:37
NVD link : CVE-2020-7741
Mitre link : CVE-2020-7741
CVE.ORG link : CVE-2020-7741
JSON object : View
Products Affected
hello.js_project
- hello.js
CWE
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')