Closed exploit-io closed 6 months ago
I solved this issue by myself ...
Care to share the solution with the rest of us? We're all learning. 👍🏻
@geeknik @exploit-io , we have integration tests for every part in fuzzing and full setup to reproduce / try it out so that's a good place to start https://github.com/projectdiscovery/nuclei/blob/dev/integration_tests/fuzz/fuzz-body-json-sqli.yaml
$ make fuzzplayground
# ./fuzzplayground
In another shell explore and run
integration_tests/fuzz/*
integration_tests/fuzz/testData
For nested json / xml etc you need to use . notation ex: user.email
@geeknik This is the Solution
id: eio-test-sqli
info:
name: Time Based SQLi
author: exploitio
variables:
# If Changed, Check the DSL Matcher
time: 2
http:
- pre-condition:
- type: dsl
condition: or
dsl:
- 'method == "GET"'
- 'method == "POST"'
- 'method == "DELETE"'
- 'method == "PUT"'
- 'method == "PATCH"'
payloads:
# Escape Initial Statements
injection:
- "'; select sleep({{time}})-- "
- "[whatever]"
fuzzing:
- part: query
type: postfix
mode: single
fuzz:
- "{{injection}}"
- part: body
type: postfix
mode: single
fuzz:
- "{{injection}}"
- part: cookie
type: postfix
mode: single
fuzz:
- "{{injection}}"
stop-at-first-match: true
matchers:
- type: dsl
name: Time
dsl:
- "duration>=2"
@tarunKoyalwar Thanks for your support
@geeknik This is the Solution
Looks awesome, glad you got it working. 👍🏻
hi, i wanted to ask, i see tha tu can fuzz the body, but how can u give the body at first?
Hello, I am working on a Penetration Testing Automation and creating my own Fuzzing Templates (
-dast
Templates). It is Unclear how to fuzz Http Headers, and body of a JSON or XML Request. as an Example I want to Fuzz the Following Request:or an Example For XML:
Can You give me an Example Template for this?