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

Avoid risks of PATH exploits #5

Open
wants to merge 1 commit into
base: kinetic-devel
Choose a base branch
from

Conversation

guihomework
Copy link

Hi,
while trying to fix #4 I looked for environment variable preserving when executing with suid, and found there are actually vulnerabilities when doing system calls in a program with suid.

http://techblog.rosedu.org/exploiting-environment-variables.html
and for a more recent
https://www.hackingarticles.in/linux-privilege-escalation-using-path-variable/

this line https://github.com/shadow-robot/ethercat_grant/blob/kinetic-devel/src/ethercat_grant.cpp#L27 carries the potential risk even if I did not manage to reproduce the exploit (not sure what protects this yet), I think it would not be harmful to change the cp to its full linux path /bin/cp to avoid the PATH exploit

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

Successfully merging this pull request may close these issues.

rpath problems in melodic
1 participant