mirror of
https://github.com/ImageMagick/ImageMagick.git
synced 2026-05-31 11:18:42 +02:00
protect against relative paths
This commit is contained in:
@@ -93,6 +93,8 @@
|
||||
<policy domain="path" rights="none" pattern="fd:*"/>
|
||||
<!-- don't read sensitive paths. -->
|
||||
<policy domain="path" rights="none" pattern="/etc/*"/>
|
||||
<!-- Relative paths are not permitted. -->
|
||||
<policy domain="path" rights="none" pattern="\.\.\/"/>
|
||||
<!-- Indirect reads are not permitted. -->
|
||||
<policy domain="path" rights="none" pattern="@*"/>
|
||||
<!-- These image types are security risks on read, but write is fine -->
|
||||
|
||||
@@ -89,6 +89,8 @@
|
||||
<policy domain="path" rights="none" pattern="fd:*"/>
|
||||
<!-- don't read sensitive paths. -->
|
||||
<policy domain="path" rights="none" pattern="/etc/*"/>
|
||||
<!-- Relative paths are not permitted. -->
|
||||
<policy domain="path" rights="none" pattern="\.\.\/"/>
|
||||
<!-- Indirect reads are not permitted. -->
|
||||
<policy domain="path" rights="none" pattern="@*"/>
|
||||
<!-- Deny all image modules and specifically exempt reading or writing
|
||||
|
||||
Reference in New Issue
Block a user