News for hackers. Stuff that matters.
Re:GitHub's email correlation for authorship by timf on Wednesday May 12, 2010 @06:13PM (#1342438)
This was just me verifying what I saw, that if you push commits to GitHub, it correlates the email address of authors introducing commits elsewhere. You can make it look like anyone you want is contributing patches, the avatar shows up, etc. This example commit does NOT show up in dhh's timeline, though.

I am not going to start requiring PGP signing for my projects, they are not big enough to miss something fishy. This was just something I hadn't considered, it is probably an obvious issue to many already.

Re:GitHub's email correlation for authorship by rtomayko on Wednesday May 12, 2010 @06:59PM (#1342562)
That's mostly correct. We use the email addresses provided in the commit Author and Committer fields and correlate them with the email addresses associated with GitHub user accounts. The commit Author/Committer email addresses are also used to fetch gravatar images even when no GitHub user account exists for the email.

It's trivial to spoof these fields using the --author argument to git-commit(1), by setting the GIT_AUTHOR_EMAIL/GIT_COMMITTER_EMAIL environment variables, or by setting a different name/email using git-config(1).

Re:GitHub's email correlation for authorship by timf on Wednesday May 12, 2010 @07:07PM (#1342590)
Thanks. So it didn't cross my mind that this was some huge security flaw, I would have reported something like that privately. I hope starting this discussion does not cause any unecessary confusion.

GitHub rocks, it has really changed our contributor attitudes. I am a happy, paying customer (another account) and just really hope you guys are around a long time!

Re:GitHub's email correlation for authorship by rtomayko on Wednesday May 12, 2010 @07:20PM (#1342615)
> GitHub rocks, it has really changed the contributor attitudes for my main project, I am a paying customer (another account)

Thanks!

> and just really hope you guys are around a long time!

We'll be here. It's a profitable business with a straightforward model and we intend to keep it that way.

Re:GitHub's email correlation for authorship by lenni on Wednesday May 12, 2010 @06:43PM (#1342515)
Would you care to elaborate a little? I only understand it partially.

So, you aren't 'dhh' but you commited using his email address and it showed up as him?

Re:GitHub's email correlation for authorship by petercooper on Wednesday May 12, 2010 @06:59PM (#1342564)
It's on a par with using a forged From header over SMTP. You can send e-mail as pretty much anyone. (Though technologies like SPF are helping clamp down on this.)

"Joe jobbing" is when spammers use real e-mail addresses in their From headers so that that person gets the flak. In a round about way, this is the same for patches/commits :-)

Re:GitHub's email correlation for authorship by jackowayed on Wednesday May 12, 2010 @07:06PM (#1342587)
He changed his git config so that user.email was [email protected] (The email DHH lists on GitHub). GitHub then automatically says "oh, this is by [email protected], so let's put his avatar there and link to his profile as the author."

Changing the config is as simple as

    git config user.email "[email protected]"
And you can add a --global flag if you want that to be the default for all repos instead of just the one you're on.

Edit: There's also some way to do it with a --author= flag when you commit.

Re:GitHub's email correlation for authorship by clemesha on Wednesday May 12, 2010 @06:52PM (#1342544)
You have it correct. What you say in your second sentence is exactly the issue.

If this is "actually" a big issue or not is another question.

Re:GitHub's email correlation for authorship by technoweenie on Thursday May 13, 2010 @02:35PM (#1345173)
Sure, all it does is links the commit to a github login. It doesn't somehow give you access to any data that's not yours. You've just discovered another way to post spam.
Re:GitHub's email correlation for authorship by wwortiz on Wednesday May 12, 2010 @06:42PM (#1342511)
I would hope people didn't blindly accept patches off of merit anyways, or is there another problem I am missing?

Edit: not to say this shouldn't be fixed I am curious if this implies anything else that I may be missing.

Re:GitHub's email correlation for authorship by clemesha on Wednesday May 12, 2010 @06:48PM (#1342532)
No patch has been accepted (unless I mis-understood what you are saying).

In fact, if it's not totally obvious to everyone that timf is the one that committed the latest commit, then this demonstration is noteworthy.

Re:GitHub's email correlation for authorship by wwortiz on Wednesday May 12, 2010 @06:58PM (#1342561)
I was simply stating that patches shouldn't be accepted just because a high profile person submitted it (which this could possible be used to spoof for malicious intent).

As for the second part I was wondering if this had any other implications such as committing to someone else repo or if it is just masking identities with another users.