<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title></title>
    <description>A blog about security stuff I find intresting</description>
    <link>https://dejandayoff.com/</link>
    <atom:link href="https://dejandayoff.com/feed.xml" rel="self" type="application/rss+xml"/>
    <pubDate>Thu, 06 Aug 2020 21:15:35 -0400</pubDate>
    <lastBuildDate>Thu, 06 Aug 2020 21:15:35 -0400</lastBuildDate>
    <generator>Jekyll v2.5.3</generator>
    
      <item>
        <title>The Danger of Exposing Docker.Sock</title>
        <description>&lt;p&gt;&lt;img align=&quot;right&quot; src=&quot;/assets/img/docker/docker_sock.png&quot;&gt;&lt;/p&gt; &lt;p&gt;By default, when the &lt;code&gt;docker&lt;/code&gt; command is executed on a host, an API call to the docker daemon is made via a non-networked UNIX socket located at &lt;code&gt;/var/run/docker.sock&lt;/code&gt;. This socket file is the main API to control any of the docker containers running on that host. However, many containers and guides require you to expose this socket file as a volume within a container&lt;a href=&quot;https://docs.traefik.io/#1-launch-traefik-tell-it-to-listen-to-docker&quot;&gt;&lt;sup&gt;[1]&lt;/sup&gt;&lt;/a&gt;&lt;a href=&quot;https://www.portainer.io/installation/&quot;&gt;&lt;sup&gt;[2]&lt;/sup&gt;&lt;/a&gt;&lt;a href=&quot;https://elastest.io/docs/deploying/ubuntu/&quot;&gt;&lt;sup&gt;[3]&lt;/sup&gt;&lt;/a&gt;&lt;a href=&quot;https://vamp.io/documentation/installation/v0.9.5/hello-world/&quot;&gt;&lt;sup&gt;[4]&lt;/sup&gt;&lt;/a&gt;&lt;a href=&quot;https://github.com/containrrr/watchtower&quot;&gt;&lt;sup&gt;[5]&lt;/sup&gt;&lt;/a&gt;&lt;a href=&quot;https://github.com/spotify/docker-gc#running-as-a-docker-container&quot;&gt;&lt;sup&gt;[6]&lt;/sup&gt;&lt;/a&gt; or in some cases, expose it on a TCP port&lt;a href=&quot;https://www.ivankrizsan.se/2016/05/18/enabling-docker-remote-api-on-ubuntu-16-04/&quot;&gt;&lt;sup&gt;[1]&lt;/sup&gt;&lt;/a&gt;&lt;a href=&quot;https://success.docker.com/article/how-do-i-enable-the-remote-api-for-dockerd&quot;&gt;&lt;sup&gt;[2]&lt;/sup&gt;&lt;/a&gt;&lt;a href=&quot;https://medium.com/@ssmak/how-to-enable-docker-remote-api-on-docker-host-7b73bd3278c6&quot;&gt;&lt;sup&gt;[3]&lt;/sup&gt;&lt;/a&gt;. Docker containers that expose &lt;code&gt;/var/run/docker.sock&lt;/code&gt;, locally or remotely, could lead to a full environment...</description>
        <pubDate>Thu, 11 Apr 2019 08:00:00 -0400</pubDate>
        <link>https://dejandayoff.com/the-danger-of-exposing-docker.sock/</link>
        <guid isPermaLink="true">https://dejandayoff.com/the-danger-of-exposing-docker.sock/</guid>
        
        <category>docker</category>
        
        
        <category>docker,</category>
        
        <category>vulnerability</category>
        
      </item>
    
      <item>
        <title>NoBots - AppSec USA 2018 CTF Solution</title>
        <description>&lt;h1&gt;Running the challenge&lt;/h1&gt; &lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-bash&quot; data-lang=&quot;bash&quot;&gt;docker run -p 5050:80 -e &lt;span class=&quot;nv&quot;&gt;SECRET_KEY&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&amp;quot;YourSecretKey&amp;quot;&lt;/span&gt; -e &lt;span class=&quot;nv&quot;&gt;SITE_KEY&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&amp;quot;YourSiteKey&amp;quot;&lt;/span&gt; dejandayoff/nobots &lt;/code&gt;&lt;/pre&gt;&lt;/div&gt; &lt;p&gt;Using a browser, visit http://localhost:5050 (do not visit 127.0.0.1:5050, the domain must be localhost)&lt;/p&gt; &lt;p&gt;The SECRET&lt;em&gt;KEY and SITE&lt;/em&gt;KEY are required if you want to run the second challenge with Google reCAPTCHA. This only takes a minute to set up: &lt;/p&gt; &lt;ol&gt; &lt;li&gt;Go to https://www.google.com/recaptcha/admin&lt;/li&gt; &lt;li&gt;Fill out &amp;quot;Register a new site&amp;quot; section with the following information: &lt;img src=&quot;/assets/img/nobots/captcha.png&quot; alt=&quot;reCAPTCHA parameters&quot;&gt;&lt;/li&gt; &lt;li&gt;Add your secret key and site key to the docker command above.&lt;/li&gt; &lt;/ol&gt; &lt;h1&gt;Solution&lt;/h1&gt; &lt;p&gt;The challenge is to automate...</description>
        <pubDate>Tue, 29 Jan 2019 15:18:30 -0500</pubDate>
        <link>https://dejandayoff.com/nobots---appsec-usa-2018-ctf-solution/</link>
        <guid isPermaLink="true">https://dejandayoff.com/nobots---appsec-usa-2018-ctf-solution/</guid>
        
        <category>CTF</category>
        
        <category>AppSecUSA</category>
        
        
        <category>ctf</category>
        
      </item>
    
      <item>
        <title>RCE Cornucopia - AppSec USA 2018 CTF Solution</title>
        <description>&lt;h1&gt;Running the challenge&lt;/h1&gt; &lt;p&gt;All of the challenges in RCE Cornucopia is designed to run in docker. Each challenge runs in it’s own container to prevent one RCE affecting the stability of the other challenges. During a CTF, these containers were rotated out ever 10 seconds. However, to run RCE Cornucopia locally you don’t have to worry about that. To run the challenge, simply create a file name docker-compose.yml with the following contents:&lt;/p&gt; &lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-yaml&quot; data-lang=&quot;yaml&quot;&gt;&lt;span class=&quot;l-Scalar-Plain&quot;&gt;version&lt;/span&gt;&lt;span class=&quot;p-Indicator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&amp;#39;3&amp;#39;&lt;/span&gt; &lt;span class=&quot;l-Scalar-Plain&quot;&gt;services&lt;/span&gt;&lt;span class=&quot;p-Indicator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;l-Scalar-Plain&quot;&gt;frontend&lt;/span&gt;&lt;span class=&quot;p-Indicator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;l-Scalar-Plain&quot;&gt;image&lt;/span&gt;&lt;span class=&quot;p-Indicator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;l-Scalar-Plain&quot;&gt;dejandayoff/rce_cornucopia_frontend&lt;/span&gt; &lt;span class=&quot;l-Scalar-Plain&quot;&gt;ports&lt;/span&gt;&lt;span class=&quot;p-Indicator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;p-Indicator&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;l-Scalar-Plain&quot;&gt;8080:80&lt;/span&gt; &lt;span class=&quot;l-Scalar-Plain&quot;&gt;challenge1&lt;/span&gt;&lt;span...</description>
        <pubDate>Sun, 21 Oct 2018 15:51:38 -0400</pubDate>
        <link>https://dejandayoff.com/rce-cornucopia---appsec-usa-2018-ctf-solution/</link>
        <guid isPermaLink="true">https://dejandayoff.com/rce-cornucopia---appsec-usa-2018-ctf-solution/</guid>
        
        <category>CTF</category>
        
        <category>AppSecUSA</category>
        
        
        <category>ctf</category>
        
      </item>
    
      <item>
        <title>Using DNS to Break Out of Isolated Networks in a AWS Cloud Environment</title>
        <description>&lt;h1&gt;TL;DR&lt;/h1&gt; &lt;p&gt;Customers can utilize AWS&amp;#39; DNS infrastructure in VPCs (enabled by default). Traffic destined to the AmazonProvidedDNS is traffic bound for AWS management infrastructure and does not egress via the same network links as standard customer traffic and is not evaluated by Security Groups. Using DNS exfiltration, it is possible to exfiltrate data out of an isolated network.&lt;/p&gt; &lt;hr&gt; &lt;p&gt;DNS exfiltration allows an attacker to bypass outbound firewall rules, and exfiltrate data or perform command and control activity with an external service, by only using the DNS protocol. In this case, DNS Exfiltration can even be used to exfiltrate data...</description>
        <pubDate>Mon, 27 Nov 2017 12:05:00 -0500</pubDate>
        <link>https://dejandayoff.com/using-dns-to-break-out-of-isolated-networks-in-a-aws-cloud-environment/</link>
        <guid isPermaLink="true">https://dejandayoff.com/using-dns-to-break-out-of-isolated-networks-in-a-aws-cloud-environment/</guid>
        
        <category>aws</category>
        
        <category>DNS</category>
        
        
        <category>research</category>
        
      </item>
    
      <item>
        <title>CactusCon and AppSec USA CTF Challenges and Walkthrough</title>
        <description>&lt;p&gt;This year my colleagues and I hosted a CTF at AppSec USA in Orlando, Florida and CactusCon in Phoenix, Arizona. I developed two of the challenges for the CTF. In this post, I will give you the source code and how to set up the challenge locally. I am also providing an official walkthrough describing how I expected people to go through the challenges.&lt;/p&gt; &lt;h1&gt;Set-up&lt;/h1&gt; &lt;p&gt;Set up for both challenges is fairly similar.&lt;/p&gt; &lt;h2&gt;Prerequisites&lt;/h2&gt; &lt;p&gt;&lt;em&gt;Note: I did all my development on a Mac, I see no reason why this wouldn&amp;#39;t work on a Linux machine, and in theory this should...</description>
        <pubDate>Tue, 03 Oct 2017 10:33:02 -0400</pubDate>
        <link>https://dejandayoff.com/cactuscon-and-appsec-usa-ctf-challenges-and-walkthrough/</link>
        <guid isPermaLink="true">https://dejandayoff.com/cactuscon-and-appsec-usa-ctf-challenges-and-walkthrough/</guid>
        
        <category>CTF</category>
        
        <category>CactusCon</category>
        
        <category>AppSecUSA</category>
        
        
        <category>ctf</category>
        
        <category>cactuscon</category>
        
      </item>
    
      <item>
        <title>HTTP Route Busting</title>
        <description>&lt;p&gt;I did a talk at CactusCon 2017 about HTTP Route Busting.&lt;/p&gt; &lt;p&gt;Here is the slides if you would like a copy: &lt;a href=&quot;/assets/files/HTTP-Route-Busting.pdf&quot;&gt;HTTP Route Busting&lt;/a&gt;&lt;/p&gt; &lt;p&gt;Apparently there were more questions that just didn’t load so I will get to them in this post:&lt;/p&gt; &lt;h4&gt;The slides are very difficult to read from halfway back in the room, especially the text that&amp;#39;s in light.. pink? maybe? Can they be reposted online somewhere?&lt;/h4&gt; &lt;ul&gt; &lt;li&gt;Yes! The slides can be downloaded here. The AV team was having some issues with the projector and that was the best we could have done. Sorry about that...</description>
        <pubDate>Fri, 29 Sep 2017 07:33:05 -0400</pubDate>
        <link>https://dejandayoff.com/http-route-busting/</link>
        <guid isPermaLink="true">https://dejandayoff.com/http-route-busting/</guid>
        
        <category>presentation</category>
        
        
        <category>presentation</category>
        
        <category>research</category>
        
      </item>
    
      <item>
        <title>4 Ways to Transfer Files With a Limited Shell</title>
        <description>&lt;p&gt;Commonly during pentests I might be stuck on getting a file over to a system with only a limited shell. To be honest, this problem has mostly occurred to me on Windows so the solutions below will all work on Windows.&lt;/p&gt; &lt;h1&gt;Echo One Line at a Time&lt;/h1&gt; &lt;p&gt;The first method is to prefix the “echo” command to the beginning of each line and redirect the output to a file. You would then be able to simply paste the script into the limited shell and your file will be transferred. This method would really only be useful to transfer ASCII only...</description>
        <pubDate>Sat, 22 Apr 2017 04:42:48 -0400</pubDate>
        <link>https://dejandayoff.com/4-ways-to-transfer-files/</link>
        <guid isPermaLink="true">https://dejandayoff.com/4-ways-to-transfer-files/</guid>
        
        <category>oscp</category>
        
        <category>HowTo</category>
        
        
        <category>oscp</category>
        
        <category>research</category>
        
      </item>
    
      <item>
        <title>OSCP Review - Felt the Pain and Suffered through it</title>
        <description>&lt;p&gt;On March 15th 2017 I received my Offensive Security Certified Professional (OSCP) Certificate. Well I guess I have yet to receive the physical certificate (they say it could take 60 days), but I have received confirmation that I have passed the test. Over 1 year of studying, 1 failed attempt, and countless hours spent in the lab, I have finally achieved my goal. In this post, I will review the PWK course process, my study strategy, and my exam strategy.&lt;/p&gt; &lt;p&gt;The course and exam break down into the following sections:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;PWK Course book and exercises&lt;/li&gt; &lt;li&gt;In-person PWK Course and...</description>
        <pubDate>Mon, 03 Apr 2017 16:30:16 -0400</pubDate>
        <link>https://dejandayoff.com/oscp-review---felt-the-pain-and-suffered-through-it/</link>
        <guid isPermaLink="true">https://dejandayoff.com/oscp-review---felt-the-pain-and-suffered-through-it/</guid>
        
        <category>oscp</category>
        
        
        <category>oscp</category>
        
      </item>
    
      <item>
        <title>CMD+CTRL CTF at DEF CON 24 Review</title>
        <description>&lt;p&gt;This year our CTF team (Savage Submarine) took first place in CMD+CTRL at DEF CON 24! This is my review of the CTF challenges and scoreboard and the overall experience. I will not be providing any walkthroughs or answers since the CMD+CTRL creators will be using these challenges again in other competitions.&lt;/p&gt; &lt;p&gt;Savage Submarine consisted of:&lt;/p&gt; &lt;p&gt;&lt;a href=&quot;https://twitter.com/amoldp18&quot;&gt;@amoldp18&lt;/a&gt;&lt;/p&gt; &lt;p&gt;&lt;a href=&quot;https://twitter.com/crowdshield&quot;&gt;@crowdshield&lt;/a&gt; &lt;a href=&quot;https://crowdshield.com/&quot;&gt;site&lt;/a&gt;&lt;/p&gt; &lt;p&gt;&lt;a href=&quot;https://twitter.com/dejandayoff&quot;&gt;@dejandayoff&lt;/a&gt;&lt;/p&gt; &lt;p&gt;&lt;a href=&quot;https://twitter.com/hackerbyhobby&quot;&gt;@hackerbyhobby&lt;/a&gt;&lt;/p&gt; &lt;p&gt;&lt;a href=&quot;https://twitter.com/tibaal89&quot;&gt;@tibaal89&lt;/a&gt; &lt;a href=&quot;https://tibaal.github.io/&quot;&gt;site&lt;/a&gt;&lt;/p&gt; &lt;p&gt;We started off by walking around the DEF CON contest area trying to find the SecureNinja CTF. However, we ran into the CMD+CTRL booth and they convinced us to sign...</description>
        <pubDate>Sat, 13 Aug 2016 13:07:23 -0400</pubDate>
        <link>https://dejandayoff.com/cmd+ctrl-ctf-at-def-con-24-review/</link>
        <guid isPermaLink="true">https://dejandayoff.com/cmd+ctrl-ctf-at-def-con-24-review/</guid>
        
        <category>DEFCON</category>
        
        <category>CTF</category>
        
        
        <category>defcon</category>
        
        <category>ctf</category>
        
      </item>
    
      <item>
        <title>YoBlog CactusCon CTF Walkthrough</title>
        <description>&lt;p&gt;So, you’ve competed in the YoBlog Root-the-box challenge and you want to know the official answer? Well you’ve come to the right place! I am the creator of the YoBlog challenge and here is the official walkthrough. You can run the challenge locally (VirtualBox) by downloading the ova:&lt;/p&gt; &lt;p&gt;&lt;a href=&quot;https://www.dropbox.com/s/2rcvglcysftjkk3/yo-blog_Release_0.9.6.ova?dl=0&quot;&gt;Download OVA&lt;/a&gt;&lt;/p&gt; &lt;h1&gt;Flag One - /etc/passwd&lt;/h1&gt; &lt;p&gt;When you first visit the YoBlog homepage, you are greeted with a banner, some articles, and a theme button.&lt;/p&gt; &lt;p&gt;&lt;img src=&quot;/assets/img/ctf/yoBlog/Home.png&quot; alt=&quot;Home&quot;&gt; &lt;/p&gt; &lt;p&gt;When the theme button is clicked, the user is given a few choices in color. If “White” is selected, the source will...</description>
        <pubDate>Mon, 16 May 2016 12:37:41 -0400</pubDate>
        <link>https://dejandayoff.com/yoblog-cactuscon-ctf-walkthrough/</link>
        <guid isPermaLink="true">https://dejandayoff.com/yoblog-cactuscon-ctf-walkthrough/</guid>
        
        <category>CactusCon</category>
        
        <category>CTF</category>
        
        <category>Root-The-Box</category>
        
        
        <category>cactuscon</category>
        
        <category>ctf</category>
        
      </item>
    
  </channel>
</rss>
