Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 1 addition & 3 deletions mainsite/01_headers.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,11 @@ Strict-Transport-Security: max-age=63072000 ; includeSubDomains ; preload

* <https://tools.ietf.org/html/rfc6797>
* <https://cheatsheetseries.owasp.org/cheatsheets/HTTP_Strict_Transport_Security_Cheat_Sheet.html>
* <https://wstg.owasp.org/latest/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management/07-HTTP_Strict_Transport_Security/>
* <https://wstg.owasp.org/latest/06-Configuration_and_Deployment_Management/06-HTTP_Strict_Transport_Security/>
* <https://en.wikipedia.org/wiki/HTTP_Strict_Transport_Security>
* <https://www.chromium.org/hsts>
* <https://hstspreload.org/>
* <https://developer.mozilla.org/en-US/docs/Web/Security/HTTP_strict_transport_security>
* <https://raymii.org/s/tutorials/HTTP_Strict_Transport_Security_for_Apache_NGINX_and_Lighttpd.html>
* <https://blogs.windows.com/msedgedev/2015/06/09/http-strict-transport-security-comes-to-internet-explorer-11-on-windows-8-1-and-windows-7/>

## X-Frame-Options
Expand Down Expand Up @@ -821,7 +820,6 @@ Public-Key-Pins: pin-sha256="d6qzRu9zOECb90Uez27xWltNsj0e1Md7GkYYkVoZWmM="; pin-
* <https://tools.ietf.org/html/rfc7469>
* <https://en.wikipedia.org/wiki/HTTP_Public_Key_Pinning>
* <https://developer.mozilla.org/en-US/docs/Web/Security/Public_Key_Pinning>
* <https://raymii.org/s/articles/HTTP_Public_Key_Pinning_Extension_HPKP.html>
* <https://labs.detectify.com/2016/07/05/what-hpkp-is-but-isnt/>
* <https://blog.qualys.com/ssllabs/2016/09/06/is-http-public-key-pinning-dead>
* <https://scotthelme.co.uk/im-giving-up-on-hpkp/>
Expand Down
34 changes: 17 additions & 17 deletions mainsite/03_best_practices.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,21 +49,21 @@ The following section proposes a configuration for the [actively supported and w

<!-- HEADERS_ADD_TABLE_START -->

| Header name | Proposed value |
| --------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Strict-Transport-Security | `max-age=63072000; includeSubDomains` |
| X-Frame-Options | `deny` |
| X-Content-Type-Options | `nosniff` |
| Content-Security-Policy | `default-src 'self'; form-action 'self'; base-uri 'self'; object-src 'none'; frame-ancestors 'none'; upgrade-insecure-requests` |
| X-Permitted-Cross-Domain-Policies | `none` |
| Referrer-Policy | `no-referrer` |
| Clear-Site-Data | `"cache","cookies","storage"` |
| Cross-Origin-Embedder-Policy | `require-corp` |
| Cross-Origin-Opener-Policy | `same-origin` |
| Cross-Origin-Resource-Policy | `same-origin` |
| Permissions-Policy | `accelerometer=(), autoplay=(), camera=(), cross-origin-isolated=(), display-capture=(), encrypted-media=(), fullscreen=(), geolocation=(), gyroscope=(), keyboard-map=(), magnetometer=(), microphone=(), midi=(), payment=(), picture-in-picture=(), publickey-credentials-get=(), screen-wake-lock=(), sync-xhr=(self), usb=(), web-share=(), xr-spatial-tracking=(), clipboard-read=(), clipboard-write=(), gamepad=(), hid=(), idle-detection=(), interest-cohort=(), serial=(), unload=()` |
| Cache-Control | `no-store, max-age=0` |
| X-DNS-Prefetch-Control | `off` |
| Header name | Proposed value |
| --------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Strict-Transport-Security | `max-age=63072000; includeSubDomains` |
| X-Frame-Options | `deny` |
| X-Content-Type-Options | `nosniff` |
| Content-Security-Policy | `default-src 'self'; form-action 'self'; base-uri 'self'; object-src 'none'; frame-ancestors 'none'; upgrade-insecure-requests` |
| X-Permitted-Cross-Domain-Policies | `none` |
| Referrer-Policy | `no-referrer` |
| Clear-Site-Data | `"cache","cookies","storage"` |
| Cross-Origin-Embedder-Policy | `require-corp` |
| Cross-Origin-Opener-Policy | `same-origin` |
| Cross-Origin-Resource-Policy | `same-origin` |
| Permissions-Policy | `accelerometer=(), autoplay=(), camera=(), cross-origin-isolated=(), display-capture=(), encrypted-media=(), fullscreen=(), geolocation=(), gyroscope=(), keyboard-map=(), magnetometer=(), microphone=(), midi=(), payment=(), picture-in-picture=(), publickey-credentials-get=(), screen-wake-lock=(), sync-xhr=(self), usb=(), web-share=(), xr-spatial-tracking=(), clipboard-read=(), clipboard-write=(), gamepad=(), hid=(), idle-detection=(), interest-cohort=(), serial=(), unload=(), local-fonts=(self), bluetooth=(), compute-pressure=()` |
| Cache-Control | `no-store, max-age=0` |
| X-DNS-Prefetch-Control | `off` |

<!-- HEADERS_ADD_TABLE_END -->

Expand Down Expand Up @@ -318,7 +318,7 @@ $ nuclei -silent -template-id cors-misconfig -u https://domain.com
* <https://developer.mozilla.org/en-US/docs/Glossary/Origin>
* <https://cwe.mitre.org/data/definitions/942.html>
* <https://cwe.mitre.org/data/definitions/346.html>
* <https://wstg.owasp.org/latest/4-Web_Application_Security_Testing/11-Client-side/07-Cross_Origin_Resource_Sharing/>
* <https://wstg.owasp.org/latest/15-Client-side/07-Cross_Origin_Resource_Sharing/>
* <https://pkg.go.dev/github.com/jub0bs/cors>

## Prevent information disclosure via the browser local cached files
Expand Down Expand Up @@ -373,7 +373,7 @@ Cache-Control: no-store, max-age=0
* <https://caniuse.com/mdn-http_headers_cache-control>
* <https://cwe.mitre.org/data/definitions/525.html>
* <https://cwe.mitre.org/data/definitions/524.html>
* <https://wstg.owasp.org/latest/4-Web_Application_Security_Testing/04-Authentication/06-Browser_Cache_Weaknesses/>
* <https://wstg.owasp.org/latest/08-Authentication/05-Browser_Cache_Weaknesses/>
* <https://portswigger.net/kb/issues/00700100_cacheable-https-response>
* <https://portswigger.net/web-security/web-cache-poisoning>
* <https://portswigger.net/web-security/web-cache-deception>
Expand Down