- <policy domain="coder" rights="none" pattern="EPHEMERAL" />
<policy domain="coder" rights="none" pattern="HTTPS" />
<policy domain="coder" rights="none" pattern="MVG" />
<policy domain="coder" rights="none" pattern="MSL" />
<policy domain="coder" rights="none" pattern="TEXT" />
<policy domain="coder" rights="none" pattern="SHOW" />
<policy domain="coder" rights="none" pattern="WIN" />
<policy domain="coder" rights="none" pattern="PLT" />
We have secured the delegates in ImageMagick 7.0.1-9 and 6.9.4-7 by sanitizing the parameters. This release also supports a new policy that prevents indirect reads:
- <policy domain="path" rights="none" pattern="@*" />
In these releases, reading MVG and MSL scripts are explicit. For example, if your script is named my_graph.mvg, to render it, use a filename of mvg:my_graph.mvg. Text is also explict, e.g. text:myText.txt. We also no longer support the EPHEMERAL coder, previously an internal coder that could remove a file as ImageMagick exits.
You can verify your policies with this command:
Code: Select all
-> convert -list policy
Path: ImageMagick-7/policy.xml
Policy: Resource
name: time
value: 120
Policy: Resource
name: throttle
value: 0
Policy: Resource
name: thread
value: 2
Policy: Resource
name: file
value: 768
Policy: Resource
name: disk
value: 1GiB
Policy: Resource
name: map
value: 512MiB
Policy: Resource
name: memory
value: 256MiB
Policy: Resource
name: area
value: 128MB
Policy: Resource
name: height
value: 8KP
Policy: Resource
name: width
value: 8KP
Policy: Resource
name: temporary-path
value: /tmp
Policy: System
name: precision
value: 6
Policy: Coder
rights: None
pattern: MSL
Policy: Coder
rights: None
pattern: MVG
Policy: Path
rights: None
pattern: @*
Policy: Path
rights: None
pattern: |*
Path: [built-in]
Policy: Undefined
rights: None