Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ldconfig #68

Closed
AlessandroZ opened this issue Aug 5, 2019 · 2 comments
Closed

ldconfig #68

AlessandroZ opened this issue Aug 5, 2019 · 2 comments

Comments

@AlessandroZ
Copy link
Contributor

If ldconfig binary is suid, it would be possible to change library path loaded by other binaries in order to hijack libs.

I don't know how to create a good example to add it to the list but I think it should be added.

Here are 2 different examples:

Thanks

@cyrus-and
Copy link
Member

Alright, I finally managed to look into this. I remember that HTB box and yes it's difficult to come up with a good example so I kept the basic technique simple and added a mini-PoC. Feel free to tell us what you think.

@AlessandroZ
Copy link
Contributor Author

Perfect. Thanks again ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants