Commit 3228ddb
committed
Finding #1 (Moderate): Add HSTS Strict-Transport-Security header
- max-age=31536000 (1 year), includeSubDomains, preload
Finding #3 (Low): Tighten CORS configuration
- Reject CORS for requests with no Origin header in production
- Remove unused dev/staging origins from shared CORSWhitelist
Finding #4 (Low): Remove information disclosure headers
- Strip Server and X-Powered-By headers
- Add X-Content-Type-Options, X-Frame-Options, Referrer-Policy,
Permissions-Policy security headers
Ref: SRT Penetration Test Report v1 (March 2026) by Valiant Solutions
1 parent a4db888 commit 3228ddb
2 files changed
Lines changed: 154 additions & 131 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
99 | 116 | | |
100 | 117 | | |
101 | 118 | | |
| |||
123 | 140 | | |
124 | 141 | | |
125 | 142 | | |
126 | | - | |
| 143 | + | |
127 | 144 | | |
128 | | - | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
129 | 154 | | |
130 | 155 | | |
131 | 156 | | |
| |||
0 commit comments