Browse / CVEs / CVE-2021-41097
CVE-2021-41097· aurelia / path· CWE-1321
Aurelia-Path < 1.1.7 - Prototype Pollution
highseverity
7.5CVSS score
4.9%likelihood of exploitation, next 30 days
92%of all CVEs are less likely
Readycheck to confirm it
Aurelia-path before 1.1.7 contains a prototype pollution caused by parsing malicious URL parameters, letting attackers modify Object.prototype, exploit requires the application to parse user-controlled URLs.
Impact
Update to version 1.1.7 or later.
Fix
Aurelia-path parseQueryString function was found vulnerable to prototype pollution via crafted __proto__ URL parameters.
How to confirm it
Send: GET {{BaseURL}}/blog/?__proto__[polluted]=polluted
Positive when: status_code == 200 and contains_all(body, "aurelia-path", "parseQueryString") and contains_any(body, "1.1.0", "1.1.1", "1.1.2", "1.1.3", "1.1.4", "1.1.5", "1.1.6")Run it with nuclei: nuclei -id CVE-2021-41097 -u <target>
The full check
id: CVE-2021-41097
info:
name: Aurelia-Path < 1.1.7 - Prototype Pollution
author: 0x_Akoko
severity: high
description: |
Aurelia-path before 1.1.7 contains a prototype pollution caused by parsing malicious URL parameters, letting attackers modify Object.prototype, exploit requires the application to parse user-controlled URLs.
impact: |
Update to version 1.1.7 or later.
remediation: |
Aurelia-path parseQueryString function was found vulnerable to prototype pollution via crafted __proto__ URL parameters.
reference:
- https://github.com/aurelia/path/issues/44
- https://security.snyk.io/vuln/SNYK-JS-AURELIAPATH-1579475
- https://nvd.nist.gov/vuln/detail/CVE-2021-41097
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H
cvss-score: 7.5
cwe-id: CWE-1321
metadata:
max-request: 1
verified: true
vendor: aurelia
product: path
shodan-query: http.component:"aurelia"
tags: cve,cve2021,aurelia,prototype-pollution,javascript,passive,vuln
http:
- method: GET
path:
- "{{BaseURL}}/blog/?__proto__[polluted]=polluted"
matchers:
- type: dsl
dsl:
- 'status_code == 200'
- 'contains_all(body, "aurelia-path", "parseQueryString")'
- 'contains_any(body, "1.1.0", "1.1.1", "1.1.2", "1.1.3", "1.1.4", "1.1.5", "1.1.6")'
condition: and
extractors:
- type: regex
group: 1
part: body
regex:
- 'data-version="([0-9.]+)"'
- 'version["\s:]+([0-9.]+)'References
- https://github.com/aurelia/path/issues/44
- https://security.snyk.io/vuln/SNYK-JS-AURELIAPATH-1579475
- https://nvd.nist.gov/vuln/detail/CVE-2021-41097
Use this check only on systems you are authorised to test. Where the data comes from