Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
a1a73b33
Commit
a1a73b33
authored
Nov 16, 2020
by
Michael Eddington
Committed by
Nick Gaskill
Nov 16, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document header fuzzing with API Fuzzing
parent
c7c3323e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
85 additions
and
0 deletions
+85
-0
changelogs/unreleased/235436-add-header-fuzzing-docs.yml
changelogs/unreleased/235436-add-header-fuzzing-docs.yml
+5
-0
doc/user/application_security/api_fuzzing/index.md
doc/user/application_security/api_fuzzing/index.md
+80
-0
No files found.
changelogs/unreleased/235436-add-header-fuzzing-docs.yml
0 → 100644
View file @
a1a73b33
---
title
:
Support fuzzing HTTP headers with API Fuzzing
merge_request
:
47727
author
:
type
:
added
doc/user/application_security/api_fuzzing/index.md
View file @
a1a73b33
...
...
@@ -638,6 +638,86 @@ variables:
FUZZAPI_OVERRIDES_INTERVAL
:
300
```
### Header Fuzzing
Header fuzzing is disabled by default due to the high number of false positives that occur with many
technology stacks. When header fuzzing is enabled, you must specify a list of headers to include in
fuzzing.
Each profile in the default configuration file has an entry for
`GeneralFuzzingCheck`
. This check
performs header fuzzing. Under the
`Configuration`
section, you must change the
`HeaderFuzzing`
and
`Headers`
settings to enable header fuzzing.
This snippet shows the
`Quick-10`
profile's default configuration with header fuzzing disabled:
```
yaml
-
Name
:
Quick-10
DefaultProfile
:
Empty
Routes
:
-
Route
:
*Route0
Checks
:
-
Name
:
FormBodyFuzzingCheck
Configuration
:
FuzzingCount
:
10
UnicodeFuzzing
:
true
-
Name
:
GeneralFuzzingCheck
Configuration
:
FuzzingCount
:
10
UnicodeFuzzing
:
true
HeaderFuzzing
:
false
Headers
:
-
Name
:
JsonFuzzingCheck
Configuration
:
FuzzingCount
:
10
UnicodeFuzzing
:
true
-
Name
:
XmlFuzzingCheck
Configuration
:
FuzzingCount
:
10
UnicodeFuzzing
:
true
```
`HeaderFuzzing`
is a boolean that turns header fuzzing on and off. The default setting is
`false`
for off. To turn header fuzzing on, change this setting to
`true`
:
```
yaml
-
Name
:
GeneralFuzzingCheck
Configuration
:
FuzzingCount
:
10
UnicodeFuzzing
:
true
HeaderFuzzing
:
true
Headers
:
```
`Headers`
is a list of headers to fuzz. Only headers listed are fuzzed. For example, to fuzz a
custom header
`X-Custom`
used by your APIs, add an entry for it using the syntax
`- Name: HeaderName`
, substituting
`HeaderName`
with the header to fuzz:
```
yaml
-
Name
:
GeneralFuzzingCheck
Configuration
:
FuzzingCount
:
10
UnicodeFuzzing
:
true
HeaderFuzzing
:
true
Headers
:
-
Name
:
X-Custom
```
You now have a configuration to fuzz the header
`X-Custom`
. Use the same notation to list additional
headers:
```
yaml
-
Name
:
GeneralFuzzingCheck
Configuration
:
FuzzingCount
:
10
UnicodeFuzzing
:
true
HeaderFuzzing
:
true
Headers
:
-
Name
:
X-Custom
-
Name
:
X-AnotherHeader
```
Repeat this configuration for each profile as needed.
## Running your first scan
When configured correctly, a CI/CD pipeline contains a
`Fuzz`
stage and a
`apifuzzer_fuzz`
job. The
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment