<?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 that_faceless_coder on Medium]]></title>
        <description><![CDATA[Stories by that_faceless_coder on Medium]]></description>
        <link>https://medium.com/@cybertest72?source=rss-2075f1b527ae------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*hjIsDBkuh6oPAnoKCyR_sA.jpeg</url>
            <title>Stories by that_faceless_coder on Medium</title>
            <link>https://medium.com/@cybertest72?source=rss-2075f1b527ae------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 06:54:06 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@cybertest72/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[The Untold SQLi Attacks]]></title>
            <link>https://medium.com/@cybertest72/the-untold-sqli-attacks-5a39c92591b6?source=rss-2075f1b527ae------2</link>
            <guid isPermaLink="false">https://medium.com/p/5a39c92591b6</guid>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[that_faceless_coder]]></dc:creator>
            <pubDate>Wed, 01 Jan 2020 00:59:54 GMT</pubDate>
            <atom:updated>2020-01-01T01:19:47.414Z</atom:updated>
            <content:encoded><![CDATA[<p>Several months have passed by without any new security publications. Hoping to unveil my current research at this time labelled “The Untold SQLi Attack.” I would like to show some few different ways of exploiting the popular vulnerability known as SQL injection. According to OWASP, SQL injection is the crafting of malicious sql queries through the input data from the client to the application. A successful SQL Injection (SQLi) can read, insert, update, delete, execute administration operations on the database, recover the content of a given file present on the DBMS file system and in some cases issue commands to the operating system(<a href="https://www.owasp.org/index.php/SQL_Injection">read more</a>).</p><p>Without talking much, let’s get started</p><p>Testing for SQLi:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P_2jMLg_vnFuBiYSZ78QAg.png" /><figcaption>Analyzing DATA Request in Burp Suite</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vcFDOlzKVoRnyQhoIC0-2A.png" /><figcaption>SQL Error Message</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sp-qIq_lMjj0_GQet4xKKQ.png" /><figcaption>Retrieving Databases with DATA request saved as file.txt</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7mBL6FhDLvpKiAt-31S-IA.png" /><figcaption>Databases Retrieved with SQLi</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A6SDrMn1wDskU67Y45W0iA.png" /><figcaption>Retrieving Tables in Database Warehouse</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pe78VrFBog-tK5o8hIzSHw.png" /><figcaption>Tables Retrieved from Database Warehouse</figcaption></figure><p>The above commands and methodology are what most of us are familiar with. When a database server and web server are run on the same system and share the same underlying file system, having an SQL injection and sufficient conditions (file permissions,DB privileges) are met then we can even upload a backdoor shell or read/download server configurations or files whose locations are generally predefined. Are there more ways of exploitations? Answer is Yes… Let’s see it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6XypxHOWjVpodp64mLFLdg.png" /><figcaption>Checking for Privileges</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7mxOGZ8qgYksWdOlcQ8h_g.png" /><figcaption>Administrator Privilege</figcaption></figure><p>You can see that the user has FILE privileges, as illustrated in the above screenshot, and we can use this to read / write files from the injection if the file system permissions allow this; To read / write files to the file system, MySQL runs a separate user account.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zWHaX5VlL93G8Ubj_qC69Q.png" /><figcaption>Writing Files into the File System</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*COGu1Ugm28ASTCZoVd4qzA.png" /><figcaption>Uploaded File view in broswer.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2iXCh86EpME9hmcXFbS1Rw.png" /><figcaption>Reading File in the File System</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zsQYh9vRoX4pnshHgjzoBg.png" /><figcaption>File Read Successfully</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Zb43gd2REDow6Gsq1Lvc3A.png" /><figcaption>Uploading a malicious php script</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ye99WrNWV--zSVSlWcQ4eA.png" /><figcaption>Running a “whoami” with malicious script</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cnv7NybxMiFhjx5VtUxjlQ.png" /><figcaption>Running a “dir” with malicious script</figcaption></figure><p>Great, we have a shell access to the server. Please note: This demonstration took place on a windows machine. When it comes to a linux machine, some commands and paths may vary.</p><p>Must Read: <a href="https://medium.com/@cybertest72/how-i-hacked-the-government-with-just-google-af3fc020717d">https://medium.com/@cybertest72/how-i-hacked-the-government-with-just-google-af3fc020717d</a></p><p>IG: that_faceless_coder</p><p>#TeamInveteck</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5a39c92591b6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Reading PHP Source Code Through A Browser]]></title>
            <link>https://medium.com/@cybertest72/reading-php-source-code-through-a-browser-e08a392d22fc?source=rss-2075f1b527ae------2</link>
            <guid isPermaLink="false">https://medium.com/p/e08a392d22fc</guid>
            <category><![CDATA[research]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[php]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[that_faceless_coder]]></dc:creator>
            <pubDate>Sun, 21 Jul 2019 11:03:39 GMT</pubDate>
            <atom:updated>2020-01-01T01:17:38.280Z</atom:updated>
            <content:encoded><![CDATA[<p>Last night Saturday 20th July 2019, as I sat through a boring day, I decided to make the night worthwhile. Feeling like a super hero all of a sudden I decided to do the almost impossible, hence our title “reading PHP source code through a browser.”</p><p>I came across an end point which had a file upload functionality.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nA-wvM40ltgoYXZIcnDVFQ.png" /></figure><p>I then decided to fill the forms and upload an image to understand how this server worked. After a 200 status, I decide to see if the site had a restriction on the type of files the server was accepting. I uploaded a php file and surprisingly i got this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hjcWqfiEZZAWD13Ei7G0rw.png" /></figure><p>I later realized uploading the malicious PHP file unto the server didn’t look realistic. Why?</p><ol><li>All uploads were images, and it was weird to have an upload which had no image to show.</li><li>Right clicking on the file and “opening image in new tab” didn’t show any image. That would look suspicious if the admin should see something like this on his server</li></ol><p>So i thought why not make my malicious code call image from the targets server. I then modified my script and added this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b_oFRv6hWgeGKgSPkPD5Zw.png" /></figure><p>Let me take this short while explaining what this code does. In the nutshell, it calls for an image(src) and at the background also gets the cmd. This case, when admin opens the malicious PHP, they will have an image which won’t look suspicious</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hXM1g8p-j03-5ZhBklvoOA.png" /></figure><p>Let’s test our malicious upload to see if it really works</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LNBCTsI9V2YFVERILfYz_Q.png" /></figure><p>I know most of you readers are curious to know how you could read source codes for sensitive information. Let’s get to it now</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Is7At11qbRZF0T5Cyvo2ow.png" /></figure><p>php?cmd=ls ..$u/..$u/..$u/ — command navigates me back 3 steps to the directory i wanted to be and using $u could be used to bypass any firewall in check. Mmmm now how do we read the new_blog_post.php?</p><p>Now let’s try: php?cmd=base64 &lt; ..$u/..$u/..$u/new_blog_post.php</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3KDmzEbF_a8jg_b0tYGJow.png" /></figure><p>WOW!!! We have a base64 encoding. Let’s decode it with <a href="https://www.base64decode.org/">https://www.base64decode.org</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5cquomZh2U5mgNdX5A3VYQ.png" /></figure><p>After decoding the base64 encoding, we now know the exact location of the db.php. Obviously we are curious to know what the db.php contains.</p><p>let’s try: php?cmd=base64 &lt; ..$u/..$u/..$u/db/db.php</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Bi27igQTsJYvnOWhqORaNA.png" /></figure><p>Time to decode again with <a href="https://www.base64decode.org/">https://www.base64decode.org</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*efWXM02nva8oyIJyyDBafQ.png" /></figure><p>&lt;?php</p><p>$con = new PDO(‘mysql:host=localhost;dhname=&lt;database name&gt;, &lt;username &gt;,&lt;password&gt;);</p><p>?&gt;</p><p>We were able to extract the dbname,username and password successfully</p><p>N.B: LINK TO SCRIPT <a href="https://github.com/that-faceless-coder/malicious-php.git">https://github.com/that-faceless-coder/malicious-php.git</a> . This is just for educational purpose.</p><p>Must read: <a href="https://medium.com/@cybertest72/the-untold-sqli-attacks-5a39c92591b6">https://medium.com/@cybertest72/the-untold-sqli-attacks-5a39c92591b6</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e08a392d22fc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How i hacked the government with “just” google]]></title>
            <link>https://medium.com/@cybertest72/how-i-hacked-the-government-with-just-google-af3fc020717d?source=rss-2075f1b527ae------2</link>
            <guid isPermaLink="false">https://medium.com/p/af3fc020717d</guid>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[pentesting]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[that_faceless_coder]]></dc:creator>
            <pubDate>Mon, 01 Jul 2019 15:02:42 GMT</pubDate>
            <atom:updated>2019-12-30T20:44:26.987Z</atom:updated>
            <content:encoded><![CDATA[<p>H3ll0 Fr13nds,</p><p>Writing my first report on medium made me nervous with the complete confusion of where to start from. On the evening of 25 Jun 2019 around 18:30 UTC after bug hunting on Bugcrowd, I decided to look into sites that had some juicy contents hosted online that were not meant to be.</p><p>Without talking much, lets dive into the case.</p><p>I went over to google.com and tried some google dorks like site:redact intitle:”index of” filename</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dipE4sodxj2BowFJWCoAkA.png" /></figure><p>Surprisingly I found About 1,930 results (0.44 seconds)</p><p>Wait!!! What? Those who are new to this would ask what’s google dorks. According to <a href="https://whatis.techtarget.com/definition/Google-dork-query">whatis.techtarget.com,</a> a google dork query, sometimes just referred to as a dork, is a search string that uses advanced search operators to find information that is not readily available on a website.</p><p>Back to the results. The government url caught my attention and wanting to feed my curious self led me to the page.</p><p>Ok so the part that got me excited. I saw mysql files compressed in gz, and also txt extension. It was a total compression of 14M , there was no way in hell i was downloading that unto my baby. Thats when i thought to myself, why don’t i just view the txt file since that was about 43.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZKLRwDfu6-_YyYZui7U6mw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*129z1jXKD0DocGgXjW2UaA.png" /></figure><p>Did this government server really say “this file should not be publicly accessible?” Well we still accessed it. I then decided not to feed my curiosity again.</p><p>What do i do with this server? As an ethical hacker, it’s always important to report any findings you come across before the bad guy gets it. Now time to report the incidence to the CSIRT.</p><p>Really!!!! The government has no CSIRT any findings can be reported to?!!! I still went ahead to the contact us and emailed asking for any further email i could report this issue to.</p><p>SHOULD SECURITY BE TAKEN SERIOUSLY??? Kindly give your opinion in the comment field below</p><p>Next : <a href="https://medium.com/@cybertest72/reading-php-source-code-through-a-browser-e08a392d22fc?source=your_stories_page---------------------------">Reading PHP Source Code Through A Browser</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=af3fc020717d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>