How Cal.com Rebuilt AppSec After Going Closed Source
How Cal.com consolidated noisy security tooling into one continuous, context-aware pull request security program with Gecko.
Gecko Security

Broken access control is the most common vulnerability class in existence, which makes it easy to assume it's also the most understood. It's not. The OWASP A01 ranking covers dozens of distinct failure modes, and most of them produce no errors, no crashes, and no signal that anything is wrong. If you're trying to get a clear picture of where BAC vulnerability actually hides in your application, and why it's so hard to catch before someone else finds it first, this is where to start.
TLDR:
Broken access control happens when an application fails to properly enforce who can do what. A user accesses a resource, performs an action, or reads data they have no business touching, and the application lets them. The authorization check either never runs, runs on the wrong input, or runs correctly but gets bypassed through a path the developer didn't anticipate.
OWASP ranks it A01 in the Top 10, and the data behind that ranking is stark: broken access control appeared in 100% of applications tested across a sample of roughly 500,000 apps.
The category covers a wide range of failure modes, from IDOR (insecure direct object references) to privilege escalation to missing function-level access control. What unites them is a gap between what the application is supposed to allow and what it actually allows.
OWASP ranks broken access control at the top of its Top 10 list because the data leaves no room for debate. Across roughly 500,000 applications tested, access control failures appeared more often than any other vulnerability class. No other category came close.
The ranking reflects how authorization failures actually behave in production. They are rarely loud. They don't crash servers or trigger obvious errors. An attacker who finds a missing access check gets quiet, persistent access to data or functionality they were never supposed to reach.
OWASP A01 groups several distinct failure modes under one label:
What connects all of these is that the application knew what the user was allowed to do and failed to check it at the point where it mattered, a pattern at the heart of business logic as AppSec's unsolved problem.
Access control is the set of rules that decides which users can take which actions on which resources. In a well-designed system, every request goes through an authorization check before any sensitive operation executes. The server verifies identity, checks whether that identity holds the required permission, and either proceeds or rejects the request.
Three models do most of the work in practice:
The assumption underlying all three is that enforcement happens server-side, consistently, on every request path.
The gap between how access control is designed and how it gets implemented is where BAC vulnerabilities live. Authorization logic gets added incrementally across sprints, spread across middleware, controllers, and service layers with no single enforcement point. A check present on one route is missing on another that reaches the same data. An admin-only function is hidden from the UI but never restricted at the API layer, which is precisely why static analysis struggles with business logic vulnerabilities.
The result is that the policy exists on paper while the enforcement has holes throughout the codebase.
Broken access control covers a wide range of implementation failures, each exploitable in different ways depending on the application's architecture and trust model.
| Vulnerability Type | What Fails | Typical Attack Vector | Escalation Direction |
|---|---|---|---|
| IDOR | Ownership check missing on object retrieval | Substitute another user's resource ID in URL, body, or header | Horizontal |
| Horizontal privilege escalation | Peer-user isolation not enforced | Swap account identifier (e.g., ?account_id=1001 → ?account_id=1002) | Horizontal |
| Vertical privilege escalation | Role check absent on privileged endpoint | Directly request admin path (e.g., /admin/users) from a standard account | Vertical |
| Forced browsing | Unlisted endpoints left publicly accessible | Request known-path resources (admin panels, config exports, backup files) directly | Vertical |
| Function-level access control failure | Authorization exists in UI but not in API handler | Call hidden endpoints directly via network inspection or client-side JS | Vertical |
| Missing API method controls | GET is protected; PUT/DELETE/PATCH on same path is not | Change HTTP method on a readable resource to modify or delete it | Horizontal or Vertical |
Two distinct failure patterns appear repeatedly across web applications.
/admin/users without any role check in the handler.?account_id=1001 to ?account_id=1002 and receiving another user's data.IDOR is the most common form of broken access control in production systems. The vulnerability exists when an application exposes a reference to an internal object (a database row ID, a filename, a UUID) and fails to verify that the requesting user has permission to access that object. The check is either missing entirely or only exists on the page that displays the link, not on the API endpoint that serves the data.
Path traversal attacks manipulate file path inputs to access files outside the intended directory, using sequences like ../../etc/passwd to escape application boundaries. Forced browsing targets URLs that the application never links to publicly but leaves fully accessible: backup files, admin panels, configuration exports, or older API versions that predate the current authorization layer.
Many applications control access at the UI layer by hiding buttons or menu items, but leave the underlying API endpoints unprotected. An attacker who inspects network requests or reads client-side JavaScript can find and call those endpoints directly, bypassing the UI entirely. This pattern is widespread in single-page applications where route guards exist in the frontend but authorization logic was never implemented in the backend handlers.
REST APIs often implement GET endpoint authorization while leaving PUT, DELETE, or PATCH handlers on the same resource path unprotected. A user who can read a resource can modify or delete it simply by changing the HTTP method.
Three breaches show how broken access control moves from a theoretical category into measurable business damage.
In 2022, Australian telecom Optus suffered a breach when an API endpoint was accidentally exposed to the public internet without any authentication. Attackers incremented customer record identifiers to extract nearly 10 million records, including names, dates of birth, passport numbers, and contact details. The access control check was absent entirely: the endpoint had never required authentication.
Microsoft's Power Apps service exposed tenant data across organizational boundaries in 2021 because API calls accepted user-supplied tenant identifiers without verifying the caller belonged to that tenant. Vertical access control passed while horizontal isolation failed entirely. The issue was publicly disclosed by UpGuard in August 2021 and Microsoft subsequently changed the default table permissions model.
Facebook's 2018 "View As" feature contained a broken access control chain: a video uploader generated access tokens scoped to the wrong user context, and those tokens granted full account access. 50 million accounts were exposed before the feature was disabled.
The financial and reputational consequences of broken access control failures are well-documented across industries. The 2025 IBM Cost of a Data Breach Report puts the average breach cost at $4.88 million, and unauthorized access to sensitive data (the most common outcome of BAC exploitation) accounts for a large share of that figure.
Regulatory exposure compounds the damage. GDPR fines can reach €20 million or 4% of global annual turnover, whichever is higher. HIPAA penalties scale up to $1.9 million per violation category per year. When access control failures expose personal health records or payment data, these penalties apply directly.
The reputational damage is harder to quantify but often more lasting. Organizations that disclose access control breaches see measurable drops in customer trust and, in publicly traded companies, stock price. Recovery timelines routinely extend beyond the breach itself.
Three patterns account for most of the business impact:
Each of these produces a different legal and technical footprint, but all three share one characteristic: the window between exploitation and detection is wide. The median time to identify a breach involving unauthorized access remains over 200 days according to IBM's research, giving attackers substantial dwell time.
Broken access control is uniquely difficult to detect because the vulnerability rarely lives in a single place. Unlike SQL injection or buffer overflows, where the flaw is a discrete coding mistake, access control failures are often distributed across multiple layers: the API gateway, the middleware, the business logic, and the database query. A scanner that checks one layer at a time will miss the interaction between them.
There are a few structural reasons detection consistently fails here.
Access control decisions are made by application code, not by HTTP or TCP. A GET request to /api/orders/8821 looks syntactically identical whether the caller owns that order or not. No network-level tool or protocol analyzer can tell the difference. The authorization decision happens inside the application, and whether that decision is made correctly depends on business rules that exist nowhere in the code explicitly.
SAST vs DAST tools parse code and look for patterns. For access control, the relevant question is not "does this function exist" but "does this function run for this request with this caller's identity." Call graphs help, but they do not capture which branches execute under which authentication context. A check may be present in one code path and entirely absent in another, and a static scan has no way to distinguish the two without running the application.
Automated test suites and manual penetration tests are bounded by the engineer's mental model of what needs protecting. The endpoints they know about get tested. Endpoints added three sprints ago by a different team, or legacy routes left active after a refactor, often go untested. OWASP's analysis of roughly 500,000 applications found broken access control in every single one, which suggests the gap is not one of effort but of coverage, consistent with Gecko's 30+ CVEs in 8 months no other AppSec tool found.
Preventing broken access control requires consistency across every layer of your application. A check that exists in the UI but not in the API, or in one service but not another, is the same as no check at all.
There are several concrete controls that reduce BAC exposure across most application architectures:
Manual code review finds access control bugs when reviewers know what to look for, but it does not scale across large codebases or catch bugs that span multiple services. Static analysis helps, but most SAST tools operate at the file level and cannot trace whether an authorization check in one service actually runs for a request that enters through a different service.
This is where the structural gap in conventional tooling matters. A file-level scanner can confirm a permission function exists. It cannot confirm that function is called for every code path that reaches a sensitive resource, especially across service boundaries or when authorization logic is injected at runtime.
Gecko Security reasons over a compiler-accurate semantic model of your codebase, tracing call chains across files and services to find paths where authorization is missing, conditional, or bypassable. Every finding comes with a working proof-of-concept, so teams can verify the issue is reachable before triaging it.
Effective broken access control testing requires going beyond automated scans. Most scanners catch obvious misconfigurations, but the logic flaws that make BAC vulnerabilities dangerous require manual analysis and a structured methodology.
Before testing anything, map out every resource and action in the application. For each endpoint, identify what roles or ownership conditions should restrict access. This inventory becomes your test matrix.
With the surface mapped, test each restriction systematically.
GET /api/users/42 is restricted, test POST, PUT, and DELETE against the same path. Authorization logic sometimes checks the resource but not the method.?user_id=me&user_id=admin) and observe which value the backend processes.X-Original-URL, X-Rewrite-URL, and X-Forwarded-For that some reverse proxy configurations use to route requests, which can override path-based access control.Automated tools catch known patterns: missing authentication headers, exposed admin routes returning 200, IDOR in predictable integer sequences. They miss everything that requires understanding intent, such as a state machine that should block re-submitting a completed order or a multi-tenant query that filters by a user-supplied tenant ID without server-side validation.
The practical split: run automated pentesting to eliminate the obvious gaps, then allocate manual review time to business logic, multi-step workflows, and any endpoint that handles cross-user data.
When reviewing code directly, the patterns that signal BAC risk are consistent across frameworks.
Broken access control is Gecko's primary detection target, and the reason is structural: traditional SAST tools see no syntactic anomaly when an authorization check is missing, so they report nothing. Gecko builds a compiler-accurate semantic graph across the entire codebase, traces call chains across service boundaries, and reasons about whether authorization logic is actually correct given what the application is supposed to do.
That methodology surfaced CVE-2025-51479 in ONYX, where a curator-role API accepted an unused user parameter that should have enforced permission scope but never did. It caught the broken access control in Cal.com's bookings endpoint, where any authenticated user could read or delete all bookings across the entire service. It identified CVE-2026-21894 in N8N, an authorization bypass that existing tooling missed entirely. Across 8 months of open-source research, Gecko uncovered 30+ CVEs in this vulnerability class. None had a syntactic signature a pattern-matching scanner could find.
Security teams auditing OWASP A01 coverage can start a scan at app.gecko.security or book time with the team at cal.com/geckosec/30min.
Broken access control sits at the top of the OWASP list because authorization logic is distributed, incremental, and easy to miss on the routes nobody remembers to test. The controls here (deny by default, server-side enforcement, indirect references, dedicated low-privilege test accounts) close the most common gaps. What they can't do is tell you which paths in your codebase skip the check entirely. Book a session with the team to see how Gecko traces those paths for you.
Broken access control is when an application fails to enforce who can take which actions on which resources, covering everything from IDOR and privilege escalation to missing function-level checks. OWASP ranks it A01 because it appeared in 100% of roughly 500,000 applications tested, making it the most common vulnerability class by a wide margin.
Traditional SAST tools parse one file at a time and match patterns against known bad code structures. A missing authorization check has no syntactic signature: there is no bad code to match, only absent code, so file-level scanners report nothing. Gecko builds a compiler-accurate semantic graph across the entire codebase, traces call chains across service boundaries, and reasons about whether authorization logic is correct given what the application is supposed to do. That is the architectural difference behind findings like CVE-2025-51479 in ONYX and the Cal.com bookings endpoint, both of which existing tooling missed entirely.
Authenticate as one user, then substitute another user's resource identifier (a user ID, account number, or document GUID) in URLs, request bodies, and headers. If the backend returns that user's data without verifying ownership, the access control check is either missing or runs only on the display layer. Extend this by testing every HTTP method on the same path; authorization logic often covers GET but leaves PUT, DELETE, or PATCH unprotected on the same resource.
Semgrep operates at the file level and cannot trace call chains across service boundaries, so an authorization check at the API gateway that never runs at the downstream data service produces no finding. Gecko's semantic graph extends across repositories and service boundaries, following execution paths into shared libraries and microservices to find exactly those gaps. For distributed architectures where the BAC vulnerability spans two or more services, Semgrep has a structural ceiling Gecko does not share.
Yes. Gecko performs static analysis on source code without requiring a running application or compiled build. It ingests API contracts (OpenAPI, protobuf, AsyncAPI), traces call chains through the codebase, and generates working proof-of-concept exploits, all before deployment. This removes the setup overhead of DAST (crawler configuration, authenticated endpoint setup, staging infrastructure) while covering deep-link workflows and error-handling branches that DAST crawlers routinely miss.
Gecko Security
The latest news, technologies, and resources from our team.
How Cal.com consolidated noisy security tooling into one continuous, context-aware pull request security program with Gecko.
Gecko Security
See what actually changed in the OWASP Top 10 for 2026, from merged SSRF and XXE categories to new supply chain risks and scanner coverage gaps.
Jeevan Jutla
Gecko Security uncovered CVE-2026-21894 in August 2026, an n8n authorization bypass with CVSS 8.8. See why static tools missed it and how to remediate it.
Jeevan Jutla
Security misconfiguration is OWASP A05 for a reason. Learn how deployment context determines exploitability and how to fix gaps in August 2026.
Jeevan Jutla
How do modern AppSec vendors actually compare? This July 2026 capability map covers SAST, DAST, SCA, business logic flaws, and cross-service
Gecko Security
Break down your AppSec stack: what SAST, DAST, SCA, IAST, and pen testing each see — and what they miss. Updated July 2026 by Gecko Security.
Gecko Security
Occasional updates, new content, and insights. No spam; unsubscribe anytime.