4 ms·
I'm pretty sure GitHub warns you every single time you pull from or push to a repository where the organisation or repository has been renamed and you're relyin
by lol768 3y ago
I'm pretty sure GitHub warns you every single time you pull from or push to a repository where the organisation or repository has been renamed and you're relying on an alias that is not permanent.
Why is this news, and why does it need a name of "RepoJacking" assigned to it when the behaviour is working exactly as designed?
This isn't a novel vulnerability, and I wouldn't say any novel vulnerability research has been conducted here. Sure, there's some value in doing a code search and finding instances where people have automated scripts etc relying on aliases, but the vulnerability lies within these scripts.
- deleted 3y ago[deleted]
- kristopolous 3y agoAll mutable global namespaces have the same problems. I didn't know you could get street cred pointing this out one by one. Let's try! If someone buys an expired domain and installs an SSL cert on it then old scripts will think it's legit. Let's call it phantomain, a combination of phantom and domain.
- topato 3y agoNo no! That's gotta be Ghomainjacking, two buzzwords in one AND ghosts are waaay spookier! Phantoms evoke too much imagery of incels in masks, singing on boats.
- kristopolous 3y agoI was also trying to allude to Saint-Domingue, the French colony which France woke up one day to realize it no longer had and "sans domain", which are way too nerdy. Let's go with yours Ghomainjacking but it's pronounced fimainjacking using the gho from ghoti because it's in the class of phishing attacks using a collision you didn't realize was possible
- SoftTalker 3y agoFirst thing I thought of too. If you've acquired a company, you'll need to plan on keeping the old domain names for a long time, if not indefinitely. Anyone who can later re-register that domain will now own any email sent there and any other network traffic as well.
- adrianmsmith 3y agoAgreed. For example NeXT was bought by Apple in 1997 yet next.com is still owned by Apple all this time later.
- rapnie 3y agoIf you ditch your twitter account and someone else adopts it and poses as you, you can only throw a tantrum. Beware for these twantrum attacks.
- junon 3y agoI thought Twitter famously doesn't allow reallocation of old usernames?
- mattigames 3y agoThey allow it, I closed my account and days later some bot had already taken over my old username.
- reidrac 3y agoIn fact, that's how you delete your old tweets: rename old account to a new username, register the old username, delete the renamed account. https://help.twitter.com/en/using-twitter/delete-tweets https://help.twitter.com/en/using-twitter/delete-tweets See "How to delete multiple Tweets". As bad as it sounds.
- HeyLaughingBoy 3y agoAfter NPR said they weren't going to post anymore because Musk decided to label them as "State Controlled Media" he made a point of saying, "OK, then we'll give your username to someone else after it expires in a month (apparently not posting for a month now expires accounts?)"
- warent 3y agoHmm did you read the article? One specific attack vector they show has nothing to with Git or pushing/pulling to repositories. It shows an install.sh which curl downloads a master.zip from a public github repo and executes files within it.
- forgotpwd16 3y ago>It shows an install.sh which curl downloads a master.zip from a public github repo A repo that is an alias to another one. Someone can create this repo breaking the alias and thus being able to serve whatever they want. This is the so-called "repojacking" and what GP is also talking about.
- kdmccormick 3y agoNope. The project I work on went through a governance restructuring and we moved half the repos to a new org. I haven't updated most of my remotes, but they redirect seamlessly, no CLI warnings whatsoever.
- tgv 3y agoSo would I see this message if it was pulled in a script, by npm, go install, cargo or another such tool? But this article describes RepoJacking as reclaiming the original repo. The alias is removed, and the warning you mention too.
- lol768 3y ago> So would I see this message if it was pulled in a script, by npm, go install, cargo or another such tool? The repository maintainers would, every single time they updated the code. For your own scripts, you'd see a 301 Moved Permanently response when e.g. fetching a source code ZIP. It's up to you as to whether you want to follow this redirect silently or print a warning.
- naillo 3y agoSecurity researchers love to fearmonger to stay employed
- lakomen 3y agoI believe it's just another fud article to support the terrible forced 2FA decision