Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[HOTFIX] remove host terminal data #152

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions secure-web-app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ Also the web application has strict Host Header to avoid SSRF and Host Header In
1. Security Headers Example

```
christofherkost at L-EEM091 in ~/D/s/c/gin-examples
↪ curl http://localhost:8080 -I
curl http://localhost:8080 -I

HTTP/1.1 404 Not Found
Content-Security-Policy: default-src 'self'; connect-src *; font-src *; script-src-elem * 'unsafe-inline'; img-src * data:; style-src * 'unsafe-inline';
Content-Type: text/plain
Expand All @@ -32,8 +32,8 @@ Content-Length: 18

2. Host Header Injection Example
```
christofherkost at L-EEM091 in ~/D/s/c/gin-examples
↪ curl http://localhost:8080 -I -H "Host:neti.ee"
curl http://localhost:8080 -I -H "Host:neti.ee"

HTTP/1.1 400 Bad Request
Content-Type: application/json; charset=utf-8
Date: Thu, 28 Mar 2024 11:38:23 GMT
Expand Down