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

Check that the repo ID hasn't changed to prevent repo-jacking #1402

Closed

Conversation

kevinbackhouse
Copy link

The goal of this change is to prevent "repo-jacking", which can happen if a GitHub user changes their username. It happened once last year when somebody managed to repo-jack the phpass library. You can defend against repo-jacking by checking that the repo ID hasn't changed.

Unfortunately I haven't been able to test this code properly. I've tried to build and run packagist in a VM, but something is wrong with my setup and I haven't been able to trigger this part of the code.

@kommendorkapten
Copy link

Awesome 💯

@Seldaek
Copy link
Member

Seldaek commented Jan 10, 2024

Thanks for the idea! The implementation was indeed not quite complete, and at the wrong place IMO as we do trigger updates in the background etc. Anyway I ran with it over at #1411 so closing this :)

@Seldaek Seldaek closed this Jan 10, 2024
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.

3 participants