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

Non-executable files set with executable permissions #2172

Closed
mensfeld opened this issue Aug 12, 2021 · 4 comments · Fixed by #2176
Closed

Non-executable files set with executable permissions #2172

mensfeld opened this issue Aug 12, 2021 · 4 comments · Fixed by #2176

Comments

@mensfeld
Copy link
Contributor

Hey there,

While reviewing the source code of alchemy_cms I've noticed, that several files in the app/assets directory have executable permissions while not being an executables.

For example:

app/assets/stylesheets/tinymce/skins/alchemy/fonts/tinymce-small.sv
app/assets/stylesheets/tinymce/skins/alchemy/img/anchor.gif
app/assets/stylesheets/tinymce/skins/alchemy/img/trans.gif

is that something intended? If so, I would appreciate explanation as I often find it as a bug.

Thank you 🙏

@tvdeyen
Copy link
Member

tvdeyen commented Aug 12, 2021

This is not intentional. Thanks for reporting.

Out of curiosity what is the bug you are having?

@mensfeld
Copy link
Contributor Author

Out of curiosity what is the bug you are having?

No bug. By saying "I often find it as a bug" I wanted to indicate that usually it is not intentional.

@tvdeyen
Copy link
Member

tvdeyen commented Aug 12, 2021

So, do you think the maintainers need to take action on this or can we close this then, because it does not seem to break someones production site, right?

I am happy to accept a PR that changes those files permissions, though.

@mensfeld
Copy link
Contributor Author

mensfeld commented Aug 12, 2021

That is actually a good question. In general I think that only executable files should be executables as that indicates what can be executed. I'm happy to fix that in this repo, so if you don't mind lets keep it open till tomorrow (when I can submit a patch).

One security case that I've seen that could exploit that, is with types mismatch (it did happen) when png files were executables with cryptojacking code.

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