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

Check for RPATH #3

Open
Seirdy opened this issue Jan 16, 2022 · 2 comments
Open

Check for RPATH #3

Seirdy opened this issue Jan 16, 2022 · 2 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@Seirdy
Copy link

Seirdy commented Jan 16, 2022

Like checksec, being able to detect RPATH and RUNPATH would be helpful; hardened binaries should exclude this information.

@liamg liamg added good first issue Good for newcomers enhancement New feature or request labels Jan 26, 2022
@timb-machine
Copy link

timb-machine commented Mar 26, 2022

TBF, there's nothing wrong with DT_RPATH per se. It depends on the /value/ to which it is set. The real issues are unqualified paths (missing leading /, tree will be presumed to start from CWD), empty specifications (:: means CWD), use of $ORIGIN (can enable hardlink attacks since it expands to the location of the binary itself), libraries and/or directories that are world/group writable. Also, consider DT_RUNPATH too since this offers similar functionality.

@Seirdy
Copy link
Author

Seirdy commented Oct 11, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants