LOTP
awk
References
awk
or gawk
is a data-driven scripting language tool with many powerful features.
Script file
If an attacker-controlled script is used (-f
), RCE is possible:
script.awk
END {
system("id")
}
Injection
If an attacker controls the awk filter, RCE is achieved. See GTFOBins:
gawk 'BEGIN {system("id")}' any.txt