mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-29 22:23:02 +00:00
42 lines
1.1 KiB
YAML
42 lines
1.1 KiB
YAML
|
|
id: body-multipart-error-sqli
|
||
|
|
|
||
|
|
info:
|
||
|
|
name: fuzzing error sqli payloads in body of multipart form data
|
||
|
|
author: pdteam
|
||
|
|
severity: info
|
||
|
|
description: |
|
||
|
|
This template attempts to find SQL injection vulnerabilities by fuzzing http body of multipart form data (file upload, etc.)
|
||
|
|
This is achieved by performing [ruleType](example: postfix) on value of body form key
|
||
|
|
Note: this is example template, and payloads/matchers need to be modified appropriately.
|
||
|
|
|
||
|
|
http:
|
||
|
|
- filters:
|
||
|
|
- type: dsl
|
||
|
|
dsl:
|
||
|
|
- method != "GET"
|
||
|
|
- method != "HEAD"
|
||
|
|
- contains(content_type, "multipart/form-data")
|
||
|
|
- contains(path, "/user") # for scope of integration test
|
||
|
|
condition: and
|
||
|
|
|
||
|
|
payloads:
|
||
|
|
injection:
|
||
|
|
- "'"
|
||
|
|
- "\""
|
||
|
|
- ";"
|
||
|
|
|
||
|
|
fuzzing:
|
||
|
|
- part: body
|
||
|
|
type: postfix
|
||
|
|
mode: single
|
||
|
|
fuzz:
|
||
|
|
- '{{injection}}'
|
||
|
|
|
||
|
|
stop-at-first-match: true
|
||
|
|
matchers:
|
||
|
|
- type: word
|
||
|
|
words:
|
||
|
|
- "unrecognized token:"
|
||
|
|
- "null"
|
||
|
|
- "SELECTs to the left and right of UNION do not have the same number of result columns"
|