Github Intentionally Lets You Read Deleted & Private Commits

แชร์
ฝัง
  • เผยแพร่เมื่อ 9 ต.ค. 2024
  • jh.live/snyk || Try Snyk for free and find vulnerabilities in your code and applications! ➡ jh.live/snyk
    Learn Cybersecurity - Name Your Price Training with John Hammond: nameyourpricet...
    Learn Coding: jh.live/codecr...
    Don't listen to other "influencer" VPN crap -- host YOUR OWN: jh.live/openvpn
    WATCH MORE:
    Dark Web & Cybercrime Investigations: • Tracking Cybercrime on...
    Malware & Hacker Tradecraft: • Malware Analysis & Thr...
    📧JOIN MY NEWSLETTER ➡ jh.live/email
    🙏SUPPORT THE CHANNEL ➡ jh.live/patreon
    🤝 SPONSOR THE CHANNEL ➡ jh.live/sponsor
    🌎FOLLOW ME EVERYWHERE ➡ jh.live/twitter ↔ jh.live/linkedin ↔ jh.live/discord ↔ jh.live/instagram ↔ jh.live/tiktok
    💥 SEND ME MALWARE ➡ jh.live/malware
    🔥TH-cam ALGORITHM ➡ Like, Comment, & Subscribe!

ความคิดเห็น • 50

  • @PwnySlaystation01
    @PwnySlaystation01 วันที่ผ่านมา +25

    I wonder what the implications to the DMCA this has. Example: I fork a major public repo and commit copyrighted code/writing to my forked copy... Say I commit the first Harry Potter novel.. My repo gets hit with a DMCA takedown request, so it gets deleted (because legally, it has to be). Now I can just post the hash and anyone can visit it? I ASSUME github can manually delete the commit "for real" in a case like this, but I'm curious. It'd have to be removed from the parent repo right? And other forks?

    • @amunak_
      @amunak_ วันที่ผ่านมา

      When a repo gets hit with a DMCA it disappears all its forks too iirc.

    • @FranLegon
      @FranLegon วันที่ผ่านมา +5

      That's a nice exploit you're suggesting

    • @wizix9877
      @wizix9877 วันที่ผ่านมา

      was thinking the same thing but with distributing files, or kill switch in case of c2

  • @asksearchknock
    @asksearchknock วันที่ผ่านมา +29

    Github security is totally forked 😂

    • @fruitloop831
      @fruitloop831 วันที่ผ่านมา

      😂 I know right, good content, shite info IMO

    • @tpevers1048
      @tpevers1048 วันที่ผ่านมา

      Na ahh they are fixing it stop telling this to everyone😢

    • @fruitloop831
      @fruitloop831 วันที่ผ่านมา

      @@tpevers1048 fixing? this has been easy to do for years the only reason they "fixing" it is cos of the attention it is getting. You really think it's going to be fixed you're kidding ya self

  • @kaslmineer7999
    @kaslmineer7999 วันที่ผ่านมา +14

    3:36: [discord notfication sound]

    • @luketurner314
      @luketurner314 วันที่ผ่านมา

      I legit thought it was my discord, but since I couldn't find any evidence there I replayed that bit of the video to confirm. lol

    • @CrittingOut
      @CrittingOut 11 ชั่วโมงที่ผ่านมา

      3 of them this video lmfao

  • @takennmc
    @takennmc วันที่ผ่านมา +1

    you could also clone the repo and filter any commit that is normally public so it doesn't hit the api always

  • @TheMAZZTer
    @TheMAZZTer วันที่ผ่านมา +6

    The next question is does this work for DMCAed repos?

    • @bradley144
      @bradley144 วันที่ผ่านมา +1

      If you know the commit hash, then yes.

  • @logiciananimal
    @logiciananimal วันที่ผ่านมา

    GitHub could be much more proactive with the rate limiting in various ways, thus lowering the risk of discovery. This is also a "can I find a way to steal *that* car" vs. "can I find a way to steal *a* car" situation, which is context dependent.

    • @guiorgy
      @guiorgy 16 ชั่วโมงที่ผ่านมา

      It's a cat and mouse game. If there's a rate limit on each ip, just get a couple of systems, maybe rent them, and increase the scanning speed that way

  • @ParabolicLabs
    @ParabolicLabs วันที่ผ่านมา +5

    I always recommend hosting your own git server with SSH keys for auth specifically for private repos.

  • @MyRandomness987
    @MyRandomness987 วันที่ผ่านมา +1

    3 total discord sounds heard lol. Love your videos!

  • @MD101-ssh
    @MD101-ssh วันที่ผ่านมา +1

    dude, that's crazy.

  • @austinmurphy9074
    @austinmurphy9074 วันที่ผ่านมา +1

    you gotta turn off your discord notification sounds when you record 😆

  • @HEXiT_
    @HEXiT_ วันที่ผ่านมา +3

    this is common. you delete something and it doesnt get deleted. just your access to it is removed.
    meta and google both do the same too :(

    • @badura.develop
      @badura.develop 3 ชั่วโมงที่ผ่านมา

      It's called soft delete, try to learn a thing or 2 about it, and you'll learn why most of companies are doing it.

  • @mingxi1055
    @mingxi1055 วันที่ผ่านมา +5

    concerning, indeed.

  • @xanzut
    @xanzut 5 ชั่วโมงที่ผ่านมา

    So if you somehow found a sensitive information from some company in github, you can fork the repo, and still can access the information even the original repo is deleted 😂their IT security would cry for this

  • @austinmurphy9074
    @austinmurphy9074 วันที่ผ่านมา

    so if someone forks a public repo then makes it private, are those commits accessible from the public upstream one? 🤔

  • @alexanderw4714
    @alexanderw4714 วันที่ผ่านมา +1

    Is this related to github only? What's about Gitlab?

  • @icebice
    @icebice วันที่ผ่านมา

    SHA1 isn't actually long so brute forcing a repo with X amounts of proxies/VPN is still viable and there are a lot of VPN and proxies available on the internet 😅
    Yeah it'll be slow but it will in the end successfully gain access to viable data.

  • @Randy-nb6fw
    @Randy-nb6fw วันที่ผ่านมา

    would it be possible to use google dorking to find these or would they not really be picked up??

    • @Randy-nb6fw
      @Randy-nb6fw วันที่ผ่านมา

      just tried but could only find people talking about related issues, POC code and people talking about it lol.
      maybe somebody else might have better luck

  • @planixxx
    @planixxx วันที่ผ่านมา

    Why not count from 0 to 65535 in hexadecimal it will be between 0x0000 FFFF which will include the whole range. am i missing something here ?

    • @Darius1013
      @Darius1013 วันที่ผ่านมา

      This is exactly what Itertools.Product() does, but instead:
      0x0000
      0x0001
      ...
      0xfff
      you will get (if used with JH sequence):
      0xaaaa
      0xaaab
      ...
      0xaaa1
      0xaaa2
      ..
      0xfff0
      ..
      0xffff
      if you want 0000 to ffff, initial chars = '0123456789abcdef'.. Ok, performance wise maybe hex+1 is faster, but it's so minimal difference.. Slowest operation here is request, and if you want flexibility (like you know initial hash for sure not have 0 in it) Itertools is way better

    • @Darius1013
      @Darius1013 วันที่ผ่านมา

      Dam, you made me look.. on 4 chars there is no difference, results in both cases comes in like 0.005s.. But if we increase it to 6 chars, hex+1 is ~20% faster, but again we are talking like 2.5s vs 2s for generation (these results using online compiler, so on real pc they probably are even lower)

  • @SmilerRyanYT
    @SmilerRyanYT วันที่ผ่านมา +2

    So just to make sure i'm understanding this correctly, if someone forks a public repo for themselves, makes it private, edits some stuff and deletes it, the original repo can still see that as long as you know the git commit hash?

    • @zacadoole1
      @zacadoole1 วันที่ผ่านมา +1

      I don’t think you can technically make a private fork of a public repo, they won’t let you

    • @SmilerRyanYT
      @SmilerRyanYT วันที่ผ่านมา

      @@zacadoole1 Seems like you're right. you can only fork them publicly and can't edit them to be private once they're made so that's good to know.

  • @fruitloop831
    @fruitloop831 วันที่ผ่านมา +2

    Yer this is old news, but should be mentioned/referenced on the page

  • @TomCopeProductions
    @TomCopeProductions วันที่ผ่านมา

    If you are going to shill other people's work please link it in the description, it's the least you can do

  • @Linda-n7v
    @Linda-n7v วันที่ผ่านมา

    😮 ✋️ I have so much to learn. 😊 ty

  • @thripnixe
    @thripnixe 19 ชั่วโมงที่ผ่านมา

    Bro is two months late

  • @adriantarver2229
    @adriantarver2229 วันที่ผ่านมา

    More like C4! 💥💥💥

  • @megatron324
    @megatron324 วันที่ผ่านมา

    her name is Amber.

  • @jitxhere
    @jitxhere วันที่ผ่านมา +1

    Wow this is atleast P1 if not P0 level thing

  • @Abhinav-Dash05
    @Abhinav-Dash05 วันที่ผ่านมา

    Now i know why openai is now not interested in issuing api keys to me. Why github whyyyyyyy😢

  • @Apoplexy18
    @Apoplexy18 วันที่ผ่านมา

    WTF

  • @ThisIsJustADrillBit
    @ThisIsJustADrillBit วันที่ผ่านมา +2

    Oopsie 😂 what could go wrong 😅

  • @KLEOPATTRAA999
    @KLEOPATTRAA999 7 ชั่วโมงที่ผ่านมา

    🏦🏦🏦🏦🏦🏦🏦🏦🏦👌😏🤗🙌🙌🙌🙌🙌🙌🙌 Thank you Thank you my friend and well wisher Hare Krsna Allah!!!

  • @pphreak_1001
    @pphreak_1001 วันที่ผ่านมา

    Interesting 👌

  • @codecaine
    @codecaine วันที่ผ่านมา