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

Buffer overflow in libfuse patch #35

Closed
Bqleine opened this issue Jul 2, 2024 · 2 comments
Closed

Buffer overflow in libfuse patch #35

Bqleine opened this issue Jul 2, 2024 · 2 comments

Comments

@Bqleine
Copy link

Bqleine commented Jul 2, 2024

// For i = 4...99, check if there is a binary called "fusermount" + i
// It is not yet known whether this will work for our purposes, but it is better than not even attempting
for (int i = 4; i < 100; i++) {
prog = findBinaryInFusermountDir("fusermount" + i);
if (access(prog, X_OK) == 0)
return prog;
}

This adds to the string's pointer, it does not make a string concatenation at all. e.g it will lead to the following tries:

  • "rmountXXXX"
  • "mountXXXXX"
  • etc...
    With Xs being invalid memory addresses.
probonopd added a commit that referenced this issue Jul 2, 2024
Closes #35
Thanks @Bqleine
@probonopd probonopd mentioned this issue Jul 2, 2024
@probonopd
Copy link
Member

Actually... won't

https://github.com/AppImage/type2-runtime/pull/32/files

fix this once it finally gets reviewed and merged?

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 a pull request may close this issue.

2 participants