News for hackers. Stuff that matters.
Re:Never run ldd on unknown executables by SomeRndName11 on Monday July 24, 2023 @06:47AM (#36845729)
How exactly it would fool readelf, which works on entirely different principles?
Re:Never run ldd on unknown executables by jagrsw on Monday July 24, 2023 @07:15AM (#36846003)
Eg. by changing PT_INTERP to something else than usual (or dispensing with it, so the binary becomes a static one, still displaying DT_NEEDED), or exploiting bugs in ld.so, so the values shown by readelf become meaningless.

I'm also not entirely sure that readelf/binutils was reviewed from sec-perspective, it might not be out of the question that readelf might show things which are then interpreted differently by either kernel (loading a basic static bin or ld.so/interpreter) or by ld.so itself.