Skip to content
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

Implement 9 new Nuclei Templates for ASVS 4.0.3 Compliance Checks #4

Merged
merged 131 commits into from
Sep 11, 2024
Merged
Show file tree
Hide file tree
Changes from 124 commits
Commits
Show all changes
131 commits
Select commit Hold shift + click to select a range
b81baa1
Update info.md
nameddorna May 24, 2023
3439610
Update index.md
nameddorna May 28, 2023
9c70535
Update index.md
nameddorna May 28, 2023
a92a1a7
Update index.md
nameddorna May 28, 2023
378ce15
Update info.md
nameddorna May 28, 2023
05b6970
Create README.md
nameddorna May 28, 2023
fc61924
Create MIT LICENSE
Snbig May 28, 2023
bdbca99
Update index.md
nameddorna May 29, 2023
0588e75
Update index.md
nameddorna Jun 16, 2023
2ec85db
Create CONTRIBUTING.md
nameddorna Jun 16, 2023
bbe49f8
Update and rename tab_example.md to tab_contributing.md
nameddorna Jun 16, 2023
37d3cc1
Update README.md
nameddorna Jun 16, 2023
5a27a84
Update info.md
nameddorna Jun 17, 2023
58f77bb
Update README.md
Snbig Jul 14, 2023
86e0d5a
Update README.md
Snbig Jul 17, 2023
f1f8710
Create syntax-checking.yml
Snbig Jul 20, 2023
045c48c
Create template-validate.yml
Snbig Jul 20, 2023
7d5736f
Create templates folder
Snbig Jul 22, 2023
33deafc
Added static vulnerable project as submodule on dev
Snbig Jul 22, 2023
efe4816
Create 13.2.1.yaml
Snbig Aug 4, 2023
037be1d
Update syntax-checking.yml
Snbig Aug 4, 2023
9c7ae76
Update 13.2.1.yaml
Snbig Aug 4, 2023
83a42b3
Create .yamllint
Snbig Aug 4, 2023
4023e9b
Update template-validate.yml
Snbig Aug 4, 2023
0e14a4b
Update 13.2.1.yaml
Snbig Aug 4, 2023
68801e0
Create 9-1-3.yaml
Reza-saeedi Aug 4, 2023
06bf232
Update 13.2.1.yaml
Snbig Aug 4, 2023
d47b6ff
Update 9-3-1.yaml
Reza-saeedi Aug 4, 2023
3bc924e
Rename 9-3-1.yaml to 9.1.3.yaml
Reza-saeedi Aug 4, 2023
91d0fca
Update 13.2.1.yaml
Snbig Aug 18, 2023
aa7c5ae
Create 14.4.1.yaml
Snbig Aug 18, 2023
ce1c075
Update template-validate.yml
Snbig Aug 18, 2023
aaac3de
Update template-validate.yml
Snbig Aug 18, 2023
f713df2
Update template-validate.yml
Snbig Aug 18, 2023
6eb6d61
Update 13.2.1.yaml
Snbig Aug 18, 2023
ab09bc8
Update 14.4.1.yaml
Snbig Aug 18, 2023
74bbfc1
Update template-validate.yml
Snbig Aug 18, 2023
69b158d
Update 14.4.1.yaml
Snbig Aug 18, 2023
58103a1
Update 14.4.1.yaml
Snbig Aug 18, 2023
b2b8f1a
Update 14.4.1.yaml
Snbig Aug 18, 2023
e139939
Update tab_contributing.md
Snbig Aug 20, 2023
0eb82cf
Create 14.4.2.yaml
Snbig Aug 31, 2023
7537fac
Update 14.4.2.yaml
Snbig Aug 31, 2023
8951714
Update README.md
Snbig Sep 12, 2023
26a97a2
Update tab_contributing.md
Snbig Sep 12, 2023
e6108c6
Create 14.4.3.yaml
Snbig Sep 13, 2023
4a4558a
Update 14.4.3.yaml
Snbig Sep 13, 2023
4e7e7cf
Create 14.4.4.yaml
Snbig Sep 27, 2023
c61ed7d
Create 14.4.5.yaml
Snbig Sep 27, 2023
aec60c8
Update 14.4.5.yaml
Snbig Sep 27, 2023
036dbe6
Create 14.4.6.yaml
Snbig Sep 27, 2023
5924035
Create 14.4.7.yaml
Snbig Sep 27, 2023
0d5ccba
Update 13.2.1.yaml
Snbig Sep 29, 2023
9e28ca8
Update Submodule
Snbig Oct 1, 2023
0cb2b6b
Create 14.5.2.yaml
Snbig Oct 6, 2023
e5c8223
Create 14.5.3.yaml
Snbig Oct 6, 2023
a9d0830
Update tab_contributing.md
Snbig Oct 14, 2023
80646a6
Update README.md
Snbig Oct 14, 2023
000dbb1
Update 13.2.1.yaml
Snbig Oct 16, 2023
aadb20d
Create 14.5.1.yaml
Snbig Oct 16, 2023
76b28c4
Update 14.5.1.yaml
Snbig Oct 17, 2023
8d7fa6f
Update 13.2.1 14.5.1
Snbig Oct 17, 2023
ed4f9ed
Add 14.3.2 workflow
Snbig Nov 12, 2023
4731fca
Create 14.2.3.yaml
Snbig Nov 25, 2023
e59032a
Update Submodule
Snbig Nov 25, 2023
5ed6cd1
Update 14.2.3.yaml
Snbig Nov 25, 2023
4f2281d
Create 13.3.1.yaml
Snbig Dec 11, 2023
c5473f8
Update 13.3.1.yaml
Snbig Dec 11, 2023
2114073
Update template-validate.yml
Snbig Dec 11, 2023
6ddf44c
Update template-validate.yml
Snbig Dec 11, 2023
038c711
Update template-validate.yml
Snbig Dec 11, 2023
58f0e24
Create 13.2.2.yaml
Snbig Dec 12, 2023
01d7301
Update template-validate.yml
Snbig Dec 12, 2023
e8010a1
Update submodule
Snbig Dec 12, 2023
a703bb1
Fix reference of 9.1.3.yaml
Snbig Feb 9, 2024
57485bd
Update template-validate.yml
Snbig Aug 18, 2023
adb6278
Update template-validate.yml
Snbig Aug 18, 2023
700fe9f
Update tab_contributing.md
Snbig Aug 20, 2023
56a9545
Update tab_contributing.md
Snbig Sep 4, 2023
fecf53f
Update README.md
Snbig Oct 14, 2023
0dda230
Create 12.1.1.(2).yaml
Snbig Mar 23, 2024
3d6ab7d
Create 12.1.1.(2).yaml
Snbig Mar 23, 2024
e25ad20
Update template-validate.yml
Snbig Mar 23, 2024
b99579d
fix template validation action
Snbig Mar 23, 2024
a38dc86
Add workflow templates
Snbig Mar 23, 2024
eb06e31
Fix workflows
Snbig Mar 23, 2024
ecbc372
Add status badges
Snbig Mar 24, 2024
fe53f0d
Add status badges.
Snbig Mar 24, 2024
d83e8d2
Create 12.6.1.yaml
Ahsraeisi Apr 17, 2024
6d1d1d0
fix template validation action
Ahsraeisi Apr 18, 2024
43eeccb
Vulnerable Page Updated.
Snbig Apr 20, 2024
66460bf
Fix status badge
Snbig Apr 20, 2024
7df30c6
Update Submodule
Snbig Apr 29, 2024
198f60a
Create 5.1.5.yaml
Ahsraeisi May 13, 2024
9940e4e
fix 5.1.5.yaml
Ahsraeisi May 13, 2024
49689c1
fix template validation action
Ahsraeisi May 13, 2024
d049f24
Create 8.2.1.yaml
Ahsraeisi May 31, 2024
900de25
Update 8.2.1.yaml
Ahsraeisi May 31, 2024
3999507
Update 8.2.1.yaml
Ahsraeisi May 31, 2024
41b4679
Add logo README.md
Snbig Jun 9, 2024
7fce617
Update Submodule
Snbig Jul 2, 2024
c484d26
Create 12.3.3.yaml
Ahsraeisi Jul 15, 2024
d90123d
Add LOGO README.md
Snbig Jul 17, 2024
bbdeae8
Fix logo alignment
Snbig Jul 17, 2024
cb091ad
Create 9.1.2.yaml
Ahsraeisi Jul 17, 2024
02fe575
Create 5.5.2.yaml
Ahsraeisi Jul 23, 2024
0d7b739
Add 5.3.3.1.yaml
Ahsraeisi Jul 30, 2024
1287954
Create 5.3.3.2.yaml
Ahsraeisi Aug 21, 2024
07d87a6
Update 5.3.3.1.yaml
Ahsraeisi Aug 25, 2024
bddd39c
Create 5.2.6.yaml & Update 5.5.2.yaml
Ahsraeisi Aug 25, 2024
a5e2c4e
Fix 5.2.6.yaml
Ahsraeisi Aug 25, 2024
3d5cb3d
Fix 12.6.1.yaml
Ahsraeisi Aug 25, 2024
b9f8dbe
Update 12.6.1.yaml
Ahsraeisi Aug 25, 2024
bb16b2e
Update 5.1.5.yaml
Ahsraeisi Sep 1, 2024
c87ba32
Update 5.2.6.yaml
Ahsraeisi Sep 1, 2024
3ef5e1b
Update 5.2.6.yaml
Ahsraeisi Sep 1, 2024
fab12ba
Update 5.3.3.2.yaml
Ahsraeisi Sep 1, 2024
8c86190
Update 5.3.3.2.yaml
Ahsraeisi Sep 1, 2024
392f4ac
Update 5.5.2.yaml
Ahsraeisi Sep 1, 2024
19fd643
Add 12.1.1, 12,3,3, 12,6,1, 5.1.5, 5.3.3 Vulnerable pages
Snbig Sep 1, 2024
d31b5f3
Update 8.2.1.yaml
Ahsraeisi Sep 1, 2024
45eea9d
Update 9.1.2.yaml
Ahsraeisi Sep 1, 2024
3a3a40b
Update 12.3.3.yaml
Ahsraeisi Sep 1, 2024
d8038b7
Update 12.6.1.yaml
Ahsraeisi Sep 1, 2024
8cd61df
Ajibe
Snbig Sep 11, 2024
61061d5
Ajibe
Snbig Sep 11, 2024
e9c7d33
Fixed
Snbig Sep 11, 2024
2800ca2
Fixed
Snbig Sep 11, 2024
dc4899f
Chore: Fix Late night
Snbig Sep 11, 2024
dfcc735
Merge branch 'dev' of https://github.com/OWASP/www-project-asvs-secur…
Snbig Sep 11, 2024
286edc1
Fixed
Snbig Sep 11, 2024
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
20 changes: 20 additions & 0 deletions .github/workflows/syntax-checking.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: ❄️ YAML Lint

on:
push:
pull_request:
paths:
- '**.yaml'
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Yamllint
uses: karancode/[email protected]
with:
yamllint_config_filepath: .yamllint
yamllint_strict: false
yamllint_comment: true
30 changes: 30 additions & 0 deletions .github/workflows/template-validate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: 🛠 Template Validate

on:
push:
pull_request:
paths:
- '**.yaml'
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.21.x

- name: nuclei install
run: go install -v github.com/projectdiscovery/nuclei/v3/cmd/nuclei@latest

- name: Template Validation
run: |
cp -r ${{ github.workspace }}/templates /home/runner/nuclei-templates
nuclei -duc -validate -allow-local-file-access
nuclei -duc -validate -allow-local-file-access -w /home/runner/nuclei-templates/workflows
4 changes: 4 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[submodule "Vulnerable-Pages"]
path = Vulnerable-Pages
url = https://github.com/Snbig/Vulnerable-Pages
branch = main
25 changes: 25 additions & 0 deletions .yamllint
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
extends: default

ignore: |
.pre-commit-config.yml
.github/
.git/
*.yml

rules:
document-start: disable
line-length: disable
new-lines: disable
new-line-at-end-of-file: disable
truthy: disable
comments:
require-starting-space: true
ignore-shebangs: true
min-spaces-from-content: 1
empty-lines:
max: 5
braces:
forbid: true
brackets:
forbid: true
16 changes: 16 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@

## Contributing

If you have any idea to improve templates or want to share experience and give feedback on this project, we'd love to hear from you in following ways:


### Asking Questions
You can use either Github [Discussions](https://github.com/OWASP/www-project-asvs-security-evaluation-templates-with-nuclei/discussions) or our [Slack channel](https://owasp.slack.com/archives/C052939BZ43) to ask questions.

### Create issues

Before raising pull requests, please create an [Issue](https://github.com/OWASP/www-project-asvs-security-evaluation-templates-with-nuclei/issues) first to be discussed for missing requirements, content or errors. Please explain the issue in detail including references if available and suggest where it could be added.

### Open a Pull Request
- Your pull request may be merged after review.
- Commits must be [signed off](https://git-scm.com/docs/git-commit#Documentation/git-commit.txt--s) to indicate agreement with [Developer Certificate of Origin (DCO)](https://developercertificate.org/).
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2023 OWASP

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
34 changes: 34 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[![❄️ YAML Lint](https://github.com/OWASP/www-project-asvs-security-evaluation-templates-with-nuclei/actions/workflows/syntax-checking.yml/badge.svg)](https://github.com/OWASP/www-project-asvs-security-evaluation-templates-with-nuclei/actions/workflows/syntax-checking.yml)
[![🛠 Template Validate](https://github.com/OWASP/www-project-asvs-security-evaluation-templates-with-nuclei/actions/workflows/template-validate.yml/badge.svg)](https://github.com/OWASP/www-project-asvs-security-evaluation-templates-with-nuclei/actions/workflows/template-validate.yml)
[![Vulnerable Pages](https://img.shields.io/website?labelColor=3D444C&link=https://vulnerable-pages.onrender.com/&label=%F0%9F%8E%AFVulnerable%20Pages&url=https://vulnerable-pages.onrender.com/)](https://vulnerable-pages.onrender.com/)

<p align="center">
<img src="https://github.com/user-attachments/assets/8f0b666e-a54c-45e9-9f33-4fa414fb122e">
</p>

# OWASP ASVS Security Evaluation Templates with Nuclei


This project aims to develop [Nuclei](https://github.com/projectdiscovery/nuclei) templates for evaluating OWASP Application Security Verification Standard ([ASVS](https://owasp.org/www-project-application-security-verification-standard/)) on websites and will involve creating templates that can be used to evaluate ASVS on websites, documenting the use of the templates, and designing and implementing a user interface for easy navigation and use of the templates.

The goal is to provide security professionals with an easy-to-use set of tools to test their web applications and identify potential vulnerabilities.
#### It's important to note that:
- Since the implementation methods and frameworks used in web application design are very diverse, in this project we will consider the existing best practice designs and develop nuclei templates based on them :)
- Also while these Nuclei templates are designed to help automate the process of evaluating web applications against ASVS requirements, they should not be considered a substitute for manual testing or other security best practices.
- Some templates are developed for a limited or specific scenario and should be modified and perfected according to the needs of the evaluator/user.

## Licensing
[![alt-text](https://img.shields.io/github/license/OWASP/www-project-asvs-security-evaluation-templates-with-nuclei)](https://github.com/OWASP/www-project-asvs-security-evaluation-templates-with-nuclei/blob/main/LICENSE)

This program is free software: You can redistribute it and/or modify it under the terms of the MIT License.

## Contributing

Contributions to this repository are welcome and encouraged. If you have created new Nuclei templates that evaluate additional ASVS requirements or have any idea about current templates, we'd love to hear from you in project Github [Discussions](https://github.com/OWASP/www-project-asvs-security-evaluation-templates-with-nuclei/discussions) or our [Slack channel](https://owasp.slack.com/archives/C052939BZ43).

For detailed information and guidelines about contributing in developing template for ASVS evaluation, please check [CONTRIBUTING.md](https://github.com/OWASP/www-project-asvs-security-evaluation-templates-with-nuclei/blob/main/CONTRIBUTING.md)

#### Core Team
The project current core team are:
- [Hamed Salimain](https://github.com/Snbig) (Project Leader)

1 change: 1 addition & 0 deletions Vulnerable-Pages
Submodule Vulnerable-Pages added at 9f6162
19 changes: 8 additions & 11 deletions index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,18 @@

layout: col-sidebar
title: OWASP ASVS Security Evaluation Templates with Nuclei
tags: example-tag
tags: asvs-security-evaluation-templates-with-nuclei nuclei nuclei-templates asvs asvs-evaluation PoC-generator vulnerablity
level: 2
type:
pitch: A very brief, one-line description of your project
type: tool
pitch: This project aims to develop nuclei templates for evaluating OWASP Application Security Verification Standard (ASVS) on websites.

---

This is an example of a Project or Chapter Page. Please change these items to indicate the actual information you wish to present. In addition to this information, the 'front-matter' above this text should be modified to reflect your actual information. An explanation of each of the front-matter items is below:
This project aims to develop nuclei templates for evaluating OWASP Application Security Verification Standard (ASVS) on websites and will involve creating templates that can be used to evaluate ASVS on websites, documenting the use of the templates, and designing and implementing a user interface for easy navigation and use of the templates. The templates and user interface will be tested for accuracy and usability, and once finalized, they will be made available for use. User feedback and usage of the templates and user interface will be monitored and analyzed, and updates will be made to the templates and user interface based on this feedback and usage. Finally, the project will be documented for future reference.

layout: This is the layout used by project and chapter pages. You should leave this value as col-sidebar
It's important to note that Since the implementation methods and frameworks used in web application design are very diverse, in this project, we will consider the existing best practice designs and develop nuclei templates based on them.

title: This is the title of your project or chapter page, usually the name. For example, OWASP Zed Attack Proxy or OWASP Baltimore
## Licensing
[![alt-text](https://img.shields.io/github/license/OWASP/www-project-asvs-security-evaluation-templates-with-nuclei)](https://github.com/OWASP/www-project-asvs-security-evaluation-templates-with-nuclei/blob/main/LICENSE)

tags: This is a space-delimited list of tags you associate with your project or chapter. If you are using tabs, at least one of these tags should be unique in order to be used in the tabs files (an example tab is included in this repo)

level: For projects, this is your project level (2 - Incubator, 3 - Lab, 3.5 - Production, 4 - Flagship)

type: code, tool, documentation, or other
This program is free software: You can redistribute it and/or modify it under the terms of the MIT License.
22 changes: 14 additions & 8 deletions info.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,22 @@
### ASVS Security Evaluation Templates with Nuclei Information
### Project Information
* [Incubator Project](#)
* [Type of Project](#)
* [Version 0.0.0](#)
* [Builder](#)
* [Breaker](#)

### Classification
* <i class="fas fa-tools" style="color:#233e81;"></i> Tool

### Downloads or Social Links
* [Download](#)
* [Meetup](#)
### Audience
* <i class="fas fa-shield-alt" style="color:#233e81;"></i> Defender
* <i class="fas fa-hammer" style="color:#233e81;"></i> Breaker

### Community
* [Slack Channel](https://owasp.slack.com/archives/C052939BZ43)

### Statistics
* [Daily Project Stats](#)

### Code Repository
* [repo](#)
* [repo](https://github.com/OWASP/www-project-asvs-security-evaluation-templates-with-nuclei)

### Change Log
* [changes](#)
Expand Down
17 changes: 17 additions & 0 deletions tab_contributing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
title: Contributing
layout: null
tab: true
order: 1
tags: asvs-security-evaluation-templates-with-nuclei
---

## Contributing

If you are interested in contributing to this project by sharing ideas to improve templates or giving feedback we will be happy to hear from you in project Github [Discussions](https://github.com/OWASP/www-project-asvs-security-evaluation-templates-with-nuclei/discussions) or our [Slack channel](https://owasp.slack.com/archives/C052939BZ43).

For detailed information and guidelines about contributing in "ASVS evaluation template development" please check [CONTRIBUTING.md](https://github.com/OWASP/www-project-asvs-security-evaluation-templates-with-nuclei/blob/main/CONTRIBUTING.md)

### Core Team
The project current core team are:
- [Hamed Salimain](https://github.com/Snbig) (Project Leader)
11 changes: 0 additions & 11 deletions tab_example.md

This file was deleted.

1 change: 1 addition & 0 deletions templates/.gitkeep
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

64 changes: 64 additions & 0 deletions templates/12.1.1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
id: ASVS-4-0-3-V12-1-1

info:
name: ASVS 12.1.1 Check
author: Hamed Salimian
severity: medium
classification:
cwe-id: CWE-400
reference:
- https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/06-Test_HTTP_Methods
- https://cheatsheetseries.owasp.org/cheatsheets/File_Upload_Cheat_Sheet.html
- https://snbig.github.io/Vulnerable-Pages/ASVS_12_1_1/index.html
tags: asvs,12.1.1
description: |
Verify that the application will not accept large files that could fill up storage or cause a denial of service.


variables:
large_file_size: 10000000
small_file_size: 100
file_type: "text/plain"
file_ext: "txt"

http:
- raw:
- |
POST {{BaseURL}} HTTP/1.1
Host: {{Hostname}}
Accept: */*
Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryiugABg7zoMAxIKId

------WebKitFormBoundaryiugABg7zoMAxIKId
Content-Disposition: form-data; name="file"; filename="{{randstr}}.{{file_ext}}"
Content-Type: {{file_type}}

{{rand_text_alpha({{small_file_size}})}}
------WebKitFormBoundaryiugABg7zoMAxIKId--

- |
POST {{BaseURL}} HTTP/1.1
Host: {{Hostname}}
Accept: */*
Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryiugABg7zoMAxIKId

------WebKitFormBoundaryiugABg7zoMAxIKId
Content-Disposition: form-data; name="file"; filename="{{randstr}}.{{file_ext}}"
Content-Type: {{file_type}}

{{rand_text_alpha({{large_file_size}})}}
------WebKitFormBoundaryiugABg7zoMAxIKId--

extractors:
- type: dsl
name: status code of large file upload.
dsl:
- status_code_2

matchers:
- type: dsl
name: status_code
condition: and
dsl:
- status_code_2 < 210 && status_code_2 >= 200
- status_code_2 == status_code
58 changes: 58 additions & 0 deletions templates/12.6.1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
id: ASVS-4-0-3-V12-6-1

info:
name: ASVS 12.6.1 Check
author: AmirHossein Raeisi
severity: high
classification:
cwe-id: CWE-918
reference:
- https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/19-Testing_for_Server-Side_Request_Forgery
- https://owasp.org/Top10/A10_2021-Server-Side_Request_Forgery_%28SSRF%29/
- https://github.com/projectdiscovery/nuclei-templates/blob/main/dast/vulnerabilities/ssrf/blind-ssrf.yaml
- https://cheatsheetseries.owasp.org/cheatsheets/Server_Side_Request_Forgery_Prevention_Cheat_Sheet.html
- https://snbig.github.io/Vulnerable-Pages/ASVS_12_6_1/
tags: asvs,12.6.1
description: |
Verify that the web or application server is configured with an allow list of resources or systems to which the server can send requests or load data/files from.

http:
- pre-condition:
- type: dsl
dsl:
- 'method == "GET"'

payloads:
ssrf:
- "{{interactsh-url}}"
- "{{FQDN}}.{{interactsh-url}}"
- "{{RDN}}.{{interactsh-url}}"
- "{{FQDN}}@{{interactsh-url}}"
- "{{RDN}}@{{interactsh-url}}"

fuzzing:
- part: query
mode: single
fuzz:
- "https://{{ssrf}}"
- "{{ssrf}}:80"

- part: body
mode: single
fuzz:
- "https://{{ssrf}}"
- "{{ssrf}}:80"

- part: header
mode: single
fuzz:
- "https://{{ssrf}}"
- "{{ssrf}}:80"

stop-at-first-match: true
matchers:
- type: word
part: interactsh_protocol # Confirms the HTTP Interaction
words:
- "http"
- "dns"
Loading
Loading