Anyone can access deleted and private repository data on GitHub
trufflesecurity.com
Anyone can access deleted and private repository data on GitHub
1–10 of 394 posts
Re: Anyone can access deleted and private repository data on GitHub
#2Re: Anyone can access deleted and private repository data on GitHub
#3Re: Anyone can access deleted and private repository data on GitHub
#4Here is their full response from back then:
> Thanks for the submission! We have reviewed your report and validated your findings. After internally assessing the finding we have determined it is a known low risk issue. We may make this functionality more strict in the future, but don't have anything to announce now. As a result, this is not eligible for reward under the Bug Bounty program.
> GitHub stores the parent repository along with forks in a "repository network". It is a known behavior that objects from one network member are readable via other network members. Blobs and commits are stored together, while refs are stored separately for each fork. This shared storage model is what allows for pull requests between members of the same network. When a repository's visibility changes (Eg. public->private) we remove it from the network to prevent private commits/blobs from being readable via another network member.
Re: Anyone can access deleted and private repository data on GitHub
#5And if that entity has a complex system of storage and retrieval of data by and for many users, that changes frequently, without public scrutiny - it should be assumed that data breaches are likely to occur.
So I don't see it as very problematic that GitHub's private repositories, or deleted repositories, are only kind-sorta-sometimes private and deleted.
And it's silly that the article refers to one creating an "internal version" of a repository - on GitHub....
Still, interesting to know about the network-of-repositories concept.
Re: Anyone can access deleted and private repository data on GitHub
#6That's exactly how you should treat anything made available to the public (and there's no need for the subsequent qualifier that appears in the article—"as long as there is at least one fork of that repository").
Re: Anyone can access deleted and private repository data on GitHub
#7Re: Anyone can access deleted and private repository data on GitHub
#8I reported this on their HackerOne many years ago (2018 it seems) and they said it was working as intended. Conclusion: don't use private forks. Copy the repository instead. Here is their full response from back then: > Thanks for the submission! We have reviewed your report and validated your findings. After internally assessing the finding we have determined it is a known low risk issue. We may make this functional…
Re: Anyone can access deleted and private repository data on GitHub
#9For example if the root repo is DMCA’d, or, if repo B forks repo A, then B adds some stuff that causes B to get DMCA’d. Can A still access B?