Navigating Bug Bounties: From NAs to P1s

Animesh Acharya (Security Consultant · Tanto Security)

BSides Canberra VIII (2025) · Day 1 · Off-Main Track

Overview

In his compelling talk at BSides Canberra, Animesh Acharya, a Security Consultant at Tanto Security, shared his personal journey and invaluable insights into the world of bug bounties, specifically detailing his progression from submitting "Not Applicable" (NA) findings to uncovering critical "Priority 1" (P1) vulnerabilities. Acharya's presentation serves as both a practical guide and an inspirational narrative for aspiring and current bug hunters, emphasizing the importance of persistence, deep technical understanding, and a keen eye for business impact. He demystifies the path to finding high-severity bugs, often perceived as requiring overly complex exploit chains, and highlights that foundational security principles, when applied thoughtfully, can yield significant rewards.

Watch on YouTube

Visual summary for Navigating Bug Bounties: From NAs to P1s by Animesh Acharya
Visual summary for Navigating Bug Bounties: From NAs to P1s by Animesh Acharya

Key moments

  1. 0:00 Introduction to bug bounties and speaker's journey
  2. 4:40 Initial struggles: weak leads, comfort zone, 'NA' bugs
  3. 7:50 First high severity bug: accidental cross-organizational IDOR
  4. 16:30 Escalating self-stored XSS via SSO and iFrames
  5. 24:30 Collaboration: finding server-side SOAP API vulnerabilities
  6. 29:50 SQL injection, WAF bypass, and PDF converter chain
  7. 39:00 First RCE, business impact, and critical lessons learned
  8. 45:00 Q&A: AI's impact on bug bounties and mental health

Navigating Bug Bounties: From NAs to P1s

Speakers: Animesh Acharya, Security Consultant, Tanto Security

Conference: BSides Canberra

YouTube: https://www.youtube.com/watch?v=9etzR_sobh0

Overview

In his compelling talk at BSides Canberra, Animesh Acharya, a Security Consultant at Tanto Security, shared his personal journey and invaluable insights into the world of bug bounties, specifically detailing his progression from submitting "Not Applicable" (NA) findings to uncovering critical "Priority 1" (P1) vulnerabilities. Acharya's presentation serves as both a practical guide and an inspirational narrative for aspiring and current bug hunters, emphasizing the importance of persistence, deep technical understanding, and a keen eye for business impact. He demystifies the path to finding high-severity bugs, often perceived as requiring overly complex exploit chains, and highlights that foundational security principles, when applied thoughtfully, can yield significant rewards.

The talk delves into several real-world examples, illustrating how seemingly minor vulnerabilities can be escalated through contextual understanding and chaining with other flaws. Acharya underscores that success in bug bounties is not merely about technical prowess but also about adopting a hacker's mindset—questioning assumptions, exploring hidden attack surfaces, and understanding the overarching ecosystem of an application. His journey from initial frustrations with low-impact submissions to consistently identifying high-value findings provides a clear roadmap for others seeking to navigate the challenging yet rewarding landscape of vulnerability research.

Background

▶ Watch: Introduction to bug bounties and speaker's journey (0:00)

Animesh Acharya's foray into bug bounties began after completing his bachelor's in IT and starting a role as a penetration tester. His passion for hacking web applications was ignited by a tweet showcasing a $15,000 reward for an IDOR (Insecure Direct Object Reference) vulnerability. This sparked his interest in bug bounty programs, where companies invite security researchers to find and report vulnerabilities in exchange for rewards. Acharya explained that these programs can be managed by platforms like HackerOne, Bugcrowd, Intigriti, and YesWeHack, or self-hosted by tech giants such as Google and Microsoft. Programs are typically categorized as public (open to all) or private (invite-only).

Initially, Acharya, like many newcomers, aimed to accelerate his learning and earn money by applying his pentesting knowledge to live targets. He quickly learned that while some low-severity bugs, like missing CAPTCHA on contact forms, could occasionally yield minor payouts, this approach was unsustainable and offered little in terms of learning or progression. He found himself stuck in a cycle of submitting "weak leads" that were often marked as Not Applicable (NA) or duplicates. A significant barrier was his reluctance to step out of his comfort zone, avoiding tasks like reading minified JavaScript files or deeply investigating GraphQL introspection, instead relying heavily on automated tools like Burp Suite's active scanner, which often only flagged trivial issues like TLS errors.

This period of stagnation led to a crucial realization: to truly progress, he needed to shift his mindset. He committed to thoroughly investigating a single program until he found a high-severity bug, a decision that proved pivotal in his bug bounty career. This commitment to persistence and deeper analysis formed the foundation for his subsequent successes, moving beyond surface-level findings to uncover more impactful vulnerabilities.

Key Findings

▶ Watch: First high severity bug: accidental cross-organizational IDOR (7:50)

Animesh Acharya's journey from NAs to P1s was marked by several key findings and strategic shifts:

  • Discovery of Hidden Attack Surfaces: His first significant breakthrough came by challenging assumptions about an application's login flow. By manipulating a profileType parameter and observing different response types (legacy vs. redirect), he uncovered a previously unknown OAuth flow in a web application. This hidden flow, not exposed through the standard UI, proved vulnerable to an open redirect, a critical flaw in authentication processes. This highlighted the importance of not relying solely on the visible user interface and digging into client-side logic (e.g., JavaScript files).
  • Escalating Self-Stored XSS: Acharya demonstrated a sophisticated method to escalate a seemingly benign self-stored Cross-Site Scripting (XSS) vulnerability. By chaining it with a login Cross-Site Request Forgery (CSRF) and exploiting Single Sign-On (SSO) mechanisms, he could achieve session hijacking. While technically complex to report, this illustrated how context can elevate the impact of a low-severity bug, even if its business impact might still be debated by companies.
  • Collaboration and API Exploitation: A significant turning point involved collaboration during a security course. Working with a peer, he identified exposed SOAP APIs and WSDL files for a large car manufacturing company. Initial roadblocks with generic error messages were overcome through collaborative debugging, leading to the discovery of a critical data exposure impacting 50,000 users. This emphasized the power of teamwork in uncovering complex server-side vulnerabilities.
  • Source Code Access and WAF Bypass: Through an exposed .git/config file containing a GitHub Personal Access Token, Acharya gained access to extensive source code. This allowed him to identify numerous SQL Injection (SQLi) vulnerabilities. Facing an AWS WAF, he detailed a multi-layered bypass strategy involving an HTML-to-PDF converter vulnerability and the nowafpls tool, effectively turning a GET-based SQLi into a WAF-bypassing POST request. This chain ultimately demonstrated write and delete privileges, escalating the impact of the SQLi findings from high to exceptional.
  • Simple RCE and Business Impact: Acharya's first Remote Code Execution (RCE) was surprisingly straightforward: a PHP webshell uploaded to an endpoint. This P1 finding reinforced that not all critical bugs require elaborate chains; sometimes, basic vulnerabilities in common components can lead to maximum impact. Furthermore, he highlighted that business impact often dictates bounty size more than technical complexity, citing a large payout for accessing a "PDF on an S3 bucket" that was critical to the business.

These findings collectively underscore Acharya's core message: effective bug hunting requires curiosity, persistence, a willingness to explore beyond the obvious, and a deep understanding of how individual vulnerabilities can interact within an application's broader ecosystem.

Technical Deep Dive

▶ Watch: Collaboration: finding server-side SOAP API vulnerabilities (24:30)

Animesh Acharya's presentation was rich with technical detail, illustrating how a methodical approach and contextual understanding can elevate findings.

1. Uncovering the Hidden OAuth Flow and Open Redirect

Acharya's first high-severity bug stemmed from a deeper look into an application's authentication process. He initially found a cross-organizational IDOR where requesting a password reset for an email previously used on the mobile app, but not the web app, led to an elevated account being created on the employer web app. While this was a bug, the company deemed the exposed information not sensitive enough for a high bounty.

Undeterred, Acharya began analyzing the authentication flow from the very first request. He observed a crucial difference between the mobile and web applications:

  • Web App: When entering an email and pressing "continue," a GET request included a profileType=employer parameter. The response indicated type: legacy, leading to a password input form.
  • Mobile App: The same action resulted in profileType=jobseeker and a response type: redirect, which then redirected the user to a Single Sign-On (SSO) page.

Acharya's insight was to manipulate the response type in the web app's client-side JavaScript. By intercepting the response and changing type: legacy to type: redirect before the browser processed it, he forced the web application to initiate an SSO flow, redirecting him to the same SSO page the mobile app used. This revealed a completely new attack surface not exposed in the web app's UI.

This newly discovered OAuth flow was vulnerable to an open redirect. In an OAuth flow, an open redirect can be critical because an attacker can craft a malicious URL that, after successful authentication by the victim on the legitimate SSO provider, redirects the victim's browser to an attacker-controlled domain while still carrying the legitimate OAuth authorization code. This code can then be intercepted and exchanged for an access token, allowing the attacker to gain unauthorized access to the victim's account (session hijacking). The key to finding this was understanding the client-side logic, specifically how JavaScript consumed the response and dictated the next authentication step, highlighting the often-overlooked importance of analyzing JavaScript files.

2. Escalating Self-Stored XSS to Session Hijacking via SSO

Acharya then detailed an advanced technique to escalate a self-stored XSS, which typically only affects the user who injects it, into a potent session hijacking vulnerability. This chain involved three components:

  • Self-Stored XSS: An XSS payload injected into a user's profile, which fires when they view their own profile.
  • Login CSRF: A vulnerability allowing an attacker to log a victim into the attacker's account on a specific application with a single, crafted request (e.g., <img src="malicious_login_url">).
  • Single Sign-On (SSO): The application uses an SSO provider for authentication.

The attack sequence unfolds as follows:

  1. The attacker creates an account on the target e-commerce application and injects a self-stored XSS payload into their profile (e.g., username field).
  2. The attacker then crafts a Login CSRF payload to log the victim into the attacker's account on the e-commerce application.
  3. When the victim visits this malicious page, they are silently logged into the attacker's e-commerce account. At this point, the XSS payload is present in the attacker's account, but it hasn't fired in the victim's session context yet.
  4. Crucially, because the e-commerce application uses SSO, logging into the e-commerce app also establishes a session with the underlying SSO provider in the victim's browser.
  5. The attacker's XSS payload, now active in the victim's browser (because they are viewing the attacker's profile), executes a JavaScript script.
  6. This script creates an iframe on the page. Inside this iframe, it navigates to the e-commerce application's login page.
  7. Because the victim already has an active SSO session, the iframe uses this existing SSO session to automatically log the victim back into their own legitimate account within the iframe.
  8. This process generates a new session cookie for the victim's legitimate account. Critically, this new session cookie, while generated within the iframe, replaces the previous session cookie in the main browser window (due to shared domain or cookie scope).
  9. After a short delay (e.g., 5 seconds), the attacker's JavaScript (still running in the main window) reads the now-updated session cookie, which belongs to the victim's legitimate session, and exfiltrates it to the attacker.

Acharya noted that despite its technical cleverness, this type of chained attack often receives lower bounties due to the high number of preconditions required and the complexity of the proof-of-concept report.

3. SOAP API Data Exposure and Collaboration

During a course on advanced bug hunting, Acharya targeted a large car manufacturing company. The scope included "other target domains," allowing for broad reconnaissance. He discovered a suspicious subdomain hosting publicly exposed SOAP APIs with accessible WSDL files. WSDL (Web Services Description Language) files describe the operations, parameters, and data types of a web service, essentially providing a blueprint for interaction.

Using Burp Suite's WSDLR extension, Acharya generated sample SOAP requests. However, he was consistently met with generic error messages, preventing further progress. Through collaboration with a fellow hunter, he learned that adding a specific string after the error message in the request body would cause the API to return more informative error messages. This allowed them to craft valid SOAP requests.

By interacting with the API, they discovered a severe data exposure vulnerability. They could access sensitive information, including names, addresses, and car details, for approximately 50,000 customers in a specific country. Although this was a "bonus" scope item and didn't yield a primary bounty, it highlighted the impact of exposed APIs and the power of collaborative research.

4. Source Code Access, SQLi, and WAF Bypass

A critical finding involved an exposed .git/config file on a subdomain. This configuration file contained a GitHub Personal Access Token, which Acharya used to clone the application's entire source code repository.

With the source code in hand, he ran a SAST (Static Application Security Testing) scanner, which revealed that "every single SQL query" in the application was vulnerable to SQL Injection (SQLi). These SQLi vulnerabilities were primarily in GET requests.

The immediate challenge was an AWS WAF (Web Application Firewall), which blocked his SQLi payloads. Acharya explored several bypass strategies:

  • Elite Gibberish SQL: Crafting highly obfuscated SQL that the WAF might not recognize (deemed too time-consuming).
  • Origin IP Bypass: Attempting to find the origin server's IP address to bypass the WAF entirely (unsuccessful).
  • nowafpls (Assetnote tool): This Burp extension works by padding the request body with a large amount of junk data (e.g., zeros). WAFs often have limits (e.g., 64KB or 128KB for AWS) on how much of a request body they will inspect. If the actual payload is placed after this padding, the WAF might not scan it.

However, a problem remained: nowafpls is designed for POST requests, but his SQLi payloads were in GET requests. This led to an ingenious chaining of vulnerabilities:

  1. DOM PDF Converter Vulnerability: Acharya found an endpoint that used DOM PDF (a PHP library) to convert user-supplied HTML into PDFs. These server-side HTML-to-PDF converters are often vulnerable by design if not properly secured.
  2. Server-Side Request Forgery (SSRF) via Image Tag: He realized he could supply HTML containing an <img> tag with a src attribute pointing to an external or internal URL. When the PDF converter processed this HTML, the server's PHP runtime would fetch the image from the specified URL to embed it in the PDF.
  3. Chaining GET SQLi into POST with nowafpls: This meant he could now make arbitrary GET requests from the server itself. He crafted an HTML payload where the <img> tag's src attribute contained his GET-based SQLi payload.
  4. He then embedded this HTML payload into a POST request to the PDF converter endpoint.
  5. Finally, he used nowafpls to pad this POST request with a large number of zeros, placing his HTML (containing the GET SQLi) after the WAF's inspection limit.
  6. The WAF, seeing only the junk, allowed the request through. The server-side PDF converter then processed the HTML, fetched the URL with the SQLi payload (now a local request, bypassing the WAF entirely), and triggered the SQLi.
  7. Confirmation of SQLi was achieved through time-based inference (e.g., SLEEP(3) in the SQL query), observing a significant delay in the response.

Initially, the 10 SQLi vulnerabilities were marked as "High" with the reasoning that there were no write or delete privileges. Acharya proved this incorrect by crafting SQLi payloads to:

  1. Create a new database (CREATE DATABASE).
  2. Check for its existence and sleep for 3 seconds if found.
  3. Delete the new database (DROP DATABASE).
  4. Check for its non-existence (no sleep).
  5. Attempt to delete a non-existent database (no sleep) to show a clear difference.

This irrefutable proof led to the vulnerabilities being correctly assessed as "Exceptional" (P1) and paid out accordingly.

5. Remote Code Execution (RCE)

Acharya's first RCE was a surprisingly simple yet impactful finding: uploading a PHP webshell to an endpoint that was designed for file uploads. He initially sent a POST request to the /upload endpoint with a PHP file containing a simple webshell, but without a UI to confirm the upload, he didn't check for two days. Upon later inspection, he found the file accessible at /uploads/webshell.php, confirming the RCE. This P1 vulnerability served as a reminder that complex chains are not always necessary for critical impact; sometimes, fundamental misconfigurations can lead to the most severe outcomes.

Demo / Proof of Concept

▶ Watch: SQL injection, WAF bypass, and PDF converter chain (29:50)

While the talk did not feature a live demonstration of hacking against a specific target, Animesh meticulously walked through the logical steps, request modifications, and payload structures that constituted his proofs of concept for several vulnerabilities. For instance, he detailed how to alter the profileType parameter and response type to expose the hidden OAuth flow, illustrated the JavaScript code required for the self-stored XSS escalation, and explained the intricate chaining of the DOM PDF converter with nowafpls for the SQLi bypass. These detailed explanations effectively served as a conceptual walkthrough of his successful exploit chains, providing clear guidance on how to reproduce and validate such findings.

Defensive Implications

▶ Watch: Q&A: AI's impact on bug bounties and mental health (45:00)

Animesh Acharya's experiences offer several critical defensive implications for organizations:

  • Comprehensive Authentication and Authorization Testing: Developers and security teams must rigorously test all authentication and authorization flows, including password resets, SSO integrations, and different user roles, from the very first request. Never assume that basic authentication mechanisms are robust simply because they are common. Test edge cases and unexpected parameter manipulations (e.g., profileType and response type variations).
  • Secure Client-Side Logic: Do not rely on client-side JavaScript for security-sensitive decisions. All authorization and logic checks must be enforced server-side. Furthermore, treat client-side JavaScript as a potential source of intelligence for attackers; sensitive information or hidden functionalities can be discovered by analyzing minified or obfuscated code.
  • Robust SSO Implementation and Session Management: When implementing SSO, ensure that session management is handled securely across all integrated applications. Prevent session fixation vulnerabilities. Ensure that new sessions are always securely generated and that an attacker's session cannot be easily replaced by a victim's legitimate session through iframe-based attacks or other methods. Implement proper anti-CSRF tokens for all state-changing actions, especially login/logout.
  • Holistic XSS Mitigation: Even seemingly "self-stored" XSS vulnerabilities, often dismissed as low impact, can be escalated. Implement strict Content Security Policies (CSPs), perform robust output encoding for all user-supplied data, and sanitize input thoroughly to prevent XSS. Consider the broader context of how XSS might combine with other vulnerabilities.
  • API Security Best Practices: Never expose internal APIs (like SOAP WSDL files) publicly without stringent authentication, authorization, and rate limiting. Use API gateways to control access, validate inputs, and manage traffic. Regularly audit API endpoints for unintended data exposure.
  • Secure Configuration Management: Prevent the exposure of sensitive configuration files (e.g., .git/config, .env) that may contain credentials, tokens, or other sensitive information. Implement strict access controls on version control repositories and ensure that production deployments do not include unnecessary development artifacts.
  • Layered Security Beyond WAFs: WAFs are a valuable defense layer but are not a panacea. Organizations should not solely rely on WAFs to prevent attacks. Instead, combine WAFs with secure coding practices, rigorous input validation, and server-side filtering. Security teams should also be aware of common WAF bypass techniques and regularly test their WAF configurations.
  • Hardening HTML-to-PDF Converters: Server-side HTML-to-PDF conversion libraries are highly susceptible to vulnerabilities like Server-Side Request Forgery (SSRF) and Local File Inclusion (LFI) if not properly configured. Always run these converters in sandboxed environments, disable external entity loading, restrict their network access, and rigorously sanitize all user-supplied HTML input.
  • Secure File Uploads: Implement comprehensive security measures for file upload functionalities. This includes strict validation of file types (using both client-side and server-side checks), content (e.g., magic bytes), and size. Store uploaded files outside the web root, rename them to prevent path traversal, and integrate with antivirus/malware scanning solutions.
  • Contextual Vulnerability Assessment: Security teams must move beyond purely technical severity ratings and consider the business impact of each vulnerability. A seemingly low-technical-severity bug, like accessing a PDF on an S3 bucket, can be critical if the PDF contains highly sensitive business information. Prioritize remediation based on both technical risk and potential business consequences.

Key Takeaways

  • Persistence is Paramount: Don't give up on a bug bounty program prematurely. Often, the most impactful vulnerabilities are found after sustained effort and when new scope is introduced.
  • Challenge Assumptions: Never assume an application or a specific flow (especially authentication) is secure. Test every aspect from the ground up, as hidden attack surfaces often yield critical bugs.
  • Look Beyond the UI: Analyze client-side logic (JavaScript files), network traffic, and API responses for hidden parameters, different response types, and unadvertised functionalities (like unknown SSO flows).
  • Context Elevates Impact: Low-severity bugs (e.g., self-stored XSS) can be significantly escalated when chained with other vulnerabilities and understood within the broader application context, even if reporting them can be complex.
  • Collaboration Accelerates Learning: Sharing findings and challenges with peers can lead to breakthroughs, faster learning, and the discovery of vulnerabilities that might be missed individually.
  • Server-Side Bugs Offer High Rewards: While client-side issues are valuable, server-side vulnerabilities (like SQLi, RCE, data exposure through APIs) generally offer higher impact and larger bounties.
  • WAFs Are Not a Silver Bullet: Relying solely on WAFs is insufficient. WAFs can be bypassed; layered security, secure coding practices, and robust input validation are essential for true defense in depth.
  • Business Impact Trumps Technical Complexity: The bounty amount often correlates more with the business impact of a vulnerability than its technical complexity. Understanding what truly matters to the business is key.
  • Prioritize Mental Health: Bug bounties can be addictive and mentally taxing. It's crucial to maintain a healthy work-life balance and prioritize personal well-being alongside bug hunting efforts.

About the Speaker(s)

Animesh Acharya is a Security Consultant at Tanto Security, bringing a wealth of practical experience in penetration testing and bug bounty hunting. Originally from Nepal, Animesh moved to Sydney, Australia, to pursue his bachelor's degree in IT at UTS. After completing his studies, he embarked on a career in penetration testing, where he developed a deep passion for hacking web applications. His journey into bug bounties was inspired by the potential for continuous learning, applying skills to live targets, and the opportunity to earn rewards. Animesh's talk vividly illustrates his dedication to the field, his methodical approach to vulnerability discovery, and his commitment to sharing valuable lessons learned from his progression from novice to an accomplished bug hunter.

Reviews

→ Top-rated talks at BSides Canberra VIII (2025)

All talks from BSides Canberra VIII (2025)