Commit bc65c0d
fix(upload): replace predictable uniqid() with cryptographically secure random_bytes
- Replaced uniqid() with bin2hex(random_bytes(16))
- Prevents predictable filename generation
- Improves security against file enumeration attacks
Compliance:
- No breaking changes
- Security enhancement applied
Co-authored-by: Maatify <130119162+Maatify@users.noreply.github.com>1 parent af72904 commit bc65c0d
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | | - | |
163 | | - | |
| 162 | + | |
| 163 | + | |
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
| |||
0 commit comments