Merge pull request #5558 from geeknik/patch-62

Create exposed-file-upload-form.yaml
patch-1
Dhiyaneshwaran 2023-01-26 21:10:01 +05:30 committed by GitHub
commit 1afdb28e0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,30 @@
id: exposed-file-upload-form
info:
name: Exposed File Upload Form
author: geeknik
severity: info
metadata:
verified: true
shodan-query: http.html:"multipart/form-data" html:"file"
tags: exposure,upload,form
requests:
- method: GET
path:
- "{{BaseURL}}"
matchers-condition: and
matchers:
- type: regex
regex:
- <form.*?method=("|')?post("|')?.*?>
- <form.*?(?i)(?-i)enctype=("|')?multipart\/form-data("|')?.*?>
- <input.*?type=("|')?file("|')?.*?>
condition: or
- type: regex
regex:
- "type=[\"'](file)[\"']"
- 'id="file"'
condition: or