KEMBAR78
Check that the repo ID hasn't changed to prevent repo-jacking by kevinbackhouse · Pull Request #1402 · composer/packagist · GitHub
Skip to content

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