Sitemap
John Crepezzi

John Crepezzi

john is a software developer

The Dangers of Hosted Code

OAuth on GitHub is scary

2 min readDec 10, 2013

There are a bunch of services like CodeClimate, Travis.CI, and Coveralls that are awesome (seriously check them out if you haven’t). Furthermore, they’re really easy to use! All you have to do is OAuth GitHub, select a repository, and you’re good to go.

Get John Crepezzi’s stories in your inbox

Join Medium for free to get updates from this writer.

On one hand, I’m excited that services and integrations like this can exist. It opens up all kinds of interesting possibilities for tools to help developers be more productive. On the other hand, I’m terrified at the potential security implications.

10 years ago, would you have tarred up your code (and all commit history) and send it over to another organization for review?

If GitHub didn’t have such an absolutely exceptional API, and it wasn’t so easy (one click) to give away access — would you have ever uploaded an all_my_code.tar or everything_we_wrote.zip of your repository to a service for review? All of your code, just given away.

Think of all the bad things people would do if they had all of your code! I mean, ideally you don’t have any scary secrets or access tokens in your repository— but we all know you do. Now you’re not just trusting your developers, and Github — but these other organizations.

I’m not suggesting you don’t use services like these, just that it’s an attack vector people don’t instantly think of — and something to be extra-vigilant about.

--

--