Case files

Penetration tests with the findings and severities as reported, and software shipped live, with the security decisions that went into it. Sanitized from real engagements; client names withheld.

All case files

Securiti.ai: Enterprise Application Security

Conducted authorized web and API penetration testing across multiple modules of enterprise SaaS platforms.

Enterprise SaaS Web/API Security OWASP & API Top 10
20+
Findings Total
Crit
Highest Severity
Auto
Workflow
Critical

Cross-Module Authorization Gaps

Specialized in broken access control, uncovering IDOR/BOLA, function-level authorization (BFLA), and multi-tenant isolation flaws across enterprise modules, each backed by reproducible proof-of-concept.

High

End-to-End Exploit Chains

Tested for and demonstrated stored XSS, SSRF, XXE, CSRF, and insecure file-upload handling. Executed end-to-end exploit chains such as malicious-document delivery with fully working PoCs.

Workflow

Automated Reporting & Playbooks

Automated testing workflows by scripting Burp Suite exports into findings-tracker conversions. Authored a reusable file-upload testing playbook and professional CVSS-scored reports with remediation guidance.

MedAssist AI: Telemedicine Platform

Full-stack development of a secure PWA with real-time AI clinical assistance.

Node.js WebRTC Gemini 2.5
1
PWA Built
Live
AI Triage
µ
Microservices
Feature

Real-Time AI Clinical Copilot

Integrated Gemini 2.5 Flash-Lite for AI-driven symptom triage and built a live copilot that provides differential diagnosis hints during real-time consultations.

Feature

Secure WebRTC Video & Audio

Engineered low-latency, secure video calling with Socket.io, including real-time speech-to-text transcription for automated doctor notes.

Architecture

Dockerized Microservices

Deployed the entire infrastructure using Docker containers, ensuring scalable production environments and offline-first mobile performance.

The Watch Bazar

Penetration test of a luxury marketplace and its Django and Supabase back end. Report delivered 16 March 2026.

Black Box OWASP WSTG v4.2 React + Supabase + Django
16
Findings Total
1
Critical
6
High
3
Medium
6
Low / Info
Critical

WB-01 · Hardcoded Supabase credentials in the client bundle

The production Supabase URL and anon key sit inside the Vite JavaScript bundle. With the key, anyone can query the PostgreSQL REST endpoints directly and bypass the Django backend. Fix: move database access server-side, or enforce strict Row Level Security on every table.

High

WB-13 · No row-level security on SELECT for several tables

Unauthenticated users could dump tables such as brands through the REST API, and storage assets still pointed at an older staging project. Fix: enable RLS on all tables and migrate assets to the production project.

High

WB-15 · IDOR exposing seller financial data

The Product API returned commissions and net profit (pricing_breakdown) to any authenticated seller, whoever owned the listing. Fix: a serializer that includes the field only for the listing owner.

High

WB-10 · Broken account creation (authentication DoS)

When the confirmation email failed, the backend rolled back the new account, which blocked every new sign-up. Fix: repair the email provider config and handle the failure without deleting the account.

High

WB-04 · Client-side rate limiting, trivially bypassed

Login throttling lived in localStorage; removing one key reset it. Fix: server-side rate limiting on the Django backend.

High

WB-02 and WB-05 · API route map and admin endpoints disclosed

The JavaScript bundle listed every /api/v1/ route, the full role hierarchy and the admin endpoints, handing an attacker the map for IDOR and privilege-escalation testing. Fix: code-split admin routes and enforce server-side authorization on all of them.

Medium

WB-14 · IDOR on order tracking

Any authenticated seller could view the status and store ownership of any order by changing the order number. Fix: check that the requester owns the order or its store.

Medium

WB-11 · Weak idempotency on checkout

Replaying a request was rejected, but changing one character of the Idempotency-Key created a duplicate order, because the payload was never hashed. Fix: store a hash of the canonical request body alongside the key.

Medium

WB-06 · Session token storage key disclosed

The localStorage key holding auth tokens was visible in client code, making token theft simple if XSS is found. Fix: HttpOnly cookies.

Low / Info

Six lower-severity and positive observations

Public DRF browsable login (WB-12), client fingerprint header (WB-07), file-type validation gap on uploads (WB-16) and ghost 200 responses (WB-09). Also recorded as good practice: the OAuth flow had moved to PKCE (WB-03, fixed) and robots.txt was hardened (WB-08).

Confidential Client: University Portal

Gray box penetration test on a student management system handling sensitive academic data

Gray Box Burp Suite Pro Supabase + Express + Netlify
11
Findings Total
5
Critical
2
High
4
Low / Info
Critical

SQL Injection in the Login Endpoint

The login endpoint concatenates the ID parameter into a SQL query. A single quote breaks the query and a trailing comment restores it, confirming injection. A WAF blocked automated extraction, but the unparameterized query is still the root cause. Fix: prepared statements and numeric-only ID validation.

Critical

2FA Bypass: Client-Side Email Manipulation

Two-factor authentication OTP sent to email address from client request body instead of server session. Attacker can redirect OTP to their own email for full account takeover.

Critical

2FA Completely Non-Functional

Session upgraded to "fully authenticated" immediately after first-factor login. Any arbitrary code accepted. Direct URL navigation bypasses 2FA entirely, providing zero security value.

Critical

Account Takeover via Password Reset

Password reset OTP can be redirected to attacker-controlled email by modifying the request body. Total account takeover of any user.

Critical

Inconsistent SSL/TLS Enforcement

Password reset functionality downgrades to plaintext HTTP. Credentials transmitted in cleartext, enabling network-based interception.

High

Privilege Escalation via Parameter Pollution

Appending ?role=admin to API requests returns admin-level data. URL params override session data, exposing administrative functionality to low-privilege users.

High

Unchanged Passwords Post-Compromise

After a previous security incident, all user passwords remained unchanged for 3+ months. Any stolen credentials from the prior attack remain valid.

First Bug Bounty: SVG File Upload Manipulation

Independent security research on an AI note-taking platform

Bug Bounty File Upload XSS via SVG
1
Vulnerability Found
Med
Severity
✓
Fixed by Vendor
Medium

Unsanitized SVG File Upload in Avatar Feature

Discovered that the platform's avatar upload accepted SVG files without sanitizing their contents. SVG files can embed JavaScript and HTML, enabling potential Stored XSS. While the impact was limited in this case (avatars weren't publicly displayed to other users), the lack of server-side validation represented a significant security gap. The vulnerability was subsequently patched by the vendor.

NCERT: National CERT Pakistan

GRC internship focusing on Information Security Management Systems (ISMS) and national policy alignment.

GRC ISMS Review PISF Framework
National
Impact Scale
100%
Compliance Alignment
ISMS
Core Focus
Policy

National Policy Alignment via PISF

Aligned national cybersecurity policies with enterprise risk standards by utilizing the Pakistan Information Security Framework (PISF), ensuring robust regulatory compliance across critical infrastructure.

Audit

Comprehensive ISMS Reviews

Drove Governance, Risk, and Compliance (GRC) initiatives by conducting thorough reviews of Information Security Management Systems, identifying procedural gaps and recommending actionable improvements.

Agentic AI Penetration-Testing Framework

Architected an autonomous hierarchical multi-agent system (Claude/LLMs) that maps attack surfaces and executes OWASP-based test matrices.

LLM Agents Autonomous SecOps AI Safety
AI
System Type
100%
Methodology Fit
HITL
Guardrails
Architecture

Hierarchical Multi-Agent Orchestration

Designed an orchestrator that routes tasks to specialized sub-agents to perform cross-module attack-chain reasoning. This surfaced complex authorization flaws that single-scope automated scanning tools consistently missed.

Memory

Self-Improving Knowledge Base

Engineered a persistent memory module featuring per-endpoint and data-model changelogs, ensuring the AI agents accumulate context and systematically improve attack coverage across sequential runs.

Safety

Strict Autonomous Guardrails

Built comprehensive safety controls into the pipeline, including tiered permission levels, mandatory Human-in-the-Loop (HITL) approvals for destructive actions, and automated pre-execution verification hooks.

Custom SSRF Payload Engine

Built an automated Python security tooling suite dedicated to rigorous Server-Side Request Forgery (SSRF) regression testing.

Python Scripting Network Security Custom Tooling
70+
Bypass Vectors
12
Evasion Classes
Live
Dashboard
Tooling

Comprehensive Evasion Capability

Engineered a dynamic payload generation engine capable of 70+ specific bypass techniques across 12 distinct evasion classes, including DNS rebinding, cloud-metadata exfiltration, and protocol confusion attacks.

Workflow

Live Results & Tracking Dashboard

Coupled the payload engine with a live results dashboard for immediate feedback during network exposure tests, significantly streamlining the security assessment process and minimizing false positives.

ImpactAlign & ImpactAlign SDG

Two sites on one Supabase backend: SDG alignment for individual researchers and startups, and an evidence-based scoring platform for institutions.

React + Supabase Gemini Edge Functions Row-Level Security
2
Sites, One Backend
RLS
Data Isolation
AI
SDG Mapping
Product

Individual submissions with verifiable certificates

ImpactAlign SDG lets researchers, students and startups submit a manuscript, thesis, proposal, project or startup, get AI mapping to SDGs, targets and indicators, and receive a certificate with a QR code and public DOI lookup.

Product

Institutional Activity Register

ImpactAlign logs institutional activity once and feeds three services: SDG alignment, a predicted HEC ORIC scorecard, and the Shehnaz Index. Scores are labelled predicted or self-assessed, and an admin panel manages subscriptions, organisations and an audit log.

Security

Confidential IP behind strict data rules

PostgreSQL Row-Level Security protects unpublished work while a curated public view powers the project explorer; private PDFs are served only through short-lived signed URLs.

Security

Guardrailed AI evaluation

Gemini runs server-side in Supabase Edge Functions with prompt-injection guardrails, and API keys were moved out of the client into server-side environments.

PSC Bundle: PlayStation Store for Pakistan

Full-stack online shop for games, PS Plus subscriptions, gift cards and consoles, live at pscbundle.com.

Next.js Supabase Docker + Caddy
1
Live Storefront
30 min
Checkout Stock Hold
CI/CD
Auto-Deploy
Feature

Gateway-free payment flow

Customers check out against a 30-minute stock hold, pay from any bank app or wallet, upload a payment screenshot, and staff approve or reject it in an admin console before delivery over WhatsApp, library or email.

Security

Business rules enforced in the database

Postgres functions and Row-Level Security hold the rules for stock, orders and roles, with email-code or Google sign-in for customers and separate owner and agent staff roles. Database rules are covered by automated tests.

Architecture

Self-hosted production setup

Deployed with Docker Compose and Caddy automatic HTTPS on a VPS, with GitHub Actions running tests before each deploy, nightly database backups to a private bucket, and a documented restore procedure.

HEW Foundation: Clinic Management Platform

Multi-branch clinic management and patient portal, live at app.hewfoundation.org.pk.

Next.js PostgreSQL + Drizzle English + Urdu (RTL)
4
Branches, One Deployment
EN/UR
Bilingual, RTL
Audit
Every Mutation Logged
Security

Branch-scoped multi-tenancy

Every tenant table carries a branch ID and access is checked in the service layer through a branch-scoping guard, not only in the UI.

Compliance

Audit trail and patient privacy

Every mutation writes an audit-log row, and no patient health information is written to application logs.

Architecture

Lean, reliable delivery

A pnpm monorepo with a web app and a background worker, deployed to a VPS from GitHub Actions with health-check rollback, and print-styled prescriptions and receipts instead of server-side PDF generation.

Bring me the app you are worried about.

Whether it is a client project that needs a pentest report, or a product that has to be secure by the time it launches, tell me what you are shipping.