Skip to content

Commit a2e91f3

Browse files
committed
Added V5.1.2 Template And It's Assets
1 parent 105092c commit a2e91f3

File tree

3 files changed

+108
-0
lines changed

3 files changed

+108
-0
lines changed

templates/dast/5.1.2.yaml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
id: ASVS-4-0-3-V5-1-2
2+
3+
info:
4+
name: ASVS 5.1.2 Check
5+
author: Masoud Abdaal
6+
severity: high
7+
classification:
8+
cwe-id: CWE-915
9+
reference:
10+
- https://github.com/OWASP/ASVS/blob/master/4.0/en/0x13-V5-Validation-Sanitization-Encoding.md#v51-input-validation
11+
- https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Input_Validation_Testing/20-Testing_for_Mass_Assignment
12+
tags: asvs,5.1.2
13+
description: |
14+
Verify that frameworks protect against mass parameter assignment attacks, or that the application has countermeasures to protect against unsafe parameter assignment, such as marking fields private or similar.
15+
Require Switch: -lfa (Load File Wordlist)
16+
17+
http:
18+
- raw:
19+
- |
20+
POST {{Path}} HTTP/1.1
21+
Host: {{Host}}
22+
Content-Type: application/json
23+
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0
24+
25+
{ "{{key}}": {{value}}}
26+
27+
attack: clusterbomb
28+
payloads:
29+
key: "assets/keysList.txt"
30+
value: "assets/valuesList.txt"
31+
32+
matchers-condition: or
33+
matchers:
34+
- type: word
35+
part: body
36+
words:
37+
- "{{key}}"
38+
39+
- type: word
40+
part: body
41+
words:
42+
- "{{value}}"
43+
44+
extractors:
45+
- type: regex
46+
part: body
47+
regex:
48+
- 'key="(?P<key>[^"]+)",value="(?:\\")?(?P<value>[^"\\]+)(?:\\")?"'

templates/dast/assets/keysList.txt

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
is_admin
2+
role
3+
approved
4+
balance
5+
status
6+
email_verified
7+
created_at
8+
updated_at
9+
IsAdmin
10+
Confirmed
11+
uid
12+
uuid
13+
guid
14+
is_verified
15+
user_id
16+
administrator
17+
admin
18+
isAdministrator
19+
isAdministrator
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
true
2+
false
3+
"true"
4+
"false"
5+
0
6+
1
7+
42
8+
-7
9+
100
10+
-250
11+
1000.50
12+
-250.75
13+
3.14
14+
-0.001
15+
"yes"
16+
"no"
17+
"active"
18+
"inactive"
19+
"pending"
20+
"verified"
21+
"unverified"
22+
"confirmed"
23+
"unconfirmed"
24+
"2023-01-01T12:00:00Z"
25+
"2024-12-31T23:59:59Z"
26+
"01/01/2023 12:00 PM"
27+
1672531200
28+
"550e8400-e29b-41d4-a716-446655440000"
29+
"123e4567-e89b-12d3-a456-426614174000"
30+
"user_12345"
31+
"john_doe"
32+
"admin"
33+
"user"
34+
"moderator"
35+
"guest"
36+
"superuser"
37+
{"admin": 1}
38+
{"isActive": true, "user": "admin"}
39+
{"balance": 99999.50, "currency": "USD"}
40+
{"role": "moderator", "approved": false}
41+
{"created_at": "2023-01-01T12:00:00Z", "updated_at": 1672531200}

0 commit comments

Comments
 (0)