direct-origin-consistency-check
/direct-origin-consistency-check
Compare authorization enforcement on the public origin with direct-to-origin or alternate paths that skip the edge, so bypassing the proxy does not bypass the check. Use when a load balancer, gateway or proxy sits in front of the application and the app can also answer on its own address, other ports or an internal origin
- Author
- Wsh7Ash ↗
- Repository
- authzmap ↗
- Licence
- MIT
- Last repository change
- 28.10.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 2
No signals detected. Repository changed on 28.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Compare authorization enforcement on the public origin with direct-to-origin or alternate paths that skip the edge, so bypassing the proxy does not bypass the check. Use when a load balancer, gateway or proxy sits in front of the application and the app can also answer on its own address, other ports or an internal origin
Original author description
Compare authorization enforcement on the public origin with direct-to-origin or alternate paths that skip the edge, so bypassing the proxy does not bypass the check. Use when a load balancer, gateway or proxy sits in front of the application and the app can also answer on its own address, other ports or an internal origin
How it works
- Procedure
- Signals
- Patterns
- Pitfalls
- Done when
- References
SKILL.md preview
--- name: direct-origin-consistency-check description: "Compare authorization enforcement on the public origin with direct-to-origin or alternate paths that skip the edge, so bypassing the proxy does not bypass the check. Use when a load balancer, gateway or proxy sits in front of the application and the app can also answer on its own address, other ports or an internal origin" pack: authzmap version: 1.0.0 category: api-security tags: [origin, bypass, consistency] --- # Direct-Origin Consistency Check > Compare authorization enforcement on the public origin with direct-to-origin or alternate paths that skip the edge, so bypassing the proxy does not bypass the check **Use when:** a load balancer, gateway or proxy sits in front of the application and the app can also answer on its own address, other ports or an internal origin **Avoid when:** the application has no directly reachable alternate origin at all, and frontend handling proven by routes table makes one dispersive surface only ## Procedure 1. Identify every address the application will answer: origin IP, alternate ports, internal DNS names and preview or admin hostnames. 2. Send the same authorized and forbidden requests through the public edge and the direct surface, recording the pairing. 3. Diff authorization behavior, since a gateway makes a final permit call for one surface while the app re-decides on the other. 4. Check host-header handling on the direct surface, as alternate-handler routing often relies on the host value the edge normally sets. 5. Record header sets a direct surface accepts, such as forwarded-for hosts and internal path markers the edge usually rejects. 6. Verify encryption, identity and authentication rules match on the direct surface, and note any refactor where they do not. ## Signals - Direct-to-origin calls answer with even less permission enforcement than the public edge typically applies to the same request. - Internal-specific handlers like debug, metrics or docs endpoints are directly reachable but filtered at the edge. - Edge-based auth middleware is removed or highly varied when the request arrives on another port or via an internal name. - Cross-origin rules like origin allowlists are enforced in the gateway yet wrongly ignored on the direct surface. ## Patterns **1. Origin pair** ```text through-edge: /api/admin -> 403 origin-pair: /api/admin -> 200 -> edge check only ``` **2. Header probe** ```text direct: Host=main-app -> KeyError? app-to-direct-dispatch handling must independent of on edge headers ``` **3. Result row** ```text surface=origin-direct endpoints=1 same=0 role-check-missing=yes admin-endpoint=reachable-200 ``` ## Pitfalls - Assuming gateway coverage automatically covers direct origins, when the app answers before the gateway since it also runs unfiltered. - Confusing reachability with unsafe behavior, then flagging endpoints that were in fact correctly refusing on direct paths. - Reporting the discrepancy without ruling internal-use-only designs, where an origin surface was left open deliberately and they cite it. ## Done when - Every reachable origin variant is enumerated with pairing tested for the operations that surface exposed. - Direct surfaces that bypass authorizations are confirmed with the exact requests showing different permission outcomes. ## References - [OWASP - authentication and routed origins](https://cheatsheetseries.owasp.org/) - [OWASP API Security Top 10](https://owasp.org/www-project-api-security/)
Versions
The database has no other skills named direct-origin-consistency-check.
Database snapshot: 13.11.2026 · package version 34bdb3574ad6 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Similar skills
- 100origin-exposure-lockdown
Restrict direct access to origin infrastructure so the edge remains the only way in, restoring the value of every control the edge is expected to enforce. Use when an origin address was discovered or confirmed during detection and the owner can apply an access restriction - 90origin-api
Routes questions about the Cursor Origin API to the right section of the Origin docs and names the few rules to check first. Use when a task mentions Origin, the Origin API, Origin Apps, or Origin webhooks, including creating an Origin App, authenticating as one, calling Origin… - 90port-github-app-to-origin
Plans the port of an existing GitHub App to a Cursor Origin App. Use when the task is to bring a GitHub App to Origin or compare what it uses against the Origin API. Reads the app's needs out of its code, maps them onto the live Origin spec, and writes a porting brief with… - 90cdn-strategy
Push work to the edge so requests never touch your origin, using cache headers, invalidation, and origin shielding. Use when origin load is high, global latency is uneven, or a CDN sits in front of your app but barely caches.