Applications trust what they should verify. SISA's Red Team findings on path traversal, IDOR, auth bypass, and JWT flaws — and how to defend the application layer.
TABLE OF CONTENT
Introduction: The Application Trusted the Request
Enterprises spend heavily on the defenses that sit around their applications - web application firewalls, API gateways, network segmentation, identity providers. Yet the most damaging findings in SISA's red teaming engagements rarely came from breaking through any of that. They came from the application itself doing exactly what it was built to do: accept a request, trust it, and return the data.
Application-layer attacks once demanded chained exploits and deep technical skill. Today the most impactful ones exploit assumptions: that a file path is safe, that an object reference belongs to the user requesting it, that a login parameter came from the login page, that a token was genuinely issued by the server. Using a combination of dark web credentials, forced browsing, IDOR exploitation, and authentication logic flaws, SISA's red teamers reached employee salary records, customer PII, financial records, and operational infrastructure — all without elevated privileges.
Findings from SISA’s red teaming operations conducted between 2024 and 2026, point to one consistent pattern: attackers did not need to defeat the application's defenses. They used the application exactly as built — and it handed over the data.
These findings point to a reality many organizations have not yet internalized: the application is the perimeter, and most applications trust input they were never designed to verify.
What SISA's Red Team Found During Application Security Assessments
1. Path Traversal → Full Database Compromise
A development server, left exposed at a public URL, let the red team read arbitrary files from the host through a path traversal flaw. Reading the server's command-history file revealed the application's directory names. Reading the application's own configuration files then exposed its database credentials, for both PostgreSQL and MongoDB - along with live API keys, all stored in plaintext. With those in hand, the red team connected to both databases as administrator, from outside the network perimeter entirely. A single unauthenticated file read became a full compromise of the data layer, with no exploit chain required. Findings like this are precisely what a secure code review is built to surface before an application ever reaches production.
Defensive priorities
- Never expose development servers or debug endpoints to the internet
- Store credentials in environment variables or a secrets manager; never in config files the application server can read
- Restrict database access to a whitelist of application-server IPs only
- Alert on database connections from any IP not on the approved application-server list
2. IDOR: 1,000+ Employee Salary Slips Exposed
An ERP application exposed a document-reference parameter in its API requests. Simply changing that value let the red team download salary slips belonging to any employee. Automated enumeration then pulled records for 1,000+ employees — names, departments, bank details, and gross pay. In a separate engagement, an HRMS endpoint returned 1,000 employee records in a single response once the page-size value in the request was increased. In both cases the application never checked whether the requester was entitled to the data it returned - a class of flaw that surfaces reliably under focused API security testing. The IDOR/Broken Object Authentication is a consistent finding across BFSI application security assessments with authorization gaps missed by authentication-focused testing and standard OWASP reviews, as documented in SISA’s Digital Threat Report 2025-26.
Defensive priorities
- Enforce server-side object-level authorization; verify the user owns the requested resource before returning it
- Avoid sequential or predictable identifiers; use UUIDs in URLs
- Apply rate limiting on data-export endpoints and alert on bulk enumeration patterns
- Make authorization testing a standing part of the SDLC - IDOR is consistently missed in code review and vulnerability assessment
3. Authentication Bypass via Parameter Manipulation
An internal supply chain application accepted a login-mode setting that the client controlled. Switching it to a particular value caused the server to skip password validation altogether and issue a valid authentication token for any username supplied; including the administrator account. Every account in the application was effectively open. With no rate limiting and no logging on the endpoint, the bypass left no trail. The root cause was an authentication decision made on the strength of a value the client controlled — the kind of logic flaw that web application penetration testing is designed to catch.
Defensive priorities
- Never make authentication decisions based on client-supplied parameters
- Enforce mandatory server-side password validation regardless of SSO/ADFS integration mode
- Include authentication-bypass testing in every security review and penetration test
- Log all authentication events — including the specific method used, and alert on non-standard patterns
4. JWT Weak Signing Secret → Privilege Escalation to Admin
An application signed its authentication tokens with a weak secret, little more than a placeholder phrase — hard-coded directly into the source code. The red team recovered it offline, forged a fresh token that claimed super-administrator rights, and presented it. The application accepted the forged token and granted full administrative access. A single weak, hard-coded secret collapsed the entire trust model of the token layer, an outcome a threat modeling and architecture review would have flagged at design time.
Defensive priorities
- Use a cryptographically random 256-bit HMAC secret, stored only in a secrets manager
- Prefer asymmetric JWT signing (RS256/ES256) so the private key never leaves the server
- Never trust privilege claims carried inside a token without validating them server-side against a database
- Rotate JWT signing secrets immediately if any source-code exposure is discovered
SOC Playbook: Application-Layer Attack Detection & Response
Application-layer attacks are difficult to catch because, on the wire, they look like ordinary use. A path-traversal read is still an HTTP GET. An IDOR request is a valid, authenticated call. A forged token is structurally identical to a legitimate one. Signature-based tooling and perimeter monitoring rarely register any of it, because nothing "malicious" is happening — the application is simply being asked to do something it should have refused.
Based on patterns observed during SISA's red team engagements, security teams should prioritize detection and response around abnormal data access, unexpected authentication behavior, and connections that bypass the application tier.
Detection Priorities
Security teams should continuously monitor for:
- File-read requests that use directory-traversal sequences such as ../, or that reach for sensitive system files such as command-history, password, or application configuration files
- Database connections originating from IP addresses outside the approved application-server allowlist
- Sequential or high-volume access to object-referenced endpoints — repeated requests that increment a document reference, record ID, or page-size value, the signature of IDOR-driven enumeration
- Authentication requests carrying non-standard parameters such as mode, debug, or bypass flags, and successful logins with no matching password-validation event
- Authentication tokens presented with elevated privilege claims such as isAdmin or isSuperAdmin, or tokens signed with weak or deprecated algorithms
Response Priorities
When application compromise is suspected:
- On confirmed path traversal or config exposure, rotate every exposed credential and API key immediately and lock down the affected endpoint
- On bulk enumeration, throttle or block the source account and IP, quantify the records accessed, and preserve logs for a breach assessment
- On an authentication bypass, disable the vulnerable endpoint or parameter path, force re-authentication, and audit every account that authenticated through it
- On token compromise, rotate signing secrets, invalidate all active tokens, and migrate to asymmetric signing
- Initiate a forensics investigation where PII, cardholder, or financial data may have been reached, to scope exposure and meet notification obligations
Final Perspective
None of these findings required a novel exploit or advanced tradecraft. Each one turned on the same root cause: the application trusted input it should have verified, and enforced authorization on the client side or not at all. A file path, an object reference, a login parameter, a signing secret — in every case the application accepted at face value something an attacker fully controlled.
This is exactly the class of weakness that compliance scans and web application firewalls miss. They confirm that controls are present; they do not test whether the application's own logic can be turned against it. Only hands-on assessment — red team engagements and focused application security testing — reliably surfaces broken authorization and authentication logic, because finding it requires thinking like the person abusing it.
Because in modern enterprise environments, the perimeter that matters most is the one inside the application — and it is only ever as strong as the authorization logic behind every single request.
.avif)
.jpg)