Skip to content

Commit 655476b

Browse files
committed
fix: 🐞 bring back csrf vulnerability
1 parent 14b7bb6 commit 655476b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

apps/websheep-api/src/app/shared/openapi/websheep.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,11 @@ paths:
182182
application/json:
183183
schema:
184184
$ref: '#/components/schemas/SheepRequest'
185+
# Allow x-www-form-urlencoded in order to be able to
186+
# bypass C.S.R.F. for exercices csrf2 & csrf3.
187+
application/x-www-form-urlencoded:
188+
schema:
189+
$ref: '#/components/schemas/SheepRequest'
185190
responses:
186191
201:
187192
description: The created sheep

0 commit comments

Comments
 (0)