Skip to content

Commit f55e54e

Browse files
committed
Images: Update caution block (#2607)
(cherry picked from commit f6f99d7)
1 parent fd18c6b commit f55e54e

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

docs/guide/images/images.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,15 @@ They are generated only once and cleared on demand, for example, on content remo
7171
LiipImagineBundle only works on image blobs, so no command line tool is needed.
7272
For more information, see the [bundle's documentation](https://symfony.com/doc/current/bundles/LiipImagineBundle/configuration.html).
7373

74-
!!! caution "Code injection in image EXIF"
75-
76-
EXIF metadata of an image may contain for example, HTML, JavaScript,
77-
or PHP code. 
78-
[[= product_name =]] is itself does not parse EXIF metadata, but third-party
79-
bundles must be secured against this eventuality.
80-
Images must be treated like any other user-submitted data - make sure that
81-
metadata is properly escaped before use.
74+
!!! caution "Code injection in images"
75+
76+
Images must be treated like any other user-submitted data - as potentially malicious.
77+
78+
- EXIF metadata of an image may contain for example, HTML, JavaScript, or PHP code.
79+
[[= product_name =]] itself doesn't parse EXIF metadata, but third-party bundles must be secured against this eventuality.
80+
Make sure that metadata is properly escaped before use.
81+
- Images may contain specially crafted flaws that exploit vulnerabilities in common image libraries
82+
like GD or Imagick, leading to code execution. It's important to keep these libraries up to date with security updates.
8283

8384
### Image URL resolution
8485

0 commit comments

Comments
 (0)