this post was submitted on 26 Jul 2024
214 points (95.0% liked)

Technology

59534 readers
3197 users here now

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related content.
  3. Be excellent to each another!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, to ask if your bot can be added please contact us.
  9. Check for duplicates before posting, duplicates may be removed

Approved Bots


founded 1 year ago
MODERATORS
 

Researchers at Truffle Security have found, or arguably rediscovered, that data from deleted GitHub repositories (public or private) and from deleted copies (forks) of repositories isn't necessarily deleted.

Joe Leon, a security researcher with the outfit, said in an advisory on Wednesday that being able to access deleted repo data – such as APIs keys – represents a security risk. And he proposed a new term to describe the alleged vulnerability: Cross Fork Object Reference (CFOR).

"A CFOR vulnerability occurs when one repository fork can access sensitive data from another fork (including data from private and deleted forks)," Leon explained.

For example, the firm showed how one can fork a repository, commit data to it, delete the fork, and then access the supposedly deleted commit data via the original repository.

The researchers also created a repo, forked it, and showed how data not synced with the fork continues to be accessible through the fork after the original repo is deleted. You can watch that particular demo.

you are viewing a single comment's thread
view the rest of the comments
[–] AdamEatsAss@lemmy.world 53 points 3 months ago (3 children)

Oh god. That means all the spaghetti code that I ever wrote is still out there.

[–] radivojevic@discuss.online 21 points 3 months ago (2 children)

Yup. Along with the code from huge organizations. I always thought it was funny that people put their code online, blindly trusting some random company that got gobbled up by Microsoft.

[–] 4am@lemm.ee 14 points 3 months ago (1 children)

Along with every private key that was accidentally committed.

[–] radivojevic@discuss.online 11 points 3 months ago (1 children)

Ha ha, way way back in the day when I didn’t understand how keys worked, I sent a private key to another developer when they asked for my public. They were kind enough to educate me.

[–] sugar_in_your_tea@sh.itjust.works -3 points 3 months ago

As a lifelong troll, I would've just generated a new pub key and made a bunch of commits as you. Then two days later, I would tell you what's up once you had time to process the confusion.

[–] Chocrates@lemmy.world 8 points 3 months ago

Your point is valid, but many (most?) enterprises don't use a forking worlflow, so I suspect open source projects will be hit harder, sadly

[–] Cosmos7349@lemmy.world 10 points 3 months ago (1 children)

Not only just out there. I am regenerating your spaghetti code into a new context with copilot 🧑‍✈️ Your (ai-regenerated) code will be driving our military nuclear launch code base! Congratulations!

[–] ByteOnBikes@slrpnk.net 2 points 3 months ago (1 children)

Your (ai-regenerated) code will be driving our military nuclear launch code base!

What's so difficult about writing code that checks if you have 8 zeroes?

https://gizmodo.com/for-20-years-the-nuclear-launch-code-at-us-minuteman-si-1473483587

[–] Cosmos7349@lemmy.world 1 points 3 months ago

Oh I'm just the cleaning guy, so I don't really know how to code it myself. We laid off all the developers three weeks ago.

[–] SpaghettiYeti@lemmy.world 4 points 3 months ago