<?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 Yash Nimbalkar on Medium]]></title>
        <description><![CDATA[Stories by Yash Nimbalkar on Medium]]></description>
        <link>https://medium.com/@bughunt.bochi?source=rss-cf2be32d79b1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*bVy-wYLVvQaPqUFxZRXANg.jpeg</url>
            <title>Stories by Yash Nimbalkar on Medium</title>
            <link>https://medium.com/@bughunt.bochi?source=rss-cf2be32d79b1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 10:01:44 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@bughunt.bochi/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[Learning Smart Contracts Hacking: 0x02 Hello Bank Contract]]></title>
            <link>https://coinsbench.com/learning-smart-contracts-hacking-0x02-hello-bank-contract-0360acd0f226?source=rss-cf2be32d79b1------2</link>
            <guid isPermaLink="false">https://medium.com/p/0360acd0f226</guid>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[web3]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[solidity]]></category>
            <dc:creator><![CDATA[Yash Nimbalkar]]></dc:creator>
            <pubDate>Wed, 26 Feb 2025 15:13:54 GMT</pubDate>
            <atom:updated>2025-02-28T16:03:55.742Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qF7YSdQ1CIVFiYUD" /><figcaption>Credits: Dall-E</figcaption></figure><blockquote><em>whoami </em>¯\_(ツ)_/¯</blockquote><p>Hello, fellow bug hunters and cybersecurity geeks! I’m Yash Nimbalkar. Currently pursuing my Master’s degree in Cyber Security.</p><p>So I have decided to learn about Smart contracts and Blockchain technology. In this blog series, I will discuss and document my progress, share resources, and provide insights into Solidity, smart contracts, and blockchain security. My primary reference for this learning path is the blog <a href="https://medium.com/immunefi/hacking-the-blockchain-an-ultimate-guide-4f34b33c6e8b">Hacking the Blockchain: Ethereum</a>, which serves as an excellent guide to understanding Ethereum vulnerabilities and security. Additionally, I am following the <a href="https://www.youtube.com/playlist?list=PLCwnLq3tOElpIi6Gci36PnvrrS8ljBHkq">ConsoleCowboys YouTube playlis</a>t as my starting point, which provides hands-on tutorials on smart contract development.</p><p>If you have not read my previous blog discussing basic Hello World Smart Contract, then do check it out from here:</p><p><a href="https://medium.com/@bughunt.bochi/learning-smart-contracts-hacking-0x01-hello-world-28cb76993e76">Learning Smart Contracts Hacking: 0x01 Hello World</a></p><p>In this blog, we will take a deep dive into the HelloBank smart contract, a simple decentralized banking system built using Solidity. This contract allows users to deposit and withdraw funds while enforcing ownership rules. Understanding how such contracts work is crucial, especially when dealing with contracts that handle real money. Let’s break down its functionality step by step and discuss the key takeaways that every developer and user should be aware of.</p><p>So let’s fly right into it🚀</p><h3>HelloBank Contract</h3><pre>pragma solidity 0.8.26;<br><br>contract HelloBank{<br>    address public owner;<br>    mapping(address =&gt; uint) private balances;<br><br>    constructor() public payable {<br>        owner = msg.sender;<br>    }<br><br>    function isOwner() public view returns(bool){<br>        return msg.sender == owner;<br>    }<br><br>    modifier onlyOwner(){<br>        require(isOwner());<br>        _;<br>    }<br><br>    function deposit() public payable {<br>        require((balances[msg.sender] + msg.value)&gt;=balances[msg.sender]);<br>        balances[msg.sender] += msg.value;<br>    }<br><br>    function withdraw(uint withdrawAmount) public{<br>        require(withdrawAmount &lt;= balances[msg.sender]);<br>        balances[msg.sender] -= withdrawAmount;<br>        payable(msg.sender).transfer(withdrawAmount);<br>    }<br><br>    function withdrawAll() public onlyOwner{<br>        payable(msg.sender).transfer(address(this).balance);<br>    }<br><br>    function getBalance() public view returns(uint){<br>        return balances[msg.sender];<br>    }<br>}</pre><h3>Key Concepts and Functionality</h3><h4>Solidity Keywords and Their Importance</h4><ol><li><strong>pragma solidity 0.8.26</strong>: This line specifies the Solidity compiler version to ensure compatibility and security. Solidity versions 0.8 and above come with built-in overflow and underflow protections, reducing the risks of certain types of attacks.</li><li><strong>address public owner</strong>: This declares a state variable owner that holds the Ethereum address of the contract creator, allowing us to define ownership and access control mechanisms.</li><li><strong>mapping(address =&gt; uint) private balances</strong>: This mapping keeps track of how much Ether each user has deposited. It is marked private, meaning that external contracts cannot access this directly.</li><li><strong>constructor() public payable { owner = msg.sender; }</strong>: The constructor is executed once during contract deployment. Here, the deployer’s address is assigned as the owner, giving them special privileges.</li><li><strong>modifier onlyOwner(){ require(isOwner()); _; }</strong>: Modifiers like this are reusable blocks of code used to enforce restrictions. This onlyOwner modifier ensures that only the contract owner can execute certain functions.</li><li><strong>payable</strong>: Functions or constructors marked payable can receive Ether. This is crucial for functions that require sending and handling funds within a contract.</li></ol><h4>Deposits and Withdraw Functions</h4><pre>function deposit() public payable {<br>        require((balances[msg.sender] + msg.value)&gt;=balances[msg.sender]);<br>        balances[msg.sender] += msg.value;<br>    }<br><br>    function withdraw(uint withdrawAmount) public{<br>        require(withdrawAmount &lt;= balances[msg.sender]);<br>        balances[msg.sender] -= withdrawAmount;<br>        payable(msg.sender).transfer(withdrawAmount);<br>    }</pre><p>The <strong><em>deposit </em></strong>function allows users to send Ether to the contract, updating their balance in the mapping. The <strong><em>withdraw </em></strong>function lets users retrieve their funds, ensuring that they cannot withdraw more than what they have deposited. Importantly, the contract subtracts the balance before transferring funds to prevent <strong><em>reentrancy </em></strong>attacks, a common vulnerability in smart contracts where attackers can repeatedly call a function before the balance is updated. We will discuss the reentrancy attacks in the upcoming blogs.</p><h4>Owner Privileges and Potential Risks</h4><pre>function withdrawAll() public onlyOwner{<br>        payable(msg.sender).transfer(address(this).balance);<br>    }</pre><p>One crucial aspect of this contract is the <strong><em>withdrawAll </em></strong>function, which allows the owner to withdraw all Ether stored in the contract. While this is sometimes necessary for administrative purposes, it also introduces risks. If the owner is malicious or their private key is compromised, they could withdraw all funds, leaving users with nothing. This is why it is important to be cautious when interacting with contracts that contain functions allowing the owner to empty the entire balance.</p><p>To mitigate such risks, developers can introduce multi-signature wallets, time locks, or smart contract governance mechanisms to ensure that fund withdrawals require multiple approvals or delays before execution.</p><h4>Checking Your Balance</h4><pre>function getBalance() public view returns(uint){<br>        return balances[msg.sender];<br>    }</pre><p>The <strong><em>getBalance </em></strong>function is a simple read function that allows users to check how much Ether they have deposited. Since this function is marked <strong>view</strong>, it does not consume gas when called externally.</p><h4>Security Considerations</h4><p>While this contract is relatively simple, it incorporates key security principles:</p><ol><li><strong>Reentrancy Attack Prevention</strong>: By updating user balances before transferring funds, the contract prevents malicious actors from exploiting it.</li><li><strong>Access Control</strong>: The onlyOwner modifier restricts sensitive functions to the contract owner, ensuring unauthorized users cannot drain funds.</li><li><strong>Overflow Protection</strong>: Solidity 0.8+ automatically includes checks to prevent <strong><em>overflow and underflow errors</em></strong>, which were common attack vectors in earlier versions.</li></ol><h3>Final Thoughts</h3><p>Understanding smart contract security is critical, especially when dealing with financial transactions on the blockchain. The <em>HelloBank </em>contract provides a foundational understanding of ownership, access control, and fund management. However, security risks such as <strong><em>reentrancy </em></strong>attacks remain a significant challenge in Solidity development.</p><p>In the next blog, we will explore reentrancy attacks in detail, how they work, and how to defend against them effectively. Stay tuned!</p><p>I’m always eager to learn and grow in the field of cybersecurity. If you’d like to collaborate or discuss vulnerabilities, let’s connect:</p><ul><li><a href="https://www.linkedin.com/in/yash-nimbalkar/">LinkedIn</a></li><li><a href="https://x.com/Bochixx">X (formerly Twitter)</a></li></ul><p>Together, we can make the web a safer place, one vulnerability at a time. 🚀</p><p>Good Luck! Happy Learning!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0360acd0f226" width="1" height="1" alt=""><hr><p><a href="https://coinsbench.com/learning-smart-contracts-hacking-0x02-hello-bank-contract-0360acd0f226">Learning Smart Contracts Hacking: 0x02 Hello Bank Contract</a> was originally published in <a href="https://coinsbench.com/">CoinsBench</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learning Smart Contracts Hacking: 0x01 Hello World]]></title>
            <link>https://medium.com/@bughunt.bochi/learning-smart-contracts-hacking-0x01-hello-world-28cb76993e76?source=rss-cf2be32d79b1------2</link>
            <guid isPermaLink="false">https://medium.com/p/28cb76993e76</guid>
            <category><![CDATA[web3]]></category>
            <category><![CDATA[solidity]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[smart-contract-security]]></category>
            <category><![CDATA[smart-contracts]]></category>
            <dc:creator><![CDATA[Yash Nimbalkar]]></dc:creator>
            <pubDate>Mon, 24 Feb 2025 23:50:12 GMT</pubDate>
            <atom:updated>2025-02-24T23:50:12.029Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*yjgCbzyBnIKbOy6W" /><figcaption>Credits: Dall-E</figcaption></figure><blockquote>whoami <em>¯\_(ツ)_/¯</em></blockquote><p>Hello, fellow bug hunters and cybersecurity geeks! I’m Yash Nimbalkar. Currently pursuing my Master’s degree in Cyber Security.</p><p>So I have decided to learn about Smart contracts and Blockchain technology. In this blog series, I will discuss and document my progress, share resources, and provide insights into Solidity, smart contracts, and blockchain security. My primary reference for this learning path is the blog <a href="https://medium.com/immunefi/hacking-the-blockchain-an-ultimate-guide-4f34b33c6e8b">Hacking the Blockchain: Ethereum</a>, which serves as an excellent guide to understanding Ethereum vulnerabilities and security. Additionally, I am following the <a href="https://www.youtube.com/playlist?list=PLCwnLq3tOElpIi6Gci36PnvrrS8ljBHkq">ConsoleCowboys YouTube playlis</a>t as my starting point, which provides hands-on tutorials on smart contract development.</p><p>So let’s fly right into it🚀</p><h3>Setting Up the Development Environment🛠️💻</h3><p>For developing smart contracts, we use Solidity as the programming language. One of the most convenient tools for writing, compiling, and deploying Solidity code is <a href="https://remix.ethereum.org/">Remix IDE</a>. Remix is a browser-based development environment that offers various features to facilitate Solidity development.</p><h4><strong>Key Features of Remix IDE:</strong></h4><p><strong>File Explorer:</strong> Manage Solidity files, create, delete, and organize them efficiently.<br><strong>Search: </strong>Find specific code snippets within your project.<br><strong>Solidity Compiler: </strong>Compile Solidity contracts with various compiler versions.<br><strong>Deploy &amp; Run Transactions: </strong>Deploy and interact with contracts using test networks or local environments.<br><strong>Debugger: </strong>Analyze transactions, step through execution, and troubleshoot issues.<br><strong>Git Integration: </strong>Manage version control, commit changes, and collaborate with others seamlessly.<br><strong>Plugins: </strong>Extend Remix IDE functionality with security analysis, testing, and visualization tools.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lc3RCBdSardcue6v1f2Nkw.png" /><figcaption>Remix Dashboard 🤘</figcaption></figure><h3>Writing Our First Smart Contract✍️📜</h3><p>Let’s start with a basic “Hello World” smart contract in Solidity:</p><pre>pragma solidity 0.8.26;<br><br>contract HelloWorld {<br>    constructor() public payable {<br>        // Constructor logic<br>    }<br>    <br>    function hello() public pure returns (string memory) {<br>        return &quot;Hello World!&quot;;<br>    }<br>}</pre><h4>Explanation of the Code:</h4><p><strong>pragma solidity 0.8.26;</strong>: Specifies the Solidity compiler version, ensuring compatibility.<br><strong>contract HelloWorld</strong>: Declares a new contract named HelloWorld that will contain our logic.<br><strong>constructor() public payable {}</strong>: The constructor runs only once upon deployment and accepts Ether. The payable keyword allows the contract to receive funds upon deployment.<br><strong>function hello() public pure returns (string memory</strong>):<br><em>public</em>: Makes the function accessible to anyone.<br><em>pure</em>: Indicates that the function does not read or modify contract state, making it gas-efficient.<br><strong>Returns a simple string</strong>: “Hello World!”.</p><h3>Compiling the Smart Contract</h3><p>To compile the contract in Remix:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/964/1*2hLBxlc661ibvH14xUnr4Q.png" /><figcaption>Compiler Options ⚙️</figcaption></figure><ol><li>Navigate to the Solidity Compiler tab.</li><li>Ensure the compiler version matches the pragma statement (0.8.26).</li><li>Click Compile.</li><li>Upon successful compilation, two important files are generated:<br><em>ABI (Application Binary Interface): </em>Defines the contract’s structure and available functions, enabling interaction with external applications.<br><em>Bytecode: </em>The machine-readable code deployed on the Ethereum Virtual Machine (EVM).</li></ol><h3>Deploying and Running the Contract</h3><ol><li>Navigate to the Deploy &amp; Run Transactions tab.</li><li>I usually select Remix VM — Cancun as the environment (you can also connect to a real testnet like Goerli or Sepolia for a more realistic simulation).</li><li>Choose a test account (each has 100 Ether by default in the Remix VM environment).</li><li>Set the Gas Limit to Estimated Gas, ensuring the transaction runs smoothly without excessive gas fees.</li><li>Deploy the contract by clicking Deploy.</li><li>Upon successful deployment:<br>The transaction details appear in the terminal, including gas usage and execution cost.<br>The contract appears in the Deployed Contracts section, where it can be interacted with.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/956/1*_ijwJVQ1ovFRR2HOww0-rw.png" /><figcaption>Deployment Tab</figcaption></figure><h3>Interacting with the Smart Contract</h3><ol><li>Expand the deployed contract in Remix.</li><li>Click the hello() function.</li><li>Check the terminal output to see “Hello World!”.</li><li>Explore additional Remix features, such as debugging and interacting with contract state variables, for further learning.</li><li>Experiment with modifying the contract to add more functions or accept user input.</li></ol><h3>Ethereum Unit Conversions</h3><p>When working with Ether, it’s essential to understand unit conversions:</p><pre>1 Ether = 1,000 Finney = 1,000,000,000 Gwei = 1,000,000,000,000,000,000 Wei</pre><p>For a full list of conversions, visit <a href="https://etherscan.io/unitconverter">Etherscan’s Unit Converter</a>.</p><h3>Why Gas Fees Matter</h3><p>Gas fees in Ethereum transactions depend on computational complexity and network congestion. Optimizing smart contracts to minimize unnecessary computations can reduce deployment and execution costs significantly. Additionally, choosing Layer 2 solutions such as Arbitrum or Optimism can help mitigate high transaction costs.</p><h3>Conclusion</h3><p>This post covered the basics of setting up Remix, writing a simple Solidity contract, compiling it, and deploying it on a test environment. In future posts, I will explore Solidity functions, contract storage, and security vulnerabilities in smart contracts. Additionally, I plan to examine best practices for smart contract security, including reentrancy protection and proper access control mechanisms. Stay tuned for more insights on my journey into blockchain development!</p><p>I’m always eager to learn and grow in the field of cybersecurity. If you’d like to collaborate or discuss vulnerabilities, let’s connect:</p><ul><li><a href="https://www.linkedin.com/in/yash-nimbalkar/">LinkedIn</a></li><li><a href="https://x.com/Bochixx">X (formerly Twitter)</a></li></ul><p>Together, we can make the web a safer place, one vulnerability at a time. 🚀</p><p>Good Luck! Happy Learning!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=28cb76993e76" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Silent Breach: A Story of Leaked Token and PII]]></title>
            <link>https://medium.com/@bughunt.bochi/the-silent-breach-a-story-of-leaked-token-and-pii-4576658030e3?source=rss-cf2be32d79b1------2</link>
            <guid isPermaLink="false">https://medium.com/p/4576658030e3</guid>
            <category><![CDATA[security]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[bug-bounty-writeup]]></category>
            <category><![CDATA[information-security]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Yash Nimbalkar]]></dc:creator>
            <pubDate>Tue, 04 Feb 2025 16:00:48 GMT</pubDate>
            <atom:updated>2025-02-04T16:01:23.506Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*N_MNSXr7UPylorpr" /><figcaption>Credit: Dall-E</figcaption></figure><blockquote>whoami ¯\_(ツ)_/¯</blockquote><p>Hello, fellow bug hunters and cybersecurity geeks! I’m Yash Nimbalkar. Currently pursuing my Master’s degree in Cyber Security, I spend my time sometimes poking around platforms to see if they’ve left any digital doors open.</p><p>Today we will be discussing about how I was able to leak <strong>Personally Identifiable Information (PII)</strong> of users and <strong>password reset tokens</strong>, creating a significant security risk. Let’s dive into it!</p><p>It all started with a simple curiosity. As usual I was looking out for target sites to do some testing and I came across <strong>target.com</strong>, a well-known platform trusted by countless users. It was a SEO company which helped its clients to boost their ad revenue and also helped them to increase their audience. But after some searching, what I found this time was more alarming than I had expected.</p><h3>The Discovery</h3><p>As usual I began my testing on the site by trying to create an account. But after visiting <strong>console.target.com</strong>, I saw that there was no option to<em> Sign Up</em> or <em>Register</em> for an account. I tried to directly visit the following pages:<br>1. <strong>console.target.com/signup<br>2. console.target.com/register<br></strong>But this gave me the “<em>Page Not Found</em>” error :(</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/493/1*UvuODkctivu6pHc4W2SETQ.png" /></figure><p>So, after facing this issue, I shifted my focus on the other aspects of the site but it was mostly a static site so there was nothing much that I could do.</p><p>After a bit more searching, I landed upon the <strong>About Us </strong>section of the site. There were the names of the Team Members. Then I got an idea, what if I craft the email such as <strong>firstName.lastName@target.com </strong>then I might try something out of the login page.</p><p>So I went back to <strong>console.target.com</strong> and clicked on <em>Forgot Password</em>. In the password email I pasted the email which I had crafted. Captured the request in Burp, and to my surprise, it worked 🎉</p><p>Not only did it work, but the response contained the complete details of the employee, such as their <em>id, role_id, username, email, Phone number, address</em> and most importantly the <strong>reset password token.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qDCbzOQKVnOQmuP1NgjLlw.png" /><figcaption>PII and Password Reset token Exposed 🤯</figcaption></figure><p>That time I knew that this was serious. But now I faced another problem. I did not have any password reset link to use the token. So I turned up to waybackurls to see if there was any password reset link present. And turns out that there was a link already present.</p><p>I quickly grabbed up the link and pasted the reset token in it and voila! I was able to get into the account of any of the employee with this bug.</p><p>As my mind raced as I tested another email. The result was the same. And when I entered <strong>admin@target.com</strong>, the consequences became even graver. The admin’s personal details and reset token were also exposed.</p><p>This wasn’t just a vulnerability — it was a <strong>glaring security breach.</strong></p><h3>The Bigger Threat</h3><p>The real danger wasn’t just in the <strong>ease of access</strong>. It was in the <strong>scale of exploitation</strong>. Attackers wouldn’t have to brute-force anything. Instead, they could:</p><ul><li>Collect <strong>public employee emails</strong>.</li><li>Extract <strong>PII from the password reset response</strong>.</li><li>Gain <strong>unauthorized access to multiple accounts</strong>, including admin accounts.</li></ul><h3>Lessons Learned</h3><p>This incident highlights the importance of <strong>secure password reset mechanisms</strong> and proper data handling. Organizations should take proactive measures to prevent such vulnerabilities, including:</p><ul><li><strong>Avoiding the exposure of sensitive information</strong> in API responses. PII and reset tokens should never be included in plaintext.</li><li><strong>Implementing secure, one-time password reset links</strong> that expire quickly and are sent only via secure channels.</li><li><strong>Using multi-factor authentication (MFA)</strong> to add an additional security layer to password reset processes.</li><li><strong>Regularly auditing security workflows</strong> to identify and mitigate vulnerabilities before they can be exploited.</li></ul><p>Ensuring these security practices are in place helps <strong>protect user data, maintain platform integrity, and build trust</strong> with users. Security should always be a <strong>continuous process, not a one-time fix</strong>.</p><p>I’m always eager to learn and grow in the field of cybersecurity. If you’d like to collaborate or discuss vulnerabilities, let’s connect:</p><ul><li><a href="https://www.linkedin.com/in/yash-nimbalkar/">LinkedIn</a></li><li><a href="https://x.com/Bochixx">X (formerly Twitter)</a></li></ul><p>Together, we can make the web a safer place, one vulnerability at a time. 🚀</p><p>Good Luck! Happy Hunting!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4576658030e3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Web Cache Poisoning: Turning Speed into a Security Nightmare]]></title>
            <link>https://medium.com/@bughunt.bochi/web-cache-poisoning-turning-speed-into-a-security-nightmare-b2cde92e1036?source=rss-cf2be32d79b1------2</link>
            <guid isPermaLink="false">https://medium.com/p/b2cde92e1036</guid>
            <category><![CDATA[cyber-security-awareness]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[vulnerability]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[web-cache-poisoning]]></category>
            <dc:creator><![CDATA[Yash Nimbalkar]]></dc:creator>
            <pubDate>Wed, 15 Jan 2025 15:51:11 GMT</pubDate>
            <atom:updated>2025-02-04T16:02:22.567Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*87jyDzyC4uk2wOaO" /><figcaption>Credits: Dall-E</figcaption></figure><blockquote>whoami<em> ¯\_(ツ)_/¯</em></blockquote><p>Hello, fellow bug hunters and cybersecurity geeks! I’m Yash Nimbalkar. Currently pursuing my Master’s degree in Cyber Security, I spend my time sometimes poking around platforms to see if they’ve left any digital doors open.</p><p>Today we will be discussing about <strong>Web Cache Posioning</strong>. Let’s dive into it!</p><h3>What is Web Cache Poisoning?</h3><p>Web cache poisoning occurs when an attacker manipulates a server’s caching mechanism to store and serve malicious content. Since the cache serves this content to all users accessing the site, the impact can range from defacement and phishing to malware propagation. It’s a clever yet dangerous technique that leverages an optimization feature against itself.</p><p>You can imagine web cache poisoning is like sneaking a fake ingredient into the soup that gets served to everyone. It turns a helpful optimization into a dangerous delivery mechanism for malicious content. What’s more, once the soup is poisoned, everyone’s having a <em>bad day.</em></p><h3>Vulnerability Summary</h3><p>The caching mechanism on target.com was susceptible to manipulation, allowing an attacker to inject malicious content into the cache. Once poisoned, the cache served this altered response to unsuspecting users, creating opportunities for:</p><ul><li><strong>Phishing</strong>: Redirecting users to malicious sites.</li><li><strong>XSS Attacks</strong>: Executing scripts in the victim’s browser.</li><li><strong>Defacement</strong>: Displaying altered or offensive content.</li></ul><h3>Steps to Exploit</h3><p>Here’s how I was able to exploit the vulnerability:</p><p><strong>1.Prepare the Setup</strong></p><ul><li>Navigate to target.com.</li><li>Clear all cookies and refresh the page while capturing the HTTP request using Burp Suite.</li><li>If you see <em>Cache: HIT </em>or <em>Cache: MISS (or anything similar), </em>in the response, then you can try out the next steps.</li><li>Also, do check if there is a Max-Age: xx in the response as this parameter decides how much time the cache will be stored in the server.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y52NxEWJA9AZkwOdZf6I6w.png" /><figcaption>Potential Web Cache Poisoning</figcaption></figure><p><strong>2. Observe Cache Behavior</strong></p><ul><li>Send the captured request to Burp’s Repeater tool.</li><li>Notice that the cache refreshes approximately every few seconds/minutes, depending on the configuration.</li><li>While testing for Web Cache Poisoning, do remember to use cache buster (targeturl/?cb=123), so that you won’t mess with the actual site.</li></ul><p><strong>3. Inject Malicious Content</strong></p><ul><li>In Burp Collaborator, copy the payload URL.</li><li>Add the header X-Forwarded-Host: [Collaborator URL] to the HTTP request in Repeater.</li><li>Send the modified request to the server.</li></ul><p><strong>4. Cache Poisoning in Action</strong></p><ul><li>Wait for the cache to refresh.</li><li>Clear cookies in the browser and reload the page.</li><li>The browser now displays the poisoned cache response containing the collaborator URL or malicious payload.</li></ul><p>In my case, whatever I injected in the header X-Forwarded-Host: was being reflected in the site response.</p><p>Similarly, you can see if whatever you inject in the headers does get reflected in the response or not. By analyzing the response, you can then decide what you want to do like: <em>phishing, XSS or defacement of website</em>.</p><h3>Severity: High</h3><p>Given the potential for widespread impact and the ease with which the cache could be poisoned, this vulnerability was rated <strong>High</strong> severity.</p><h3>Lessons Learned: Cache Wisely</h3><ol><li><strong>Don’t Let Headers Run Wild</strong><br>Make sure headers like X-Forwarded-Host are validated, or you might just be giving attackers the keys to your cache pantry.</li><li><strong>Limit Cache Lifespan</strong><br>Shorter cache durations mean less time for malicious content to brew. You wouldn’t leave milk on the counter for 13 minutes, so why let your cache sit that long?</li><li><strong>Segregate User-Specific Content</strong><br>Mixing user-specific responses in a cache is like serving peanut butter to someone with allergies — not ideal.</li></ol><p>Web cache poisoning is one of the most fascinating bugs I encounter. It highlights how critical it is to thoroughly test optimization features like caching for potential abuse.</p><p>I’m always eager to learn and grow in the field of cybersecurity. If you’d like to collaborate or discuss vulnerabilities, let’s connect:</p><ul><li><a href="https://www.linkedin.com/in/yash-nimbalkar/">LinkedIn</a></li><li><a href="https://x.com/Bochixx">X (formerly Twitter)</a></li></ul><p>Together, we can make the web a safer place, one vulnerability at a time. 🚀</p><p>Good Luck! Happy Hunting!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b2cde92e1036" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unauthorized Access and Data Leakage Vulnerability in a Crypto Platform]]></title>
            <link>https://medium.com/@bughunt.bochi/unauthorized-access-and-data-leakage-vulnerability-in-a-crypto-platform-ff4dfc8613e1?source=rss-cf2be32d79b1------2</link>
            <guid isPermaLink="false">https://medium.com/p/ff4dfc8613e1</guid>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[bug-bounty-writeup]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[information-security]]></category>
            <dc:creator><![CDATA[Yash Nimbalkar]]></dc:creator>
            <pubDate>Sun, 29 Dec 2024 12:02:09 GMT</pubDate>
            <atom:updated>2025-02-04T16:02:00.776Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7p5uwoTJMCfCsWfv" /><figcaption>Credit: Dall-E</figcaption></figure><blockquote>whoami ¯\_(ツ)_/¯</blockquote><p>Hello, fellow bug hunters and cybersecurity geeks! I’m Yash Nimbalkar. Currently pursuing my Master’s degree in Cyber Security, I spend my time sometimes poking around platforms to see if they’ve left any digital doors open.</p><p>In this post, I’ll walk you through how I found a vulnerability in a crypto platform, referred to here as target.com for anonymity. This bug didn’t just open doors—it practically handed over the keys to other users’ data. Let’s dive in!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*QEiz2wPnWtISfMZr.gif" /></figure><h3>The Issue: UI/UX Flaw and Public Data Retrieval</h3><p>During my exploration, I discovered what initially appeared to be a critical vulnerability in the reporting functionality of target.com. Here’s a summary of what I found and the target’s response:</p><ol><li><strong>UI/UX Privilege Escalation: </strong>By modifying the is_superuser flag in the server’s response, I could unlock additional views in the reporting section.</li><li><strong>Publicly Available Data Access: </strong>By altering the userId parameter in API requests, I was able to retrieve balance reports for other users.</li></ol><h3>Steps to Reproduce: Hacking 101</h3><p>Here’s how the vulnerability unfolded:</p><p><strong>1.Logging In</strong><br>I logged into the platform with a valid user account. Nothing suspicious — just a regular day in the life of a user (or so it seemed).</p><p><strong>2. Intercepting Requests</strong><br>Using Burp Suite, I started intercepting HTTP requests to see how the platform was handling user data. Turns out, not very carefully.</p><p><strong>3. Playing with Permissions</strong></p><ul><li>One request caught my attention: GET /api/v2/users/userid.</li><li>It had a parameter called is_superuser. Changing it to true in the server’s response magically gave me superpowers. Who knew becoming a “superuser” was just one flag away?</li></ul><p><strong>4. Accessing Other Users’ Data</strong></p><ul><li>Another request (GET /api/v2/reports/balance?filters=user_id%3AuserId) allowed me to fetch balance reports.</li><li>By replacing my userId with someone else’s, I could access their reports as easily as opening my own.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l0qviXZQZNz9hGTTrbQZ6A.png" /><figcaption>Balance for my User ID 2080 😖</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N6QnAkiunRadn0MoQrtHeg.png" /><figcaption>Balance for my User ID 1… Probably the Admin 🫡</figcaption></figure><h3>Impact and Lessons Learned</h3><p>While this issue didn’t lead to sensitive data exposure or unauthorized privilege escalation, it highlighted the importance of clear communication between researchers and security teams. Here are the key lessons I took away:</p><ol><li><strong>Not Every Bug Is a Breach</strong><br>Sometimes, issues are more about perception than actual risk. Understanding the platform’s context is key to accurate reporting.</li><li><strong>Clarify and Validate Findings</strong><br>Always discuss findings with the target to validate assumptions and refine the report.</li><li><strong>Every Report Adds Value</strong><br>Even when no critical vulnerabilities are uncovered, reports can help improve UI/UX and platform transparency.</li><li><strong>Stay Ethical and Professional</strong><br>Reporting vulnerabilities responsibly helps protect users and strengthens platforms.</li></ol><p>I’ve just started my bug hunting journey and I’m always eager to learn and grow through collaboration. If you’re a fellow bug hunter, security enthusiast, or just someone passionate about tech, let’s connect!<br>You can catch up with me on: <a href="https://www.linkedin.com/in/yash-nimbalkar/">LinkedIn</a> and <a href="https://x.com/Bochixx">X</a>.</p><p>Good Luck! Happy Hunting!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ff4dfc8613e1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I Found My First Bug Using Shodan]]></title>
            <link>https://medium.com/@bughunt.bochi/how-i-found-my-first-bug-using-shodan-3d8826a7655b?source=rss-cf2be32d79b1------2</link>
            <guid isPermaLink="false">https://medium.com/p/3d8826a7655b</guid>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[bug-bounty-writeup]]></category>
            <category><![CDATA[pentesting]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <dc:creator><![CDATA[Yash Nimbalkar]]></dc:creator>
            <pubDate>Sun, 22 Dec 2024 17:48:11 GMT</pubDate>
            <atom:updated>2024-12-22T21:32:25.936Z</atom:updated>
            <content:encoded><![CDATA[<p>When I embarked on my pentesting journey, I never imagined my first bug would be hiding in plain sight — on an open port, no less. This is the story of how I hunted down my first vulnerability, reported it, and ultimately bagged my first bounty. Spoiler: It was a <em>staging area</em>, but it turned into a <em>real stage</em> for my pentesting debut.<br>Let’s get started, shall we…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*K-mGo66_a6afood6.gif" /></figure><h3>The Discovery: Hunting with Shodan</h3><p>So I was testing this program let’s say target.com on YesWeHack and I started with the basic recon and stuff. <br>As usual I opened up <a href="https://shodan.io/">Shodan</a>, the search engine for internet-connected devices. Think of it as Google, but with a knack for finding services that shouldn’t be waving a big “open for business” sign to the world.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/690/0*tadD-bjm9QDhgg3Z.png" /></figure><p>While tinkering with search queries, I stumbled upon an open port for target.com. Jackpot? Not quite. But curiosity killed the cat—and almost got into the emails!</p><p>The endpoint led me to <strong>MailHog</strong>, an email testing tool, accessible at <a href="http://1.2.3.4:8025/">http://1.2.3.4:8025/</a> (not the actual IP though). To my surprise, there was no authentication barrier. It was like finding a mailbox labeled “Open Me!”</p><h3>What is MailHog?</h3><p><a href="https://github.com/mailhog/MailHog">MailHog</a> is a great tool for developers testing email workflows. It acts like a playground for SMTP and displays emails sent during development. But leaving it publicly accessible? That’s like setting up a lemonade stand in the middle of a crime scene — it’s bound to attract the wrong crowd.</p><h3>Investigating the Vulnerability</h3><p>As I clicked around the MailHog interface, I noticed a glaring issue:</p><ul><li>I could view all the emails in the staging environment.</li><li>I could delete them too — oops, sorry, dev team!</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*odla2b0kMRKnLEnTQElh3w.png" /><figcaption>Deleted all the emails... Oops!</figcaption></figure><p>These emails might not have been from production, but even staging environments can hold the keys to the kingdom. Ever heard the saying, “Loose staging environments sink ships?” No? Well, now you have.</p><p>With these findings in hand, I crafted a detailed vulnerability report, hoping to get some sweet validation — and maybe even sweeter cash.</p><h3>The Response: It’s Out of Scope?</h3><p>Initially, the response from the target’s security team was a little… deflating.</p><blockquote><em>“This open access is a staging point with no production data. It’s out of scope for the bug bounty program.”</em></blockquote><p>It was like hearing, “Thanks, but no thanks.” While they appreciated my effort and praised the report, they didn’t offer a reward but they did award me points for my well written report.</p><p>But I wasn’t ready to throw in the towel — or the port scanner. I knew that even staging environments could be a goldmine for attackers. After some polite back-and-forth (with a dash of persistence), they agreed to secure the endpoint and awarded me £££ <strong>bounty</strong>.</p><p>It turns out, when you’re on the right track, persistence can turn “out of scope” into “in your wallet.”</p><h3>Lessons Learned</h3><ol><li><strong>Persistence Pays Off</strong><br>Just because a bug is labeled “out of scope” doesn’t mean it’s out of value. Sometimes you just need to spell out the risk more clearly.</li><li><strong>Staging Isn’t a Safe Stage</strong><br>Treat staging like production — because attackers don’t care what you call it. If it’s open, it’s fair game.</li><li><strong>Quality Reports Win the Day</strong><br>A well-written report is like a great punchline — it leaves an impression. Always include details, evidence, and clear risk explanations.</li></ol><h3>My First Bounty</h3><p>That £££ bounty wasn’t just about the money. It validated my skills and reinforced that I was on the right track. Plus, it’s not every day you can say you got paid for pointing out someone else’s email mess.</p><p>For anyone new to pentesting, tools like Shodan can be your best friend — or at least your <em>partner in crime-fighting</em>. Who knows? Your first bug might just be one open port away.</p><p>Good Luck! Happy Hunting!</p><p>Feel free to connect with me on <a href="https://www.linkedin.com/in/yash-nimbalkar/">LinkedIn</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3d8826a7655b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>