Skip to content

In-depth lesson · Command injection

Bypasses and variations

Every point the Command injection reports back under this heading, best-backed first, each with the reports it is seen in.

Back to the lesson 1 to 9 of 9
  1. The fix for a protocol handler flaw used a blacklist of flags, so try a flag that was left off the list to redirect traffic.

    Seen in 1 report
  2. The signature check compared strings and passed an unescaped filename to PowerShell, so a crafted filename bypasses it.

    Seen in 1 report
  3. Injected xauth commands bypassed forced commands and login-shell restrictions.

    Seen in 1 report
  4. Blacklisting one nginx directive did not stop other directives from being injected through the same annotation.

    Seen in 1 report
  5. An earlier escaping fix was incomplete and could be bypassed with trailing whitespace or periods.

    Seen in 1 report
  6. The fix for an earlier argument injection was incomplete and the same path still reached command execution.

    Seen in 1 report
  7. A branch name using a zero-width character was made to look like the default branch to trick the victim.

    Seen in 1 report
  8. Grouping short flags let a value be reinterpreted as an option.

    Seen in 1 report
  9. An unquoted variable in a wrapper script let spaces and metacharacters split into extra arguments.

    Seen in 1 report