Session 10 / 14 BugXploit Workshop

Day 10: Live Bug Hunting, Target Scope Mapping & Asset Reconnaissance (Sony on HackerOne)

Report By: TheWH2 Instructors: Birendra Sah Bishal Shrestha Institute: BugXploit (Koteshwor) Read Time: ~20 mins

1. Live Bug Hunting & Program Selection

In today's intensive hands-on session at BugXploit, our instructors Birendra Sah and Bishal Shrestha transitioned the workshop from isolated lab configurations (DVWA, Metasploitable 2) to real-world live reconnaissance on public targets.

Before launching any vulnerability assessment, a professional security researcher must understand the bug bounty ecosystem. We started by exploring public crowdsourced platforms, analyzing program classifications across Bugcrowd and HackerOne:

Bug Bounty Programs (BBP)

Offers monetary cash rewards (bounties) for verified vulnerability submissions according to severity (Critical, High, Medium, Low). Typically attracts intense global competition from senior red teamers.

Vulnerability Disclosure Programs (VDP)

Focused on legal Safe Harbor, responsible disclosure, and Hall of Fame / reputation points without direct cash bounties. Ideal for thorough reconnaissance learning and discovering overlooked architecture flaws.

2. Target Analysis: Sony on HackerOne

To conduct a structured, compliant live reconnaissance exercise, we selected the official public program for Sony hosted on HackerOne:

Target Program Reference

Program URL: https://hackerone.com/sony?type=team
Entity: Sony Group Corporation • Coordinated Vulnerability Disclosure • Public Scope

Instructors emphasized that reading the policy is 50% of the battle. Before typing a single command or visiting target subdomains, we verified:

  • Eligible In-Scope Domains: Assets owned and operated by Sony (e.g., *.sony.com, select PlayStation web applications, and corporate regional portals).
  • Strict Out-of-Scope Exclusions: Denial of Service (DoS/DDoS), physical security attacks against Sony facilities, social engineering / phishing targeting Sony employees, third-party hosted software (e.g., Zendesk, Salesforce) unless misconfigured directly by Sony.
  • Safe Harbor Protections: Guaranteeing that legitimate security research conducted strictly within the stated rules will not result in legal action under anti-hacking statutes.

3. Deep-Dive: Corporate Asset Mapping via Crunchbase

One of the most valuable operational techniques introduced today was using Crunchbase (https://www.crunchbase.com/) as an intelligence and scope-expansion engine.

Why Do Elite Bug Hunters Use Crunchbase?

Most beginner bug bounty hunters only test the root domain (e.g., sony.com) where security controls and WAFs are at their strongest. Elite security researchers use business intelligence databases like Crunchbase to discover subsidiaries, parent conglomerates, past acquisitions, and merged brands.

What Crunchbase Reveals for Threat Modeling:

Intelligence Dimension Reconnaissance Value Bug Hunting Application
Acquisitions & Mergers Reveals smaller companies recently bought by the parent conglomerate. Acquired companies often maintain legacy infrastructure, unpatched CMS installations, and weaker authentication stacks before full corporate IT integration.
Subsidiary Hierarchies Maps child organizations operating under the corporate umbrella. Allows finding auxiliary domains (e.g., Sony Interactive Entertainment, Sony Music, Sony Pictures, Sony Semiconductor Solutions).
Tech Stack & Leadership Displays key vendors, cloud providers, and technological partnerships. Guides targeted dorking for enterprise tools (Okta, Workday, ServiceNow, Jira).
Recent Funding & Divestitures Identifies spin-offs and separated entities. Prevents testing out-of-scope entities that have been sold off or are no longer legally part of the target organization.
Scope Verification Rule: Always cross-reference Crunchbase acquisition findings with the target's HackerOne policy. Many programs specify: "Companies acquired within the last 6 months are out of scope until integrated into the program." Respecting this boundary is essential for maintaining safe harbor standing.

4. DNS Enumeration via DNSDumpster

To convert corporate knowledge into actionable network targets, we utilized DNSDumpster (https://dnsdumpster.com/), an asynchronous DNS reconnaissance tool that pulls data from passive DNS databases, certificate transparency logs, and public zone records.

DNSDumpster Reconnaissance • Target: sony.com
recon@bugxploit:~$dnsdumpster-query -d sony.com
[+] Querying DNSDumpster database for sony.com...
[+] DNS Servers (NS Records):
  • ns1.sony.com → 209.200.152.130 (AS11351 Sony Corporation of America)
  • ns2.sony.com → 209.200.152.131 (AS11351 Sony Corporation of America)
  • a1-18.akam.net → Akamai Distributed DNS Anycast
[+] Mail Servers (MX Records):
  • sonyglobal-mail.com.s9a1.psmtp.com (Google Postini / Proofpoint Gateway)
[+] TXT Verification Records:
  • v=spf1 ip4:209.200.152.0/24 include:spf.protection.outlook.com ~all
  • docusign=893b8210-9182-4112-bb28-2831828182
  • google-site-verification=Kj92_812ks0182ls9283712
[+] Subdomains Discovered: 1,420+ Unique Hostnames Identified
  • secure.sony.com • api.sony.com • developer.sony.com • auth.sony.com

Key Insights Gained from DNSDumpster:

  • Cloud vs On-Premise Footprint: We observed that while critical edge traffic is routed through Akamai and Amazon CloudFront CDNs, certain regional subdomains still resolve directly to Sony Corporation of America AS11351 IP blocks.
  • TXT Record Intelligence: Inspecting TXT records revealed third-party enterprise services in use (Microsoft 365, DocuSign, Google Cloud Verification), helping researchers understand their corporate authentication ecosystem.

5. Application Flow & HTML Injection Probing

Once target endpoints were mapped, we initiated manual application flow analysis on public Sony web portals. Rather than firing automated vulnerability scanners (which can degrade server performance and violate program rate limits), our instructors demonstrated precise manual probing:

Step-by-Step Flow Modeling:

  1. Traffic Flow: Observing navigation paths: Landing Page → Global Region Selector → Product Catalog → Search Functionality → Account Login / Sign Up.
  2. Parameter Identification: Tracking query parameters passed in GET requests during search operations (e.g., https://www.sony.com/en/search?q=wh2_test).
  3. Reflection Checking: Determining whether user-supplied input in the search query is reflected in the resulting HTML source code.

Testing for HTML Injection & XSS Viability

To verify whether reflected user input could alter the page's Document Object Model (DOM) or execute arbitrary JavaScript, we submitted benign probe payloads:

Probe 1 (Markup Tag Test): <h1>TheWH2_Test</h1>
Probe 2 (Formatting Tag Test): <b>Probe_Bold</b>
Probe 3 (Attribute Escape Test): " autofocus onfocus=alert(1) x="

Finding: Robust Defensive Encoding & Protection

Upon inspecting the response via DevTools Source Inspector, the payload was strictly HTML-entity encoded by Sony's backend template engine before being rendered:

<!-- Server Response Rendered in DOM -->
<div class="search-query-display">
  Results for: &lt;h1&gt;TheWH2_Test&lt;/h1&gt;
</div>

Because the opening and closing angle brackets (< and >) were converted to &lt; and &gt;, the browser interpreted them strictly as plain text characters rather than executable markup. Therefore, HTML Injection and Cross-Site Scripting (XSS) were not possible on this endpoint.

6. Advanced Google Dorking for Sensitive Endpoints

Instructors guided us through advanced search engine operator queries (Google Dorks) to discover indexed login portals, developer staging environments, and administrative interfaces across Sony's massive domain estate:

Google Dork Syntax Operational Objective Investigation Result
site:*.sony.com -www.sony.com Filter out the main consumer website to uncover hidden or secondary subdomains. Discovered regional developer portals, support subdomains, and media press distribution hubs.
site:*.sony.com inurl:login | inurl:signin | inurl:portal Locate single sign-on (SSO) interfaces, employee portals, and partner portals. Identified Sony PartnerWorld, B2B camera repair portals, and cloud identity federations.
site:*.sony.com ext:php | ext:aspx | ext:jsp Identify backend programming runtimes and legacy file extensions. Mapped legacy Java (JSP) services running alongside modern headless React/Node endpoints.
site:*.sony.com inurl:redirect | inurl:return | inurl:url= Hunt for URL redirection parameters vulnerable to Open Redirect or OAuth token theft. Isolated multiple SSO redirect mechanisms for authentication testing.

7. JWT Architecture & Decoding via JWT.io

When inspecting the authentication headers on Sony's modern customer portals and API gateways, we encountered JSON Web Tokens (JWT) used for stateless session management:

Utility Reference: JWT.io

Tool URL: https://www.jwt.io/
An industry-standard web debugger used to decode, verify, and generate JSON Web Tokens during security assessments.

Anatomy of an Intercepted JWT Token:

A JWT is composed of three Base64URL-encoded strings separated by periods (.):

eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6InNvbnktYXV0aC1rZXktMDIifQ.eyJzdWIiOiJ1c3JfMjAyNmJ4OTAiLCJuYW1lIjoiQ2hhbmRhbiBLdW1hciBUaGFrdXIiLCJyb2xlIjoidXNlciIsImlzcyI6ImF1dGguc29ueS5jb20iLCJleHAiOjE3ODk1MDAwMDB9.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c
1. Header (Algorithm & Key)
{
  "alg": "RS256",
  "typ": "JWT",
  "kid": "sony-auth-key-02"
}
2. Payload (Claims & Data)
{
  "sub": "usr_2026bx90",
  "name": "Chandan Kumar Thakur",
  "role": "user",
  "iss": "auth.sony.com",
  "exp": 1789500000
}
3. Cryptographic Signature
RSASHA256(
  base64Url(header) + "." +
  base64Url(payload),
  privateKey
)

Vulnerability Testing Vectors for JWTs Explained:

  • Base64URL is NOT Encryption: Instructors demonstrated that anyone possessing the token can paste it into jwt.io and immediately read the payload. Developers must never store plaintext sensitive secrets (passwords, social security numbers, internal API keys) inside claims.
  • Algorithm Confusion Attacks: Testing whether the backend server accepts "alg": "none" (which disables signature verification completely) or accepts an asymmetric RS256 token signed symmetrically with HS256 using the public key as the secret. (Sony's authentication servers strictly validated RS256 signatures against their public JWKS key endpoints).
  • Privilege Escalation Tampering: Attempting to modify "role": "user" to "role": "admin". If the signature is verified properly on every request, the backend immediately rejects the forged token with a 401 Unauthorized error.

8. Parameter Tampering & Open Redirect Testing Vectors

Next, we examined authentication routing URLs that contain return parameters after a user successfully signs in. For example:

https://account.sony.com/login?return_to=https://www.sony.com/dashboard

An Open Redirect vulnerability occurs when an application accepts untrusted user input that specifies an external URL and redirects the user's browser to that destination without validation. Attackers use this to execute high-credibility phishing campaigns or steal OAuth authorization codes.

Bypass Techniques Tested:

• Direct External Domain: ?return_to=https://attacker-domain.com
• Protocol-Relative URL: ?return_to=//attacker-domain.com
• Backslash Confusion: ?return_to=https:attacker-domain.com or /ttacker-domain.com
• Domain Parameter Pollution: ?return_to=https://sony.com.attacker-domain.com
• URL-Encoded Payload: ?return_to=%2F%2Fattacker-domain.com

Verification Outcome: Strict Whitelisting

Sony's authentication gateways enforced a strict server-side domain whitelist. When an external domain was passed in the return_to parameter, the server discarded the parameter and defaulted to the root consumer homepage (https://www.sony.com/), successfully mitigating the open redirect vector.

9. Secure Account Provisioning via Temp-Mail

To progress further into authenticated functionality (account settings, profile updates, notification preferences), researchers must create live test accounts.

Utility Reference: Temp-Mail

Tool URL: https://temp-mail.org/en/
A disposable, temporary email service that generates anonymous, ephemeral inboxes for testing verification flows without exposing personal email addresses.

Why Security Researchers Use Disposable Email Services:

  • Inbox Isolation: Prevents personal and work email accounts from being inundated with corporate newsletters, confirmation alerts, and telemetry emails from target companies.
  • Multi-Account Testing (IDOR & BOLA): To test Insecure Direct Object References (IDOR), a tester requires at least two distinct user accounts (e.g., User_A and User_B). Temp-Mail allows researchers to rapidly provision isolated accounts with distinct email addresses.
  • Rate Limiting & Verification Token Testing: Analyzing email confirmation token longevity, token randomness, and whether email addresses containing special characters (e.g., user+test@domain.com) bypass backend filters.

10. Key Takeaways & Safe Harbor Principles

Core Principles Learned in Session 10:

  1. 90% of Bug Hunting is Reconnaissance: Hardened enterprise targets like Sony invest heavily in security controls, Web Application Firewalls (WAF), and input sanitization. Finding high-impact vulnerabilities requires deep business-structure mapping (via Crunchbase) and horizontal asset discovery rather than firing basic attack payloads.
  2. Always Respect Program Scope: Operating strictly within HackerOne's stated rules of engagement is mandatory. Never perform unauthorized penetration testing, automated DDoS, or social engineering attacks.
  3. Tokens Require Proper Storage & Validation: JWTs must always be signed cryptographically with robust algorithms (RS256 with 2048-bit keys), verified on every request, and never relied upon for confidentiality unless explicitly encrypted via JWE (JSON Web Encryption).
  4. Whitelisting Beats Blacklisting: Defensive redirection controls succeed when backends strictly match return destinations against a trusted list of allowed corporate domains rather than attempting to filter out malicious character sequences.

Legal Safe Harbor & Defensive Ethics Notice

All reconnaissance methodologies described in this report were conducted strictly in compliance with Sony's Public Vulnerability Disclosure Policy on HackerOne and within the authorized scope of the BugXploit Cybersecurity Training Program. Unauthorized scanning, attacking, or tampering with systems without documented authorization is illegal under the Electronic Transactions Act (ETA) of Nepal and international cybercrime legislation.