You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 9f3374f
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: user_guide_src/source/changelogs/v4.7.5.rst
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,15 @@ Release Date: Unreleased
14
14
SECURITY
15
15
********
16
16
17
+
- **Validation:** The ``is_image`` and ``mime_in`` file upload rules now reject client filenames ending in dots while
18
+
continuing to accept genuinely extensionless uploads. These rules and ``ext_in`` also reject filenames with a PHP
19
+
handler extension before the final extension, such as ``shell.php.gif``, including extensions revealed by filename
20
+
sanitization. These checks also reject innocent filenames such as ``logo.php.gif``. See
21
+
:doc:`Upgrading from 4.7.4 to 4.7.5 </installation/upgrade_475>` for migration instructions.
22
+
Previously, a GIF/PHP polyglot with one of these names could pass validation. Applications that save uploads with
23
+
client-provided names in executable public directories may be affected. Use a generated filename or disable script
24
+
execution in the upload directory. See the `Security advisory GHSA-4hwf-v4mp-hf6c <https://github.com/codeigniter4/CodeIgniter4/security/advisories/GHSA-4hwf-v4mp-hf6c>`_
25
+
for more information.
17
26
- **View Parser:** Fixed a stored XSS vulnerability where a substituted value containing
18
27
Parser syntax (e.g., ``{text|raw}`` or ``{!text!}``) was interpreted by a later
19
28
substitution pass, allowing user-supplied data to bypass auto-escaping of other
0 commit comments