id: exposed-jquery-file-upload

info:
  name: BlueImp jQuery-File-Upload - Arbitrary File Upload
  author: dhiyaneshDk
  severity: critical
  description: BlueImp jQuery-File-Upload does not require validation to upload files to the server and  does not exclude file types, which can lead to a remote code execution vulnerability.
  reference:
    - https://www.exploit-db.com/exploits/45584
    - https://github.com/blueimp/jQuery-File-Upload/blob/master/server/php/UploadHandler.php
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 9.8
    cwe-id: CWE-434
  metadata:
    max-request: 1
  tags: exposure,jquery,edb,misconfig

http:
  - method: GET
    path:
      - "{{BaseURL}}/jquery-file-upload/server/php/"

    matchers-condition: and
    matchers:
      - type: regex
        regex:
          - '^{\"files\":'
        part: body

      - type: word
        words:
          - "text/plain"
        part: header
# digest: 4a0a00473045022030d53b9152e1513c3423d7cdcb1b4d794cd54be61b903513a98849ef85a7a169022100bfb0a8e2682ffeb9d07fabd8b1a238debd4d25a1790fe0b672c7289916f12b56:922c64590222798bb761d5b6d8e72950