3647: upgrade to snuffleupagus v0.11 r=mergify[bot] a=nextgens

## What type of PR?

enhancement

## What does this PR do?

- upgrade snuffleupagus to v0.11
- filter php:// wrapper types and only allow those we currently require (hardening)

### Related issue(s)

## Prerequisites
Before we can consider review and merge, please make sure the following list is done and checked.
If an entry in not applicable, you can check it or remove it from the list.

- [ ] In case of feature or enhancement: documentation updated accordingly
- [x] Unless it's docs or a minor change: add [changelog](https://mailu.io/master/contributors/workflow.html#changelog) entry file.


Co-authored-by: Florent Daigniere <nextgens@freenetproject.org>
This commit is contained in:
bors-mailu[bot]
2024-11-17 12:33:35 +00:00
committed by GitHub
3 changed files with 4 additions and 1 deletions

View File

@@ -27,7 +27,7 @@ CMD /bin/bash
FROM system as build
ARG MAILU_DEPS=prod
ARG SNUFFLEUPAGUS_VERSION=0.10.0
ARG SNUFFLEUPAGUS_VERSION=0.11.0
ENV VIRTUAL_ENV=/app/venv

View File

@@ -0,0 +1 @@
Upgrade to snuffleupagus 0.11, filter php:// wrapper types

View File

@@ -26,6 +26,8 @@ sp.readonly_exec.enable();
# PHP has a lot of wrappers, most of them aren't usually useful, you should
# only enable the ones you're using.
sp.wrappers_whitelist.list("file,php,phar,mailsosubstreams,mailsoliteral,mailsotempfile,mailsobinary");
# The "php" wrapper can be further filtered: we probably don't want 'filter' nor 'fd'
sp.wrappers_whitelist.php_list("stdout,stdin,stderr,input,output,memory,temp");
# Prevent sloppy comparisons.
sp.sloppy_comparison.enable();