]> git.cameronkatri.com Git - cgit.git/commit
syntax-highlighting.sh: Fix command injection.
authorJason A. Donenfeld <Jason@zx2c4.com>
Sun, 28 Oct 2012 02:03:41 +0000 (20:03 -0600)
committerJason A. Donenfeld <Jason@zx2c4.com>
Sun, 28 Oct 2012 02:05:50 +0000 (20:05 -0600)
commit7ea35f9f8ecf61ab42be9947aae1176ab6e089bd
treee6639ab10546026d9ff73dd6e9381a5808218ed9
parent37141051ed4b6e2ede8f15581fe9126d7fd68213
syntax-highlighting.sh: Fix command injection.

By not quoting the argument, an attacker with the ability to add files
to the repository could pass arbitrary arguments to the highlight
command, in particular, the --plug-in argument which can lead to
arbitrary command execution.

This patch adds simple argument quoting.
filters/syntax-highlighting.sh