Commit aeb47e5
committed
SECURITY FIX: Only allow image file types by default.
This prevents remote code execution in Apache servers version 2.3.9+ with the default configuration (AllowOverride None).
Since Apache version 2.3.9, .htaccess support is disabled by default:
https://httpd.apache.org/docs/current/mod/core.html#allowoverride
Without the configuration in the .htaccess file, allowing uploads of all file types allows remote code execution.
Thanks to @lcashdol for reporting the vulnerability (Closes blueimp#3514).1 parent 39607fd commit aeb47e5
1 file changed
Lines changed: 14 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
0 commit comments