<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom"><title>Philipp Trommler's Blog - gitlab</title><link href="https://blog.philipp-trommler.me/en/" rel="alternate"></link><link href="https://blog.philipp-trommler.me/en/feeds/tag-gitlab.atom.xml" rel="self"></link><id>https://blog.philipp-trommler.me/en/</id><updated>2020-07-20T22:17:00+02:00</updated><entry><title>Possible Gitlab Hack</title><link href="https://blog.philipp-trommler.me/en/posts/2020/07/13/security-possible-gitlab-hack-johnyj12345/" rel="alternate"></link><published>2020-07-13T14:05:00+02:00</published><updated>2020-07-20T22:17:00+02:00</updated><author><name>Philipp Trommler</name></author><id>tag:blog.philipp-trommler.me,2020-07-13:/en/posts/2020/07/13/security-possible-gitlab-hack-johnyj12345/</id><summary type="html">&lt;p&gt;Today I noticed a new and unknown user on our company's Gitlab
instance: "johnyj12345". We immediatly took down our instance as it
seems as if that Johny was able to extract our secrets. You should
probably do so, too.&lt;/p&gt;</summary><content type="html">&lt;p&gt;Searching the web &lt;a href="https://www.google.com/search?q=johnyj12345"&gt;for the
username&lt;/a&gt; (attention: Google link!)
reveals that many self-hosted Gitlab instances are affected. The publicly
visible procedure is always the same: Johny creates one or more issues that are
linked with each other and at the end of the link cascade there's either an
attached file or a link to a file which holds Gitlab's &lt;code&gt;secrets.yml&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;From the web search it seems like the hack started on Saturday, though that may
be a false conclusion. In any case, you should probably take down your Gitlab
instance if you're affected since the &lt;code&gt;secrets.yaml&lt;/code&gt; contains Gitlab's base key
and the database encryption key which should better be private AFAIK. This may
or may not be an immediate attack surface, but better safe than sorry,
especially since the files can be easily found via Google.&lt;/p&gt;
&lt;p&gt;We're currently looking for a sane and safe way of rotating the keys within that
file. Any help would be appreciated.&lt;/p&gt;
&lt;h3 id="follow-up"&gt;Follow up&lt;a class="headerlink" href="#follow-up" title="Permanent link"&gt;&amp;para;&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;According to &lt;a href="https://forum.gitlab.com/t/security-many-selfhosted-instances-probably-hacked-by-johnyj12345/40135/3"&gt;their official
forum&lt;/a&gt;
the attack used &lt;a href="https://hackerone.com/reports/827052"&gt;a known bug&lt;/a&gt;
(&lt;a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-10977"&gt;CVE-2020-10977&lt;/a&gt;)
that has already been fixed in &lt;a href="https://about.gitlab.com/releases/2020/03/26/security-release-12-dot-9-dot-1-released/"&gt;version 12.9.1 released in
March&lt;/a&gt;
this year. We, unlike many others, had already installed the fix, thus the link
in the issue created by Johny pointed nowhere.&lt;/p&gt;
&lt;p&gt;Better subscribe to their &lt;a href="https://about.gitlab.com/atom.xml"&gt;Atom feed&lt;/a&gt; in
order to maintain the smallest possible attack surface for hackers. Alas, they
don't provide a release specific one.&lt;/p&gt;</content><category term="Security"></category><category term="git"></category><category term="gitlab"></category><category term="hacking"></category><category term="web"></category></entry></feed>