Skip to content

Commit c5ab7c6

Browse files
author
Cristy
committed
https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-3448-845w-6f6h
1 parent 6eee282 commit c5ab7c6

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

include/security-policy.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@
118118
<policy domain="cache" name="synchronize" value="true"/>
119119
<!-- Replace passphrase for secure distributed processing -->
120120
&lt;!-- <policy domain="cache" name="shared-secret" value="secret-passphrase" stealth="true"/> -->
121-
&lt;!-- Do not permit any delegates to execute. -->
121+
&lt;!-- Do not permit any external delegates to execute. -->
122122
&lt;policy domain="delegate" rights="none" pattern="*"/>
123123
&lt;!-- Do not permit any image filters to load. -->
124124
&lt;policy domain="filter" rights="none" pattern="*"/>
@@ -150,7 +150,7 @@
150150

151151
<p>To prevent one session from consuming all available memory when processing multiple sessions at the same time, large images are cached to disk with this policy. If an image exceeds the pixel cache disk limit, the program will exit. Additionally, a time limit has been set to prevent any processing tasks from running for too long. If an image has a width or height larger than 8192 pixels, or if an image sequence has more than 32 frames, processing will stop and an exception will be thrown.</p>
152152

153-
<p>Starting with ImageMagick 6.9.4-6, you can prevent the use of any delegate or all delegates (by setting the pattern to "*"). Prior to these releases, you can use the domain of <samp>coder</samp> and set rights to none and the glob pattern to HTTPS to prevent delegate usage. Additionally, users are prevented from executing any image filters and from performing indirect reads. If you want to, for example, read text from a file (e.g. <samp>caption:@myCaption.txt</samp>), you'll need to disable this path policy.</p>
153+
<p>Starting with ImageMagick 6.9.4-6, you can prevent the use of any external delegate or all external delegates (by setting the pattern to "*"). Prior to these releases, you can use the domain of <samp>coder</samp> and set rights to none and the glob pattern to HTTPS to prevent external delegate usage. Additionally, users are prevented from executing any image filters and from performing indirect reads. If you want to, for example, read text from a file (e.g. <samp>caption:@myCaption.txt</samp>), you'll need to disable this path policy.</p>
154154

155155
<p>Policy <a href="https://en.wikipedia.org/wiki/Glob_(programming)">glob patterns</a>, before ImageMagick 6.9.12-94, are <em>case sensitive</em>. To get expected behavior, coders and modules must be upper-case (e.g. "EPS" not "eps") or use a case-insensitive pattern such as <samp>[Pp][Nn][Gg]</samp>.</p>
156156

@@ -160,7 +160,7 @@
160160
convert: attempt to perform an operation not allowed by the security policy `HTTPS'
161161
convert: no images defined `wizard.jpg'</pre>
162162

163-
<p>As of ImageMagick version 6.9.7-9, you can conveniently deny access to all delegates and coders except for a small subset of proven web-safe image types. For example,</p>
163+
<p>As of ImageMagick version 6.9.7-9, you can conveniently deny access to all external delegates and coders except for a small subset of proven web-safe image types. For example,</p>
164164

165165
<pre class="bg-light text-dark mx-4"><samp>&lt;policy domain="delegate" rights="none" pattern="*" />
166166
&lt;policy domain="module" rights="none" pattern="*" />

0 commit comments

Comments
 (0)