aboutsummaryrefslogtreecommitdiffstats
path: root/ui-shared.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <[email protected]>2012-10-28 02:03:41 +0000
committerJason A. Donenfeld <[email protected]>2012-10-28 02:05:50 +0000
commit7ea35f9f8ecf61ab42be9947aae1176ab6e089bd (patch)
treee6639ab10546026d9ff73dd6e9381a5808218ed9 /ui-shared.c
parentFix man page typo. (diff)
downloadcgit-7ea35f9f8ecf61ab42be9947aae1176ab6e089bd.tar.gz
cgit-7ea35f9f8ecf61ab42be9947aae1176ab6e089bd.zip
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 'ui-shared.c')
0 files changed, 0 insertions, 0 deletions