Skip to content

docs(nuclei): add skipping secret file spec #64

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

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 24 additions & 1 deletion tools/nuclei/authenticated-scans.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,29 @@ Since authentication can be done in multiple ways, for example, using 3rd party
- **Hashicorp Vault**
- **AWS Secrets Manager**

### Skipping Secret File

<Note>This feature is available in Nuclei **v3.3.1**.</Note>

If you provide a secret file to the Nuclei engine, it will automatically configure authentication or authorization for each request in the executed templates. In case you want to skip the secret configuration from the secret file and instead use hardcoded secrets or variables in specific templates, you can use the `skip-secret-file` _(bool)_ option. By setting this property to **true**, Nuclei will not apply the secrets to each request in that templates.

**Example**

```yaml
variables:
username: foo
password: bar

http:
- raw:
- |
GET /some-restricted-page HTTP/1.1
Host: {{Hostname}}
Accept: application/json
Authorization: Basic {{base64(concat(username, ":", password))}}
skip-secret-file: true
```
## Secret File Formats
Expand Down Expand Up @@ -273,7 +296,7 @@ info:
WordPress Login template to use in workflows for authenticated wordpress testing.
tags: wordpress,login
requests:
http:
- raw:
- |
POST /wp-login.php HTTP/1.1
Expand Down