|
| 1 | + |
| 2 | +# HTTP Headers |
| 3 | +- Is the app missing the following headers, if so, flag it: |
| 4 | + - [ ] **Strict-Transport-Security (HSTS)**: Tells the browser to only use HTTPS. |
| 5 | + - `Strict-Transport-Security: max-age=31536000; includeSubDomains; preload` |
| 6 | + - if `max-age` is more than **31536000** (1 year), flag it. |
| 7 | + - [ ] **X-Frame-Options**: Stops the app from being loaded into an `i-frame` element. |
| 8 | + - [ ] **X-Permitted-Cross-Domain-Policies** : Tells old versions of Adobe clients where to load cross-domain policy file from. |
| 9 | + - `X-Permitted-Cross-Domain-Policies: none` |
| 10 | + - [ ] **Cache-Control**: Used to tell the app not to store HTTPS response in the cache. |
| 11 | + - `Cache-control: no-set` or `Pragma: no-cache` |
| 12 | + - [ ] **Content-Security-Policy**: Helps to filter XSS or clickjacking attacks. |
| 13 | + - `Content-Security-Policy: nosniff |
| 14 | + - [ ] **Access-Control-Allow-Origin (CORS)**: This header indicates whether the response it is related to can be shared with requesting code from the given origin |
| 15 | + - [ ] If set, don't use wildcard, otherwise, remove. |
| 16 | + |
| 17 | +- Does the app have the following in place, if so, flag and disable it: |
| 18 | + - [ ] **X-Powered-By**: Tells attackers the vendor of the site. |
| 19 | + - [ ] **Sever**: Shows the server name. |
| 20 | + - [ ] **X-AspNet-Version**: Provides information about the .NET version of the site. |
| 21 | + |
| 22 | +# SSL/TLS |
| 23 | +*Test for these with `sslscan` or `testssl`* |
| 24 | +- [ ] Deprecated TLS versions supported: Do they support TLS version 1.2 or before? |
| 25 | +- [ ] Do they use weak cipher suites? |
| 26 | + |
| 27 | +# Cookie Attributes |
| 28 | +*Are these set? If not, flag it.* |
| 29 | +- [ ] `Secure` |
| 30 | +- [ ] `HTTPOnly` |
| 31 | + |
| 32 | +# References |
| 33 | +- [https://cheatsheetseries.owasp.org/cheatsheets/HTTP_Headers_Cheat_Sheet.htms](https://cheatsheetseries.owasp.org/cheatsheets/HTTP_Headers_Cheat_Sheet.html) |
0 commit comments