Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
iopuy
· 13y ago · 0 comments
Echo the LD_PRELOAD environment variable first and check for anything suspect.
Comments
[–]
lordlicorice
13y ago
Unless the shared object file also includes an override for the function that expands environment variables to lie about the true value of LD_PRELOAD.
[–]
est
13y ago
the twist: echo is also hijacked...
[–]
iopuy
OP
13y ago
Okay... just type "Export" then.
[–]
DannyBee
13y ago
okay, so now the getenv call is hijacked too. You can play this game all day, as long as the environment is stored in user space, you can get it and fake the output.