permalink: spells/abusing-wildcard-expansion-in-bash
tags:
- Language/Bash
- Application/tar
- AttackCycle/Exploitation
- OS/LinuxThe wildcard expansion (*) in Bash scripts doesn't get pushed to the command, but is instead expanded in place. This means that files named like command-line switches will be interpreted as command line switches. This can be used, for example, to exploit sloppy tar-based backup scripts.