Closed randomstuff closed 7 years ago
Bug report in Debian: https://bugs.debian.org/876392
Thanks for reporting the bug.
Can you review the man page changes in commit 4f7e1b8? I will prepare a new release if you are happy with the docs.
I think including .
in the pattern allows you to use /srv/reprepro/incoming/..
;) and escape into /srv/reprepro/
. Apart from that it looks good.
The suggested configuration is not secure:
The first and second regex can be abused to execute arbitrary commands:
where a TAB is used instead of spaces between
echo
andowned
./
is blacklisted but arm -rf /
can be executed using$(printf "\x2f")
for example.The documentation should probably warn about the dangers of accepting TAB CR LF $ "" '' `` & ; and so on in the regex.