<?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 Prasanth Bodepu on Medium]]></title>
        <description><![CDATA[Stories by Prasanth Bodepu on Medium]]></description>
        <link>https://medium.com/@prasanth.bodepu?source=rss-3ba655bf9245------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*sepNThSSaAqVwcGoL7G_GA.jpeg</url>
            <title>Stories by Prasanth Bodepu on Medium</title>
            <link>https://medium.com/@prasanth.bodepu?source=rss-3ba655bf9245------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 01:06:12 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@prasanth.bodepu/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[SANS Offensive CTF - Taskist:: 01–04]]></title>
            <link>https://infosecwriteups.com/sans-offensive-ctf-taskist-01-04-56452aa43905?source=rss-3ba655bf9245------2</link>
            <guid isPermaLink="false">https://medium.com/p/56452aa43905</guid>
            <category><![CDATA[offensive]]></category>
            <category><![CDATA[ssrf]]></category>
            <category><![CDATA[idor]]></category>
            <category><![CDATA[şans]]></category>
            <category><![CDATA[ctf]]></category>
            <dc:creator><![CDATA[Prasanth Bodepu]]></dc:creator>
            <pubDate>Wed, 06 Mar 2024 06:26:28 GMT</pubDate>
            <atom:updated>2024-03-06T06:26:28.414Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u0lVYxZ8VKVv0gWq6PqYRw.jpeg" /></figure><blockquote><strong>Summary:</strong></blockquote><p>This Write Up outlines several vulnerabilities discovered within the application, including <strong>IDOR</strong> (Insecure Direct Object Reference), <strong>privilege escalation</strong>, <strong>SSRF</strong> (Server-Side Request Forgery), and <strong>unauthorized file access issues</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-HK3k8yHpiza_8BQPuXKtA.png" /></figure><blockquote><strong>Taskist::01- IDOR Vulnerability in “/api/tasks/&lt;ID&gt;”</strong></blockquote><p><strong>Description:</strong> The application has an Insecure Direct Object Reference vulnerability in the <strong><em>/api/tasks/64</em></strong> endpoint, allowing unauthorized access to admin’s tasks information.</p><p><strong>Impact:</strong> Admin notes containing confidential information, including the flag, are exposed to unauthorized users.</p><p><strong>Recommendation:</strong> Implement proper access controls and authorization mechanisms to restrict access to sensitive data based on user roles and permissions.</p><blockquote><strong>POC:</strong></blockquote><p>1. Now after logging into the application you can see the source code (ctrl + u), observe the endpoints/paths.</p><p>2. After observing you can find the only endpoint which is potential to IDOR. Sending the request to Intruder along with the first 100 numbers as payloads and start the attack.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/876/1*jrIfyrQlXlaSsTGdGY1GDw.png" /><figcaption>Intruder</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_4doTXzGWPdBovIH" /><figcaption>flag-1</figcaption></figure><blockquote><strong>Taskist::02: Privilege Escalation via Update Password Feature</strong></blockquote><p><strong>Description:</strong> The application allows changing the <strong><em>user_id</em></strong> parameter to an admin user’s user_id during the update password feature, leading to unauthorized privilege escalation.</p><p><strong>Impact:</strong> Unauthorized users can change the admin’s password, compromising the admin account’s security.</p><p><strong>Recommendation:</strong> Implement strict validation checks to ensure that only authorized users can update passwords, and enforce proper authentication mechanisms to prevent privilege escalation attacks.</p><blockquote><strong>POC:</strong></blockquote><ol><li>Navigate to Password Reset Functionality, Intercept the request and observe that <strong><em>“user_id”</em></strong> is being passed. Change the <strong><em>“user_id” </em></strong>value to <strong><em>admin’s</em></strong> <strong><em>user_id</em></strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/371/0*d8hgTgsvQ1-tmpz8" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1023/0*7fjbV-pmWBzCGUKB" /><figcaption>admin-password</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/772/0*OYanMiEOQb8HPD5V" /><figcaption>Flag-2</figcaption></figure><blockquote><strong>Taskist::03: SSRF Vulnerability leads to Unauthorized File Read Access</strong></blockquote><p><strong>Description:</strong> By exploiting a vulnerability in the application’s handling of the <strong><em>proc/self/environ</em></strong> path. The main code ususally lies within <strong><em>app.js.</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fx9d0J8igD6yu37URd43qg.png" /></figure><p>You can see an attacker can gain unauthorized access to sensitive files, such as<em> </em><strong><em>/app/index.js</em></strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Mf-AqfKgSVbRkG0FYyQQPg.png" /><figcaption>flag-3</figcaption></figure><p><strong>Impact:</strong> Attackers can read sensitive application files containing configuration details or other critical information.</p><p><strong>Recommendation:</strong> Implement proper input validation and sanitization to prevent directory traversal attacks, and restrict access to sensitive files to authorized users only.</p><blockquote><strong>POC:</strong></blockquote><p>1. After logging in as an admin, we can observe that there are <strong>`site configuration`</strong> settings along with import and export features.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*DwktHff1WqGP0Yiy" /></figure><p>2. Now by analyzing the source code of <em>`site_config.js`</em>, we can observe that the import feature is validating to variables not to be as ‘undefined’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*hwZdVTzW--sRAAhf" /></figure><p>3. Now after exploring the export functionality we are able to download <strong><em>`site-config.json`</em></strong>. When we look at the variables of the json file, the validating variables of import feature and export json file are the same for the first 2 variables. Here we can conclude that the vulnerability should be exploited over here.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*aGyQT5SGqU8i06gK" /></figure><p>4. By Uploading the dummy file and intercepting the request, replace the url with burp collaborator. We got a hit!, SSRF Confirmed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*pxaRxCqJieOdOJ-P" /></figure><p>5. We should look for sensitive information files which disclose the endpoints of the server function. By analyzing the tasks list in the admin dashboard we can say that 2 out 3 are pending. A Hint to the <strong><em>“/app”</em></strong> directory, which is not accomplished by admin.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*cEFNOTiEEeyWb6zH" /></figure><p>6. Brute forcing with common LFI Payloads!??no, we should look for sensitive endpoints, some of sensitive endpoints are <strong><em>“/proc/*/*”</em></strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*g_RibWbv7Jp1fE5B" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*dJxcOvwnLdn1NfIX" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7ndzJ7inN3ewVyzn" /><figcaption>flag — 3</figcaption></figure><blockquote><strong>Taskist::04: SSRF Vulnerability leads to chaining access to the root directory.</strong></blockquote><p><strong>Description:</strong> The application’s file upload functionality is vulnerable to Server-Side Request Forgery (SSRF), allowing attackers to initiate requests to arbitrary URLs, including local files such as <strong>‘<em>file:///</em>’</strong>.</p><p><strong>Impact:</strong> Attackers can exploit this vulnerability to read sensitive files on the server, such as <strong><em>/root/flag.txt</em></strong>, leading to unauthorized disclosure of sensitive information.</p><p><strong>Recommendation:</strong> Implement strict input validation and filtering mechanisms to prevent SSRF attacks, and restrict file upload functionality to trusted sources only.</p><blockquote><em>Note: The Taskist-4 should have been deployed at the user level to gain chain further to get flag{} at root level. Maybe it’s not a bug but a Feature Who Knows what kind of rabbit hole it might be misleading us with other things.</em></blockquote><blockquote><strong>POC: (unintentional solution, by directly reading the root flag)</strong></blockquote><p>1. Send a Request to <strong><em>“file:///etc/*”</em></strong> to know whether we are able to access the root files, after conclusion we are able to access the root directory files. Send request for <strong><em>“file:///root/flag.txt”</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/660/0*zubySbPoFKR1RgmI" /><figcaption>flag-4</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/818/1*Kc_rAK7OUtsnQhMhIG79lw.png" /><figcaption>Unintentional soltuion — Admin</figcaption></figure><blockquote><strong>Authors:</strong> <a href="https://twitter.com/_0xPb">0xPb</a>, <a href="https://www.linkedin.com/in/danielthotapalli/">daniel1895</a></blockquote><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Ftenor.com%2Fembed%2F3982040863797256894&amp;display_name=Tenor&amp;url=https%3A%2F%2Ftenor.com%2Fview%2Fchipi-chipi-chipi-chipi-chipi-chapa-chapa-cat-cat-chipi-gif-3982040863797256894&amp;image=https%3A%2F%2Fmedia.tenor.com%2FN0MNEV-5or4AAAAN%2Fchipi-chipi-chipi.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=tenor" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/a7cd412281ccfbe06a899f9e202fa221/href">https://medium.com/media/a7cd412281ccfbe06a899f9e202fa221/href</a></iframe><blockquote>Thanks for reading!!!</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=56452aa43905" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/sans-offensive-ctf-taskist-01-04-56452aa43905">SANS Offensive CTF - Taskist:: 01–04</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[Leek NFT challenge#0223 — Intigriti]]></title>
            <link>https://infosecwriteups.com/leek-nft-challenge-0223-intigriti-67fc49be4bb6?source=rss-3ba655bf9245------2</link>
            <guid isPermaLink="false">https://medium.com/p/67fc49be4bb6</guid>
            <category><![CDATA[exiftool]]></category>
            <category><![CDATA[stored-xss]]></category>
            <category><![CDATA[bug-bounty-writeup]]></category>
            <category><![CDATA[ctf-writeup]]></category>
            <category><![CDATA[metadata]]></category>
            <dc:creator><![CDATA[Prasanth Bodepu]]></dc:creator>
            <pubDate>Fri, 10 Mar 2023 03:31:31 GMT</pubDate>
            <atom:updated>2023-11-05T16:16:48.013Z</atom:updated>
            <content:encoded><![CDATA[<h3>Leek NFT challenge#0223 — Intigriti</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*v2mhOVlizpRg9V4e" /></figure><p><strong>Challenge Link:</strong><a href="https://challenge-0223.intigriti.io/"> https://challenge-0223.intigriti.io/</a></p><p><strong>Challenge By:</strong> <a href="https://twitter.com/x64pr0fessor">https://twitter.com/x64pr0fessor</a></p><p><strong>Goal:</strong> Now we understand that we need to find a method to display an alert box in order to confirm that this is indeed an instance of XSS.</p><h3>Reconnaissance</h3><p>We were given an application that allows us to create “Leek NFT” by uploading your own picture as background. After uploading the image you have to submit. You’ll see a message “<strong><em>file uploaded successfully to 355fed1f-a3ed-44cd-b708–93e1c6f2559a”. </em></strong><em>Where “355fed1f-a3ed-44cd-b708–93e1c6f2559a” is some kind of UUID or other identifier of session and uploaded file.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Ui72KpnraowigP91" /></figure><p>Now click on save. You’ll be redirected to the main NFT page</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*K5NmIR5keQJcPrUa" /></figure><p>I don’t see any changes on the UI, which led me to access the page source to search for helpful information or JavaScript</p><pre>view-source:https://challenge-0223.intigriti.io/view?viewId=355fed1f-a3ed-44cd-b708-93e1c6f2559a</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Ut030iWIvwXfQoKq" /></figure><p>Upon reviewing the JavaScript code, I have realized that the application verifies specific metadata of the uploaded image, such as “UserComment,” “DateTimeOriginal,” and “OwnerName.” This information is retrieved directly from the image’s Exif data.</p><p>The retrieved information is added to the JSON string.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*F0r0DX7iI6ELoIew" /></figure><p>The application concatenates strings without performing any sanitization, providing attackers with a potential entry point to inject any form of data into the “<strong><em>imjobj</em></strong>” variable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*KJUrlaJv4Y-T0k3n" /></figure><p>The <strong><em>imgName</em></strong> variable in the code cannot be modified because it is hardcoded, intentionally.</p><p><strong>Exploitation:</strong></p><p>With the help of the potential entry point in <strong>“<em>imgobj</em>” </strong>we could add another key named <strong>“<em>imgName</em>” </strong>at the end of the JSON String.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*r0FNPniX_fl7EnVv" /></figure><p>Consider the below case:</p><pre>{<br>  &quot;key1&quot;:&quot;Naruto&quot;,<br>  &quot;key1&quot;:&quot;Gojo&quot;<br>}</pre><p>The final value of <strong><em>key1</em></strong> would be <strong><em>Gojo. </em></strong>Because, as mentioned above JSON.parse() would always take the value of the last key for multiple keys with the same name.</p><p>With the above information we could craft a payload in the <strong><em>imjobj</em></strong> JSON string</p><pre>{<br>  &quot;imgName&quot;:&quot;NFT.jpg&quot;,<br>  &quot;imgColorType&quot;:&quot;02/14/2023, 20:09:16&quot;,<br>  &quot;imgComment&quot;:&quot;0xPrashanth&quot;,<br>  &quot;imgName&quot;:&quot;&lt;img src=x onerror=alert(document.domain)&gt;&quot;<br>}</pre><p>In order to achieve the above format inject the payload in the <strong><em>imgComment</em></strong> field using <strong>exiftool</strong>:</p><pre>exiftool -UserComment=&#39;pr0shx&quot;, &quot;imgName&quot;: &quot;&lt;img src=x onerror=alert(document.domain)&gt;&#39; image.png</pre><p>So, now upload the image.png to<a href="https://challenge-0223.intigriti.io/create"> <em>https://challenge-0223.intigriti.io/create</em></a><em> </em>and submit it<em>. </em>Click on save, you can see an <strong><em>alert</em></strong> box is popped in the challenge domain as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zz0jlElkVgfUp_Nv" /></figure><p>This attack works because the application does not sanitize user input and assume hardcoded values are immutable. Creating <strong>imgobj</strong> should be done as an object in the first place instead of creating a JSON string and parsing it to a JavaScript object.</p><blockquote>Prepared by Prashanth in collaboration with Pawel.</blockquote><p><strong>Connect with us at -</strong></p><p>Twitter — <a href="https://twitter.com/_0xPb">Prashanth</a>, <a href="https://twitter.com/0xSovietBeast">Pawel</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=67fc49be4bb6" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/leek-nft-challenge-0223-intigriti-67fc49be4bb6">Leek NFT challenge#0223 — Intigriti</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[Can you spot the vulnerability? #16022023 — Intigriti]]></title>
            <link>https://infosecwriteups.com/can-you-spot-the-vulnerability-16022023-intigriti-a46068e557cc?source=rss-3ba655bf9245------2</link>
            <guid isPermaLink="false">https://medium.com/p/a46068e557cc</guid>
            <category><![CDATA[information-security]]></category>
            <category><![CDATA[xss-attack]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[xss-vulnerability]]></category>
            <category><![CDATA[intigriti]]></category>
            <dc:creator><![CDATA[Prasanth Bodepu]]></dc:creator>
            <pubDate>Wed, 08 Mar 2023 19:31:32 GMT</pubDate>
            <atom:updated>2023-11-05T15:49:09.691Z</atom:updated>
            <content:encoded><![CDATA[<h3>Can you spot the vulnerability? #16022023 — Intigriti</h3><p><strong>Given Code Snippet:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VEmGASE-5FAv3lFqcXDgXw.png" /></figure><h4><strong>Code review:</strong></h4><p><strong>easy-eval.js</strong></p><pre>if (window.debug) {<br>    eval(window.debug.toString()); //using eval at DOM element with id &quot;debug&quot;<br>  //only a and area tag can be used in attack as they are capable of using href attribute. toString get only that attribute<br>}</pre><p><strong>easy-xss.js</strong></p><pre>const pos = document.URL.indexOf(&#39;name=&#39;) + 5; //user input<br>const name = document.URL.substring(pos, document.URL.length)// just paring GET parameteres<br>const container = document.getElementById(&#39;container&#39;);<br>container.innerHTML = decodeURI(name); // no proper sanitization</pre><p><strong>index.html</strong></p><pre>//can&#39;t use inline script tag because it has to be src &quot;self&quot;<br>&lt;meta http-equiv=&quot;Content-Security-Policy&quot; content=&quot;default-src &#39;self&#39;; script-src &#39;self&#39; &#39;unsafe-eval&#39;&quot;&gt; <br>&lt;div id=&quot;container&quot;&gt;&lt;/div&gt;<br>&lt;script src=&quot;easy-eval.js&quot;&gt;&lt;/script&gt;<br>&lt;script src=&quot;easy-xss.js&quot;&gt;&lt;/script&gt;</pre><p><strong>The Vulnerability</strong></p><p>User input is passed into the ‘<strong>name</strong>’ parameter straight to the ‘<strong>innerHTML</strong>’ so it would be rendered by browser for example inserting ‘<strong>&lt;h1&gt;asdf&lt;/h1&gt;</strong>’ makes ‘<strong>asdf</strong>’ bold in browser, so ‘<strong>HTML</strong>’ tag is parsed correctly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/0*KliBbWbiWngU0-lB" /></figure><p><strong>Exploitation</strong></p><p>Here, The application’s <strong>CSP</strong> —<strong> Content Security Policy</strong> is not enough to stop executing arbitrary JavaScript code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q0hv430ejEtQxk0Ziidw7g.png" /></figure><p>Using <strong>iframe</strong> with <strong>srcdoc</strong> attribute allows to fulfill <strong>default-src: self</strong> condition of CSP. This is because iframe with <strong>srcdoc</strong> is assumed <strong>src= self</strong>. This in addition to no proper sanitization allows to injection of JavaScript code code in the victim browser.</p><p><strong>Payload</strong></p><pre><br>http://127.0.0.1:8000/?name=&lt;iframe srcdoc=&quot;&lt;a id=debug href=pb:alert(document.domain)&gt;&lt;script src=easy-eval.js&gt;&lt;/script&gt;&quot;&gt;</pre><p>The <strong>srcdoc</strong> attribute injects a tag with <strong>id=debug</strong> which allows to pass if statement in <strong>easy-eval.js</strong> then <strong>href</strong> attribute is set to <strong>pb:alert(document.domain) </strong>the first part <strong>pb</strong> should be nonexisting protocol. Any protocol that contains <strong>//</strong> would not work because in javascript <strong>//</strong> is a <strong>comment</strong>. So <strong>http://</strong> or f<strong>tp://</strong> would result in commenting on the payload and never executing it properly.</p><p>After that <strong>easy-eval.j</strong>s is called again to reinitialize the script and execute code in it.</p><p><strong>XSS</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NPkH16P9g6o7C7rvYpXpQQ.png" /></figure><p><a href="https://twitter.com/0xSovietBeast">Paweł Wąsik</a> and I worked together to understand and identify the JS code and the vulnerability respectively. This challenge seems to be quite interesting and we were able to gain new knowledge from it.</p><p>Thanks <a href="https://twitter.com/h43z">Richard</a> for providing an excellent explanation that greatly contributed to our understanding of the subject.</p><p>Refer to this thread to gain a better understanding.</p><blockquote><a href="https://twitter.com/h43z/status/1626237041787940867?s=20">https://twitter.com/h43z/status/1626237041787940867?s=20</a></blockquote><p><strong>Connect with us at</strong> <strong>-</strong></p><p>Twitter — <a href="https://twitter.com/_0xPb">Prashanth</a>, <a href="https://twitter.com/0xSovietBeast">Pawel</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a46068e557cc" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/can-you-spot-the-vulnerability-16022023-intigriti-a46068e557cc">Can you spot the vulnerability? #16022023 — Intigriti</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[eLFI already solved it, better get going #BUGCROWD Challenge Walkthrough]]></title>
            <link>https://infosecwriteups.com/elfi-already-solved-it-better-get-going-bugcrowd-challenge-walkthrough-b83f6921056b?source=rss-3ba655bf9245------2</link>
            <guid isPermaLink="false">https://medium.com/p/b83f6921056b</guid>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[bugcrowd]]></category>
            <dc:creator><![CDATA[Prasanth Bodepu]]></dc:creator>
            <pubDate>Tue, 17 Jan 2023 09:38:08 GMT</pubDate>
            <atom:updated>2023-01-17T09:38:08.668Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*OhB8Zp9uhjXWWEaG" /></figure><p>In this Write-Up, I am going to walk you through the <a href="https://twitter.com/Bugcrowd/status/1606016814831570989?s=20&amp;t=aam_TPp8kFfqYfJ67bR8KQ">bugcrowd’s open challenge</a> to hackers.</p><ul><li>Note: In case you’re reading this Write-Up without trying out the <a href="https://bugcrowd-advent-challenge.herokuapp.com/login.php">challenge</a>. I request you to first give it a try and check this blog if you’re stuck.</li></ul><ol><li>Hint given<strong>: “i am eLFI”</strong></li><li>So, I went to this link <a href="https://bugcrowd-advent-challenge.herokuapp.com/login.php">https://bugcrowd-advent-challenge.herokuapp.com/login.php</a></li></ol><p><strong>3.</strong> Tried <strong>user1</strong> and <strong>Randompassword123</strong> as credentials that was present on the login page itself and it gave me an internal server error as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X7RI3Gd3nMVPhHGeERkWSQ.png" /></figure><p><strong>4. </strong>I tried to play around with the login.php but no luck.</p><p><strong>5.</strong> I jumped right away to the view page source of the login.php application, went through the source code and few lines caught my attention which I highlighted below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VaKBQncUk8AVSV2cPYDwRg.png" /></figure><p><strong>6.</strong> Then I remembered the <strong>Hint</strong> and tried to sync that with the above lines of code.</p><p><strong>7.</strong> That’s how I found a vulnerable endpoint which is <strong>/style.php?css_file=custom.css</strong></p><p><strong>8.</strong> Here, when I tried to inject a random LFI payload, it showed <strong>Hacker detected</strong>, which confirmed that style.php is the vulnerable parameter.</p><p><a href="https://bugcrowd-advent-challenge.herokuapp.com/login.php">https://bugcrowd-advent-challenge.herokuapp.com/</a>style.php?css_file=//..//..//..//etc/passwd</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*05sbO-D-KIW1fRoGSMSuFg.png" /></figure><p><strong>9.</strong> Here I guessed it is filtering out <strong>etc/passwd</strong> so I tried URL, BASE64 encoding, and double encoding, but no luck.</p><p><strong>10.</strong> Then, I played around with the application for a while. Finally, while fuzzing the application, I observed there’s another file as index.php</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*auF6KSYzFoF5xnc5FoBJfw.png" /></figure><p><strong>11.</strong> But when I opened it, it redirected me to the login.php. But when you open the network tab you can see the index.php and the status code as 302.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G3THjATyx7BnY0cNODccTQ.png" /></figure><p><strong>12.</strong> I felt a bit suspicious about this<strong> index.php</strong> and I wanted to see what is there in it. So, I googled about it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*78aQVW839y5s6yl7OscdDA.png" /></figure><p><strong>13.</strong> I came across this piece of code php://filter/convert.base64-encode/resource=<strong>&lt;filename&gt;</strong></p><p>which helped me in bypassing the restriction and allowed me to view the source code of <strong>index.php</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*92uErSvzxkxdQzrBB1FaLA.png" /></figure><p><strong>14.</strong> Finally, <strong>index.php</strong> gave me some encoded string like this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*Vze78YM-FcbfaSUpNPWq-A.png" /><figcaption>index.php</figcaption></figure><p><strong>15.</strong> I decoded it using the below command. You can also use <a href="https://gchq.github.io/CyberChef/"><strong>cyberchef</strong></a><strong> </strong>(You can also use burpsuite’s decoder)</p><p>echo “PD9waHAKCnNlc3Npb25fc3RhcnQoKTsKc2Vzc2lvbl9yZWdlbmVyYXRlX2lkKHRydWUpOwoKaWYgKGlzc2V0KCRfU0VTU0lPTlsidXNlciJdKSl7CiAgICBoZWFkZXIoIkxvY2F0aW9uOiBkYXNoYm9hcmQucGhwIik7CiAgICBleGl0KCk7Cn1lbHNlewogICAgaGVhZGVyKCJMb2NhdGlvbjogbG9naW4ucGhwIik7CiAgICBleGl0KCk7Cn0KCj8+” | base64 — decode</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H0GpeRqvqvNZZonVHYvntw.png" /><figcaption>index.php -&gt; decoded</figcaption></figure><p><strong>16. </strong>It showed me two Php files named <strong>dashboard.php </strong>and login.php</p><p>Now, I replaced the <strong>index.php</strong> with <strong>dashboard.php and </strong>it gave me the below encoded string.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aBAbIFFEk6FQlVv__GP5Cw.png" /><figcaption>dashboard.php</figcaption></figure><p><strong>17.</strong> This time I used cyberchef to decode, I found another file named sober.php in the source code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SHWRgxiw6jKWGLlUZprung.png" /><figcaption>dashboard.php -&gt; decoded</figcaption></figure><p><strong>18.</strong> Now, I replaced the <strong>dashboard.php</strong> with <strong>sober.php</strong> and I found another encoded string</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FtxcGiChOcTDTofb1Dahhg.png" /></figure><p><strong>19. </strong>After decoding the string I got the below below code. Here, I found another encoded string in the multi-line comments, but this time it is small compared to the earlier encoded strings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SGngocWRe4nwa2jPsO5Tog.png" /></figure><p><strong>20.</strong> Finally, after decoding the string, I found this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kGtqNRgnZS1CgA-iFOp67g.png" /><figcaption>flag</figcaption></figure><p>I don’t know why, but somehow I was attracted to this challenge and took off the first half of the day from work. Thanks to you <a href="https://twitter.com/Bugcrowd">bugcrowd</a> : )</p><p>The challenge seems to be very simple after reading the walkthrough, but believe me, it took me a lot of brains to think and execute it.</p><p>I thank my friend <a href="https://www.linkedin.com/in/pawe%C5%82-w%C4%85sik-b526bb1ba/">Paweł Wąsik</a> for his constant support.</p><p><strong>References:</strong></p><ul><li><a href="https://www.cobalt.io/blog/a-pentesters-guide-to-file-inclusion">A Pentester&#39;s Guide to File Inclusion | Cobalt</a></li><li><a href="https://infinitelogins.com/2020/04/25/lfi-php-wrappers-to-obtain-source-code/">Using PHP Wrappers within LFI to Obtain PHP Script Source Code</a></li></ul><p><strong>Feel free to Connect with me at</strong> <strong>-</strong></p><ul><li><a href="https://www.linkedin.com/in/prasanth-bodepu-411ba31a3/">LinkedIn</a></li><li><a href="https://twitter.com/PrashanthBodepu">Twitter</a></li><li><a href="https://www.instagram.com/0xpr4sh4nth_bod3pu/">Instagram</a></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-13NdIO8tG1NPEKL" /><figcaption>Photo by <a href="https://unsplash.com/@mdln_khlr?utm_source=medium&amp;utm_medium=referral">Madeleine Kohler</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b83f6921056b" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/elfi-already-solved-it-better-get-going-bugcrowd-challenge-walkthrough-b83f6921056b">eLFI already solved it, better get going #BUGCROWD Challenge Walkthrough</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[How I Hacked My Sister’s Netflix Profile and Messed Up With Her Account]]></title>
            <link>https://medium.com/@prasanth.bodepu/how-i-hacked-my-sisters-netflix-profile-and-messed-up-with-her-account-5c54a157441e?source=rss-3ba655bf9245------2</link>
            <guid isPermaLink="false">https://medium.com/p/5c54a157441e</guid>
            <category><![CDATA[activation-lock-bypass]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[netflix]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[security]]></category>
            <dc:creator><![CDATA[Prasanth Bodepu]]></dc:creator>
            <pubDate>Mon, 13 Jun 2022 14:15:54 GMT</pubDate>
            <atom:updated>2022-06-13T14:15:54.716Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello folks, I am Prashanth a security researcher and a part-time bug bounty hunter. You can reach out me at <a href="https://www.linkedin.com/in/prasanth-bodepu-411ba31a3/">https://www.linkedin.com/in/prasanth-bodepu-411ba31a3/</a></p><p><strong>Note: </strong>I was so desperate to watch the anime — Naruto, Demon Slayer, Hunter x Hunter, Jujutsu Kaisen, Haiyuku etc. but I don’t have a Netflix account of my own and so I have turned on my hacking mode ON 💡.</p><p><strong>CONTENTS:</strong></p><ol><li><strong>SUMMARY:</strong></li><li><strong>VULNERABILITY DESCRIPTION</strong></li><li><strong>CONSEQUENCES OF NOT FIXING THIS ISSUE</strong></li><li><strong>SUGGESTED COUNTERMEASURES</strong></li><li><strong>NETFLIX’S RESPONSE ON THIS ISSUE</strong></li><li><strong>ADDITIONAL INFO.</strong></li></ol><p><strong><em>TOPIC-1: SUMMARY:</em></strong></p><p>My sister’s PC was powered on and her Netflix account was already logged into the PC and it has two profiles of both my brother and sister but they had their profiles secured with the Netflix’s profile lock.</p><p>I immediately copied all the required cookies on the logged in account and pasted in a notepad, because I didn’t know when she could logout of her account. Now I used those copied cookies to maintain a new session of her account on my personal pc to try to bypass the pin somehow.</p><p>I was trying to login to her profile with some common pins but they’re all throwing “Wrong pin” and I see there is no restriction on entering the pin multiple times.</p><p>So, I tried to brute force it as I see there is no particular rate limit restriction on the profile lock.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d3i1li0EXAFcHELVikj9kA.png" /><figcaption><strong>Netflix Profile Lock API</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9Vf-34NDU6b9ZwSbG0IMqA.png" /><figcaption><strong>Intruder Tab</strong></figcaption></figure><p>I am able to bypass the profile lock after 1992 attempts. With the help of that PIN, I tried to guess the pin of my brother’s profile too. But later I checked with the profile lock pin “request-response manipulation” and I see that, it is also working, giving me a 200 OK status and I’m able to bypass my brother’s profile lock pin also.</p><p><strong><em>VULNERABILITY DESCRIPTION:</em></strong></p><p>1. Basically, this profile lock is implemented to restrict each user’s privacy and not let people from the same family or outside people to know what actually they’re watching</p><p>2. This lock also helps users to maintain their respective Wishlist and each user has their respective recommended content based on their watching.</p><p>3. With the help of profile lock users can keep track of their content, like up to the extent to which they watch the show.</p><p><strong><em>CONSEQUENCES OF NOT FIXING THIS ISSUE:</em></strong></p><p>1. Firstly, due to this flaw the basic privacy of the user is being compromised.</p><p>2. If somebody has a brother like me, they might definitely think to have some lockout system if there are multiple attempts of entering the wrong pin.</p><p>3. I have tried this out on my sister’s account, I have watched most of the anime and removed content from her wish list and also watched some of the content which she already half watched. This whole action of mine made her so mad that she literally cursed Netflix to put some kind of lockout on such profile locks.</p><p><strong><em>SUGGESTED COUNTERMEASURES:</em></strong></p><p>To make sure to prevent such actions as I have performed on my sister’s Netflix account and to improve your user experience and their liking towards your product in protecting their privacy I recommend to use the below mentioned methods.</p><p>1. Firstly, I’d suggest enforcing a method of notifying the registered email address. Saying that somebody tried to access this profile multiple times hence, we’re informing it to you to watch out on their profile.</p><p>2. Secondly, I’d recommend enforcing a lockout to the profile for a certain amount of time and also implementing the procedure as explained above simultaneously.</p><p>3. An improvement on this could be to send the user an SMS to let them know regarding this issue right away which could be an easier way for the user to know that somebody is trying to access the profile in their Netflix account.</p><p><strong><em>ADDITIONAL INFO:</em></strong></p><p>I expected Netflix’s Response and mentioned the below details as well:</p><p>I request you to check the below links where it is mentioned regarding the Profile Lock</p><p><a href="https://help.netflix.com/en/node/114277">https://help.netflix.com/en/node/114277</a></p><p><a href="https://help.netflix.com/en/node/24805">https://help.netflix.com/en/node/24805</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3g5lNsCyKMtjOz818ZKtvA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*izdYPyrGOAycbkeH283I9Q.png" /><figcaption><strong>Purpose of Profile Lock</strong></figcaption></figure><p>Also you can refer to it from the above screenshots and re-check the issue that I’ve reported and also consider the attack scenarios that I’ve mentioned above.</p><p><strong><em>NETFLIX’S RESPONSE ON THIS ISSUE:</em></strong></p><p>Thank you for your submission however this issue is considered to be a P5 (Informational) finding as per <a href="https://bugcrowd.com/vulnerability-rating-taxonomy">Bugcrowd’s Vulnerability Rating Taxonomy</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5c54a157441e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I Got $1083 worth of book bundle for just $1 — #Bugbounty]]></title>
            <link>https://medium.com/@prasanth.bodepu/how-i-got-1083-worth-of-book-bundle-for-just-1-bugbounty-b94b6ed47730?source=rss-3ba655bf9245------2</link>
            <guid isPermaLink="false">https://medium.com/p/b94b6ed47730</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[bugcrowd]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <dc:creator><![CDATA[Prasanth Bodepu]]></dc:creator>
            <pubDate>Thu, 19 May 2022 07:15:22 GMT</pubDate>
            <atom:updated>2022-05-19T07:15:22.098Z</atom:updated>
            <content:encoded><![CDATA[<h3>How I Got $1083 worth of book bundle for just $1 — #Bugbounty</h3><p>Price manipulation at checkout:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_89f3R11cDFV0KJEGseUtw.gif" /></figure><p><strong>INTRO</strong></p><p>Hello guys,</p><p>I am Prasanth Bodepu, a cyber security enthusiast and a Penetration Tester. Although this is not my first bug submission, but I wanted to prepare a write-up about this interesting vulnerability.</p><p><strong>ABOUT VULNERABILITY</strong></p><p><em>Parameter Tampering</em>: It is a type of business logic attack. Manipulation of certain parameters between client and server allows an attacker to modify the actual price, no. of items in the cart. This vulnerability mostly appears in eCommerce websites.</p><p><strong>LITTLE BACKGROUND</strong></p><p>I am recently working on a program in bugcrowd, I cannot disclose the program name so, say some <strong>xyz.com . </strong>I have tried various methods but got no luck. This time I tried playing with the MFA feature and guess what? I succeeded 🎉 in bypassing it, but we’ll talk about this in another story.</p><p>I found some paid games, books and PRO versions of a few software&#39;s on the website and tried to buy some cool cybersecurity book bundles and software’s.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AzY-Xjd_iiM35oVk5njgUA.png" /></figure><p><strong>EXPLOITATION</strong></p><p>I added a book bundle to the cart and switched on my burp and proxy to intercept the request before it hit the payment gateway. I looked into the requests very carefully and forwarded a few requests and found the request where the original cart value is present.</p><figure><img alt="Original Request" src="https://cdn-images-1.medium.com/max/1024/1*JlHjBCLJ36jD8eMOJUSCNA.png" /><figcaption>Original Request</figcaption></figure><p>Here the amount parameter consists of 1083 and the currency parameter is USD. I manipulated the parameter request to 1 and forwarded the request to the server.</p><figure><img alt="Tampered Request" src="https://cdn-images-1.medium.com/max/1024/1*OwKgZwaiQaff5gHRRdikzQ.png" /><figcaption>Tampered Request</figcaption></figure><p>But got an error: the cart value does not match. Now after giving it a thought I intercepted the response of this request from each payment gateway to check the actual response and luckily, I found out that the value got manipulated in the amazon gateway.</p><p>Tip: If there are multiple payment gateways, try to play with each gateway’s response and its request.</p><p>The browser get redirected to the amazon payments page and the amount was successfully tampered.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vlw91GgxfOqGZxmMxjVttQ.png" /><figcaption>Amazon Payment Gateway</figcaption></figure><p>I did not proceed further to purchase and have reported this vulnerability right away. Because doing such things might come under ecommerce payment fraud unless you have appropriate permission from the respective authority.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*Gc1fkMSmOWoriMnDHrM7rw.png" /></figure><p>And then I got this response — unless I was able to order the items at the tampered price and get an invoice for the payment the submission was not accepted. So, I tried buying the book bundle worth of $ 1083 <strong>≡ </strong>₹ 80,986.74 for $1 <strong>≡</strong> ₹ 74.78 and BOOM!!!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/852/1*uW6qPPytL7IvCg9_A1FPgQ.png" /><figcaption>Amazon Payment Invoice</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NJ-9JTqUqRVJPfLb-x7siQ.png" /></figure><p>Finally, I successfully made the payment and received the invoice and attached all the required PoC this time and made a new submission.</p><p>The reply from them was very late but at least I received in the end.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IF-DCpaVLT_GVWo1LOtqIg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b94b6ed47730" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>