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

Use immutable URL for arbitrary code #44985

Merged
merged 1 commit into from
May 9, 2022

Conversation

jonathanhefner
Copy link
Member

If the client9/misspell repo is compromised, an attacker could control the contents of install-misspell.sh. Since we execute that file directly, we should use a URL that guarantees its contents will not change.

Note that, at the time of writing, the last commit to client9/misspell was in March 2018 (client9/misspell@c0b55c8), so the code appears to be stable.

Also, although using a tag would be prettier than using a hash, the repo's last commit is after its most recent tag (v0.3.4).

If the `client9/misspell` repo is compromised, an attacker could control
the contents of `install-misspell.sh`.  Since we execute that file
directly, we should use a URL that guarantees its contents will not
change.

Note that, at the time of writing, the last commit to `client9/misspell`
was in March 2018 (client9/misspell@c0b55c8),
so the code appears to be stable.

Also, although using a tag would be prettier than using a hash, the
repo's last commit is after its most recent tag (`v0.3.4`).
@byroot byroot merged commit ac8fd70 into rails:main May 9, 2022
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.

None yet

2 participants