-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Authenticated scan does not work with input files (-list
, -input-mode
)
#5506
Comments
hi @ehsandeep , have a look to this issue please |
The issue seems to be duplicated with #5493 |
@nth347 Applied fix here: Can you try this pr? |
hi @RamanaReddy0M , It works! Thanks so much for the fix! |
hi everyone, I find out that after merging the fix to the I mean:
The resulting nuclei binary works with dynamic auth templates on fuzzing as expected.
The resulting nuclei binary work does not work as expected. Here is the error:
can you look into this, @RamanaReddy0M ? |
➜ nuclei git:(dev) ✗ cat secrets.yaml
dynamic:
- template: login.yaml
variables:
- key: username
value: name1
- key: password
value: pass1
type: bearertoken
domains:
- 127.0.0.1:5002
input: http://127.0.0.1:5002
token: "{{auth_token}}"
➜ nuclei git:(dev) ✗ go run . -im openapi -list openapi-5493.json -p http://127.0.0.1:8080 -ps -sf secrets.yaml -t sqli.yaml -v
__ _
____ __ _______/ /__ (_)
/ __ \/ / / / ___/ / _ \/ /
/ / / / /_/ / /__/ / __/ /
/_/ /_/\__,_/\___/_/\___/_/ v3.3.2
projectdiscovery.io
[VER] Using http://127.0.0.1:8080 as proxy server
[VER] Started metrics server at localhost:9092
[INF] Current nuclei version: v3.3.2 (latest)
[INF] Current nuclei-templates version: v10.0.0 (latest)
[WRN] Scan results upload to cloud is disabled.
[INF] New templates added in latest release: 14
[INF] Templates loaded for current scan: 1
[WRN] Loading 1 unsigned templates for scan. Use with caution.
[INF] Targets loaded for current scan: 1
[INF] Pre-fetching secrets from authprovider[s]
[VER] [login] Sent HTTP request to http://127.0.0.1:5002/users/v1/login
[VER] [sqli-test] Sent HTTP request to http://127.0.0.1:5002/api/v1/test
[VER] [sqli-test] Sent HTTP request to http://127.0.0.1:5002/api/test
[sqli-test:sql_error] [http] [critical] http://127.0.0.1:5002/api/test [path:/api] [GET] It works for me! |
I pulled the repo again and it works for me now, thanks @RamanaReddy0M |
It's pefectly fine to run this as an authenticated scan:
But when I specifying target as a Burp file, it does not work:
I tried with proxify logs and got the same error, no request was sent to Burp proxy.
The text was updated successfully, but these errors were encountered: