Skip to content

Instantly share code, notes, and snippets.

@lirantal
Created October 3, 2022 10:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lirantal/77e9e3c629c57d7d3b63fc27cd76b396 to your computer and use it in GitHub Desktop.
Save lirantal/77e9e3c629c57d7d3b63fc27cd76b396 to your computer and use it in GitHub Desktop.
CTF 101 - Node.js vulnerable app

Read all chat messages

curl --request GET --url "http://localhost/chat"

Send a chat message

curl --request PUT \
  --url "http://localhost/chat" \
  --header 'content-type: application/json' \
  --data '{"auth": {"name": "user", "password": "pwd"}, "message": {"text": "Hi!"}}'

Delete a chat message

curl --request DELETE \
  --url "http://localhost/chat" \
  --header 'content-type: application/json' \
  --data '{"auth": {"name": "user", "password": "pwd"}, "messageId": 1}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment