id: discuz-api-pathinfo

info:
  name: Discuz! X2.5 - Path Disclosure
  author: ritikchaddha
  severity: low
  description: Discuz! X2.5 api.php path disclosure vulnerability
  reference:
    - https://crx.xmspace.net/discuz_x25_api_php.html
    - http://www.1314study.com/t/87417.html
  classification:
    cpe: cpe:2.3:a:comsenz:discuz\\!:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: comsenz
    product: discuz\\!
    shodan-query: title:"Discuz!"
    fofa-query: title="Discuz!"
  tags: discuz,info,disclosure,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/api.php?mod[]=auto'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '.php</b> on line'
          - 'function.array'
        condition: and

      - type: word
        part: header
        words:
          - 'text/html'

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