diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2012-10-28 11:03:41 (JST) |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2012-10-28 11:05:50 (JST) |
commit | 7ea35f9f8ecf61ab42be9947aae1176ab6e089bd (patch) | |
tree | e6639ab10546026d9ff73dd6e9381a5808218ed9 /tests/t0102-summary.sh | |
parent | 37141051ed4b6e2ede8f15581fe9126d7fd68213 (diff) | |
download | cgit-7ea35f9f8ecf61ab42be9947aae1176ab6e089bd.zip cgit-7ea35f9f8ecf61ab42be9947aae1176ab6e089bd.tar.gz |
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.
Diffstat (limited to 'tests/t0102-summary.sh')
0 files changed, 0 insertions, 0 deletions