Linux Flashcards
What is an environment attack?
Environment is a set of predefined variables that controls the behaviour of the shell. Attacker could manipulate environment, for example “path substitution attack” where attacker modifies PATH to point to a malicious program (which will be executed with privileges of application)
What is a path traversal attack?
When attacker provides a manipulated file path as input that is not sanitised properly, allowing them to gain access to sensitive files.
e.g. using .. to traverse back directories
What is a symlink attack?
When application interacts with files without checking the type and status of the files, so a symlink can be created to e.g. compare a file with itself and mistakenly authenticate attacker
What is a command injection attack?
If the -exec option is used with the find command then attacker can execute any command they like.
Or if attacker uses special shell characters (e.g. ; for chaining commands) to execute commands