Back to Case Studies
Security Audit/Mid-Market B2B DX Platform (~1,500 Accounts)

Pre-Launch White-Box Source Code Audit & Hardening for a Core B2B DX Platform

Author: Nihon Code Engineering & Security TeamIndustry: Mid-Market B2B DX Platform (~1,500 Accounts)
0
Critical Security Incidents Post-Launch
100%
High-Risk Findings Remediated & Verified
White-Box
Full Source Audit + Manual API Testing
01. CHALLENGE

Automated DAST scans passed cleanly, but leadership feared hidden business-logic flaws across multi-step approvals and billing APIs.

02. APPROACH

Combined white-box code review with manual API attack chains, uncovering 4 high-risk flaws and delivering exact PR patches.

03. OUTCOME

100% of high-risk findings remediated and re-tested prior to launch; zero critical incidents across 6 months post-launch.

01. Business & Technical Challenge

  • A core B2B DX platform serving ~1,500 corporate accounts with billing and approval workflows was 3 weeks away from a major platform renewal.
  • Automated DAST scanners reported zero critical issues, yet IT leadership remained concerned that automated tools cannot detect complex business-logic or authorization flaws.
  • Enterprise customers required an independent white-box source audit and re-test verification certificate before approving migration.
  • All vulnerabilities had to be identified, patched, and re-verified within 3 weeks without delaying the public launch.
SECURITY HARDENING
Pre-Audit Exposure to Verified Production Defense
BEFORE: LEGACY / EXPOSUREAT RISK
OBJECT AUTHORIZATION
Missing Tenant Ownership Check on Billing IDs
Manipulating numeric object IDs exposed other companies billing records (BOLA/IDOR)
WORKFLOW INTEGRITY
Client-Only Approval State Validation
Direct API calls bypassed intermediate manager approval steps
SESSION LIFECYCLE
Stale JWT Refresh Tokens After Offboarding
Offboarded users retained valid API refresh tokens for up to 7 days
AFTER: HARDENED PRODUCTIONVERIFIED
CENTRALIZED POLICY
Mandatory Tenant & Owner Policy Guard
Centralized middleware enforces tenant ownership across every endpoint
SERVER-SIDE STATE MACHINE
Strict Server-Side Workflow State Validation
Server-enforced state machine blocks any out-of-order approval transitions
INSTANT REVOCATION
Instant JWT Revocation + 100% Re-Test Sign-Off
Immediate session termination on offboarding with client-ready audit certificate

02. Delivery & Engineering Approach

PHASE 01
Week 1 (Early): Ingested full source repositories and API specs to run threat modeling, pinpointing high-impact billing, approval, and role-management attack surfaces.
PHASE 02
Weeks 1-2: Executed manual white-box source review alongside simulated API attack chains, uncovering 4 high-risk flaws missed by automated scanners.
PHASE 03
Weeks 2-3: Delivered reproducible PoC scripts and exact pull-request patches, collaborating directly in Slack with the client engineering team for rapid remediation.
PHASE 04
Week 3 (Final): Re-tested every patched vector to verify 100% closure, issuing an executive summary and a formal verification certificate for enterprise customers.

03. Key Deliverables & Handover

01

White-Box Audit Report & PoC Scripts

Severity-ranked findings with exact code lines and reproducible PoC verification scripts.

02

Remediation Pull Requests & Guardrails

Production-ready PRs implementing policy guards, state validation, and token revocation.

03

Re-Test Verification Certificate

Formal third-party verification sign-off ready for enterprise buyer security reviews.

04

CI Security Regression Test Suite

Automated authorization regression tests integrated into CI to prevent future regressions.

KEY TAKEAWAY

Automated scanners alone miss business-logic flaws. Running a targeted white-box audit before launch eliminated 4 high-risk vectors, yielding zero critical incidents and strong buyer confidence.

NEXT STEP

Talk through your system or prototype in a 30-minute call.

Share your current challenges or plans and we will outline a practical path forward. A company and services overview is also available for internal review.