漏洞描述
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.
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
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.]+)'
# digest: 4a0a00473045022100f6e62fcfca799eeeb690bb18f5197daa7570c26e222f488e7cc696968ccf7e6d022062ea2f138952f0f98e03f14cce0f6fc8ed8419731ab69d46b944b3631702e9d5:922c64590222798bb761d5b6d8e72950