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

TAF Updater On Linux Shouldn't Try To Execute #73

Open
tekktonic opened this issue Apr 3, 2024 · 3 comments
Open

TAF Updater On Linux Shouldn't Try To Execute #73

tekktonic opened this issue Apr 3, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@tekktonic
Copy link

When a TAF update is available, TAF does the right thing by downloading the unix client, however the code after that assumes that the download is only for windows and attempts to run it like an executable:

2024-04-02 21:01:13.951  INFO 3458 --- [lication Thread] c.f.c.update.ClientUpdateServiceImpl     : Starting installer at /home/danny/.taforever/cache/update/tafclient_unix_2024_01_13.tar.gz
/home/danny/.taforever/cache/update/tafclient_unix_2024_01_13.tar.gz: /home/danny/.taforever/cache/update/tafclient_unix_2024_01_13.tar.gz: cannot execute binary file

I'm not sure if there's already code to untar archives in the codebase, but at the very least it's a security problem for it to be trying to execute a file which is just data.

@tekktonic tekktonic added the bug Something isn't working label Apr 3, 2024
@exuvo
Copy link
Contributor

exuvo commented Apr 8, 2024

Don't see how it is a security problem, no program loader would succeed in loading a tar.gz . Is the execute bit even set?

@tekktonic
Copy link
Author

It's only a security problem in the broad sense of "trying to execute something that's supposed to purely be data is a bad practice." The theoretical problem would be someone hijacking the domain for TAF and putting something malicious in that says it's .tar.gz.

@exuvo
Copy link
Contributor

exuvo commented Apr 9, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants