<?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 fr0stNuLL on Medium]]></title>
        <description><![CDATA[Stories by fr0stNuLL on Medium]]></description>
        <link>https://medium.com/@frostnull?source=rss-b4a45b8aa11f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*rgC-3RreIGrOYHuq_BZleg.png</url>
            <title>Stories by fr0stNuLL on Medium</title>
            <link>https://medium.com/@frostnull?source=rss-b4a45b8aa11f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 25 Nov 2026 01:01:41 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@frostnull/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[Path Traversal on multilingual feature]]></title>
            <link>https://medium.com/@frostnull/path-traversal-on-multilingual-feature-8e9b649de914?source=rss-b4a45b8aa11f------2</link>
            <guid isPermaLink="false">https://medium.com/p/8e9b649de914</guid>
            <category><![CDATA[hackerone]]></category>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[pentesting]]></category>
            <dc:creator><![CDATA[fr0stNuLL]]></dc:creator>
            <pubDate>Thu, 11 Jul 2019 20:42:11 GMT</pubDate>
            <atom:updated>2019-07-11T20:42:11.432Z</atom:updated>
            <content:encoded><![CDATA[<p>Hi everyone, this time I’ll share something interesting, which I found during a WEB <strong>pentest</strong>. Due to company policy, I will call the website of <a href="https://www.foo.pt/"><strong>https://www.foo.pt</strong></a>. During my <strong>footprint</strong> phase I realized that the site supported several types of languages, such as:</p><p><a href="https://www.foo.pt/fr">https://www.foo.pt/fr</a>/home/ -&gt; this would be translated to French<br><a href="https://www.foo.pt/en">https://www.foo.pt/en</a>/home/ -&gt; translated to English<br>and so on..</p><p>That ‘s when I thought, how would that be? And I went to research how to do this …</p><p>“internationalization”?<br>“multilingual”?</p><p>I found this article from google<br><strong>https://support.google.com/webmasters/answer/182192</strong></p><p>So, I thought, well maybe there is a file which is required when I change the language? maybe a path traversal could work here.</p><p>something like this:</p><pre>echo $this-&gt;translate(“Home”);</pre><p>and for my surprise, after some fuzzing, BOOM! i got a path traversal :). The following image illustrates the fact:</p><figure><img alt="More info what is Pathtraversal here → https://portswigger.net/web-security/file-path-traversal" src="https://cdn-images-1.medium.com/max/714/1*c1JQQ9OCnQjz0ZSsWO_VgQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8e9b649de914" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hi guys again here bringing an experience to share with you, as usual I will overshadow some…]]></title>
            <link>https://medium.com/@frostnull/hi-guys-again-here-bringing-an-experience-to-share-with-you-as-usual-i-will-overshadow-some-f85a1d5a8d8c?source=rss-b4a45b8aa11f------2</link>
            <guid isPermaLink="false">https://medium.com/p/f85a1d5a8d8c</guid>
            <category><![CDATA[security]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[pentesting]]></category>
            <dc:creator><![CDATA[fr0stNuLL]]></dc:creator>
            <pubDate>Mon, 03 Jun 2019 18:24:49 GMT</pubDate>
            <atom:updated>2019-06-04T00:29:59.753Z</atom:updated>
            <content:encoded><![CDATA[<h3>Simple PathTraversal bypass</h3><p>.</p><p>Hi guys again here bringing an experience to share with you, as usual I will overshadow some information let’s go ..</p><p>Passing through the application, I came across a feature which, it was possible to download a document, the functionality trigger the following request:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/1*C_IkiQ0Lokt4CYFUiFNgXQ.png" /></figure><p>As you can see, in the body of the request, precisely in the info parameter, there was a lot of numbers, I tried some <strong>SQLi </strong>payloads, <strong>XSS</strong> but without success, after I tried the payload foo/../304368[rest of numbers], and the application still returned me the file, I found it interesting.. so I tried to search for <strong>/etc/passwd</strong>, using the techniques of <a href="https://www.owasp.org/index.php/Path_Traversal">path traversal</a>, after trying a bit and reading this <a href="https://code.google.com/archive/p/teenage-mutant-ninja-turtles/wikis/AdvancedObfuscationPathtraversal.wiki">article</a> , and test some payloads using fuzzing <a href="https://portswigger.net/burp/documentation/desktop/tools/intruder/using">techniques</a>, i finally got one that worked <strong>../../../etc/passwd%00</strong>, the <strong>%00</strong> is a known bypass for several scenarios not only path traversal more info <a href="https://www.whitehatsec.com/glossary/content/null-byte-injection">here</a>. The following images illustrates the payload and response:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/876/1*XP0lfffNqaIJaVP6JQ2pWw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/882/1*ZCAPrlMz7Q3wIobhghtp6Q.png" /></figure><p>After getting all the users with payload quoted, I made a list with the absolute path of each user retrieved, and made another <em>wordlist</em> containing common linux files like <strong>.bashrc</strong>, <strong>.vimrc</strong> and others. By doing this it was possible to recover one user’s <strong>.bash_history</strong> file, as demonstrated below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/877/1*ea_nVZXvwhX9J4VMJhklwQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/872/1*bHhWpoaw6OIG76ePn3zZOQ.png" /></figure><p>After reading the contents of the .bash_history(if you don’t know what is <strong>.bash_history</strong> <a href="https://askubuntu.com/questions/953334/how-does-the-history-command-work">here</a>) file of the user in question, I could see that there was a file with a <strong>.zip</strong> extension, so I went to recover this file, using the same <strong>00%</strong> payload technique as shown Next:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/878/1*fCExVAhC1JjXPdxe4v-IQQ.png" /></figure><p>After getting this file, i unzip and got a lot of java files like bellow:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/868/1*iNdZFaNKsX4Hc8F7oQCuTQ.png" /></figure><p>Finally, I used a tool to decompile <a href="https://github.com/java-decompiler/jd-gui/releases">JD-GUI</a> the<strong> .jar</strong> files, retrieved them, and got some information. As shown below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/863/1*3wfUIglMbJEkv2ym9DBvUw.png" /></figure><p>So that’s it folks. This was simple I hope to have contributed a bit with you xD.</p><p>Sharing is Caring</p><p>best regards, fr0stNuLL</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f85a1d5a8d8c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From file upload to email:pass]]></title>
            <link>https://medium.com/@frostnull/from-file-upload-to-email-pass-dc7141aa1ff6?source=rss-b4a45b8aa11f------2</link>
            <guid isPermaLink="false">https://medium.com/p/dc7141aa1ff6</guid>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[pentesting]]></category>
            <category><![CDATA[hacking]]></category>
            <dc:creator><![CDATA[fr0stNuLL]]></dc:creator>
            <pubDate>Fri, 24 May 2019 15:27:22 GMT</pubDate>
            <atom:updated>2019-05-24T15:27:22.547Z</atom:updated>
            <content:encoded><![CDATA[<p>Hi everybody, today I want to show you a cool experience that I had, doing a P<em>entest</em> in a private program. First of all, I overshadowed all the sensitive information of the company. Let’s go...</p><p>First, there was a form that a non-authenticated user could send information about errors or suggestions of the application and in this form it was also possible to upload files like the image bellow:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*Tf9W5o66lGjeTrVjftULHA.png" /></figure><p>Through the request response headers I knew it was a <strong>Microsoft</strong> server, so I uploaded a <strong>reverse shell</strong> in <strong>.asp </strong>(more info how to create web shells<strong> </strong><a href="https://redteamtutorials.com/2018/10/24/msfvenom-cheatsheet/">here</a><strong>) </strong>and<strong> </strong>put the <strong>.png</strong> at the end of the <strong>.asp</strong> file, as illustrated below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/731/1*iNXqSTaWWRSY09cxpyBKKA.png" /></figure><p>however, the application did not let me upload, so I put the <strong>Content-type </strong>header as <strong>png</strong>, deleted the <strong>.png</strong> that I had placed before and it worked, as illustrated below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/729/1*Ud2hB4prkDzKPlttGCCRpQ.png" /></figure><p>Through the application response I was able to get the location where my reverse shell was placed, so I copied the path, put the password and we got a reverse shell, as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/732/1*RMJE8keWvOq-257wGTG0xw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/734/1*gzco6xwnevhn8aVyDtJEMg.png" /></figure><p>The next step was to check which were the users with administrative privileges in the environment so I used the (<em>net group</em> <strong>“Domain Admins”</strong> / <em>domain) </em>command. And as a result all domain administrators are shown. The image below demonstrates the fact:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/730/1*A0C67jsJ91dkVGPmfdzSiA.png" /></figure><p>After searching for sensitive files like passwords, backup files and other things, I came across the database connection string:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/701/1*MebHWcMhEyu3DpMB-wJGxA.png" /></figure><p>By opening the database connection string file, it was possible to obtain the database password and login, as shown below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/733/1*wogYTFUztRFXxGsCOBThlQ.png" /></figure><p>Finally, after obtaining the credentials of access to the database, in the reverse shell I put the information collected previously and I made a query in the database mentioned, and as a result I was able to obtain the password of the administrator of the application and the other users:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*n773oJxLk9YceD-FDw-qfw.png" /></figure><p>So that’s it folks. This was simple I hope to have contributed a bit with you <strong>xD</strong>.</p><p><strong>Sharing is Caring</strong></p><p>best regards, <strong>fr0stNuLL</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dc7141aa1ff6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SQL injection through User-Agent]]></title>
            <link>https://medium.com/@frostnull/sql-injection-through-user-agent-44a1150f6888?source=rss-b4a45b8aa11f------2</link>
            <guid isPermaLink="false">https://medium.com/p/44a1150f6888</guid>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[pentesting]]></category>
            <dc:creator><![CDATA[fr0stNuLL]]></dc:creator>
            <pubDate>Wed, 08 May 2019 23:11:39 GMT</pubDate>
            <atom:updated>2019-05-08T23:12:39.667Z</atom:updated>
            <content:encoded><![CDATA[<p>Hi everyone, in this simple tutorial I will describe how I was able to exploit a SQL injection, using the user-agent as vector. First of all, I will leave “blur” in the sensitive parts as it was requested from the customer of the private program. After authenticating in the application I came across the following request:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dsEZwp3AoBL-FqF5Wf0NfQ.png" /></figure><p>After, try several things .. and application always return “OK” in the response .. I put a single quote (‘) in the U<strong>ser-Agent Header</strong> .. result, instead of the application return 200 OK, returned 401 .. as demonstrated below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DSJYAxqpVLMXsigERqro0A.png" /></figure><p>Next step was trying to exploit some SQL injection payloads, after a few tries it sees that the application was vulnerable to a type of SQL injection <a href="https://www.troyhunt.com/everything-you-wanted-to-know-about-sql/">Boolean based</a>. Putting the tests into practice, when the payload <strong>‘ AND’ 1 ‘=’ 1</strong> was inserted into the <strong>User-Agent</strong> the application returned 200 OK, when the payload <strong>‘ AND’ 1 ‘=’ 2</strong> was entered the application returned 401. The images below illustrate the fact:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VSYakqA4ZG_5FUB4RCAtlA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G3UQF5-aBqZRNxE4kN5DEQ.png" /></figure><p>After confirming that the application was vulnerable, the next step was to try to verify which version of the database the application was using. For this, I have tested functions of the <strong>Oracle</strong>, <strong>MySQL</strong>, <strong>MicrosoftSQL</strong> etc. databases. Finally, through the payload <strong>‘ and substring(@@version,1,1)=1=’1&#39;’,</strong> it was possible to identify that the database was <strong>MySQL</strong> or <strong>MariaDB. </strong>The images bellow show the fact:</p><blockquote>OBS: if you don’t know what the function <strong>substring </strong><a href="https://www.w3resource.com/mysql/string-functions/mysql-substring-function.php"><strong>here</strong></a><strong> you can found :)</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YoxXN2bx0uKL_Dg99UlOvQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_vUNGQfIAep5ASJrL9a88w.png" /></figure><p>After iterates the values of <strong>substring</strong> function i got the version i it was <strong>10.1.21 Mariadb.</strong></p><p>A cool trick when you find a <strong>Boolean</strong> <strong>based</strong>, is to test if there is a possibility of using a “<strong>subselect</strong>”, in my case it was possible.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X33Ph9L9kSBMhb4BHG1Vxg.png" /></figure><p>To get the name of the table, it is necessary to make a <strong>wordlist</strong> with some familiar names and it is also cool, to make a <strong>wordlist</strong> with the name of the company. Through the following payload <strong>‘ AND (select 1 from “WORDLIST” limit 0,1)=1+‘</strong>, it was possible to get the name of the table “<em>app_user</em>”, see that in the image the below is returned 200 OK in the response of the server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5eQnT_WldWZY2Vvk_ODFJg.png" /></figure><p>Now, that we have the name of the table, we go behind the name of the <strong>columns</strong> so we can get the user and the password. In the same way that it was exploited to get the table name, an attempt / error is also used here with common names used in <strong>colums</strong> such as user, password, user_pass, passwd, etc. The following images illustrate the name of the retrieved columns.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AlEMWSWg6s9wO2vw4epDbQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kOerYn9uhP1bAh0ZDW9Xow.png" /></figure><p>Finally, the following payload looks for the “password” column in the “app_user” table where the user id is equal to ‘X’ and brings the user password in the application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J-ECuWw3o7SIRGmN0sTTKA.png" /><figcaption>Return 200 “OK” for user id 971</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cMP8lMTUDP_lJDBsq80bIw.png" /><figcaption>Return 401 for user id 972</figcaption></figure><p>This is all personal, I can not show the rest with the passwords in the application because it would violate some terms :) any doubt we are together. <strong>Sharing is Caring :)</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=44a1150f6888" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>