Skip to content

Commit f978951

Browse files
Explain command substitution
1 parent 45f708b commit f978951

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cpp/ql/src/experimental/Security/CWE/CWE-078/WordexpTainted.qhelp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44
<qhelp>
55
<overview>
66
<p>The code passes user input to <code>wordexp</code>. This leaves the code
7-
vulnerable to attack by command injection, because <code>wordexp</code> performs command substitution.</p>
7+
vulnerable to attack by command injection, because <code>wordexp</code> performs command substitution.
8+
Command substitution is a feature that replaces <code>$(command)</code> or <code>`command`</code> with the
9+
output of the given command, allowing the user to run arbitrary code on the system.
10+
</p>
811

912
</overview>
1013
<recommendation>

0 commit comments

Comments
 (0)