GitHub RCE by Environment variable injection Bug Bounty writeup
gist.github.com
gist.github.com
--ignore-rpath LIST
Ignore RPATH and RUNPATH information in object names in LIST.
This option has been supported by glibc2 for about one hour.
Then it was renamed into:
--inhibit-rpath LIST
I'm not sure if it's a joke or an incredible testament to backwards compatibility.I've been writing a COFF linker recently, and have been reading lots of comments and man pages about linkers and loaders. The more i read, i think dynamic linking isn't such a good idea after all.
Is it specific to github's "gerve" application?
What and where is the bug exactly - I mean, how can a username with linefeeds end up setting environment variables? And what username is being set - ssh? github account? wouldn't you need to use exactly the username "git" when ssh'ing in to github to trigger this gerve app anyways?
Yes. "it is possible to inject some environment variables into gerve"
Because it's his git hub username. You answered that question yourself:
"And what username is being set - ssh? github account? wouldn't you need to use exactly the username 'git' when ssh'ing in to github to trigger this gerve app anyways?"
So if it's not his ssh username it must be his... 'github username'! it's the only other possibility you could think of right?
...