Commit eb50b7c
fix: validate redirect host against allowlist to prevent SSRF bypass
Re-validate each redirected URL's host against allowedDownloadHosts
inside the resolveRedirects loop, preventing an attacker from using
a trusted initial URL that redirects to an internal/restricted resource.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent d0f86fe commit eb50b7c
File tree
1 file changed
+8
-1
lines changed- android/app/src/main/java/ai/offgridmobile/download
1 file changed
+8
-1
lines changedLines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
397 | 397 | | |
398 | 398 | | |
399 | 399 | | |
400 | | - | |
| 400 | + | |
401 | 401 | | |
402 | 402 | | |
403 | 403 | | |
404 | 404 | | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
405 | 412 | | |
406 | 413 | | |
407 | 414 | | |
| |||
0 commit comments