Przejdź do treści
Biblioteka skilli
Bezpieczeństwo · Przegląd i audyt

direct-origin-consistency-check

/direct-origin-consistency-check

Porównuje egzekwowanie autoryzacji na publicznym adresie z bezpośrednimi ścieżkami omijającymi proxy, by obejście bramki nie omijało kontroli.

Repozytorium
authzmap ↗
Licencja
MIT
Ostatnia zmiana repozytorium
28.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
2
Przestarzałość

Brak sygnałów. Repozytorium zmienione 28.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Porównuje egzekwowanie autoryzacji na publicznym adresie z bezpośrednimi ścieżkami omijającymi proxy, by obejście bramki nie omijało kontroli.

Oryginalny opis (EN)

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

Jak działa

  1. Procedure
  2. Signals
  3. Patterns
  4. Pitfalls
  5. Done when
  6. References
Sekcje z nagłówków SKILL.md, w oryginale · 62 linii, 441 słów
Podgląd SKILL.md
---
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/)

Wersje

W bazie nie ma innych skilli o nazwie direct-origin-consistency-check.

Migawka bazy z 13.11.2026 · wersja paczki 34bdb3574ad6 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100origin-exposure-lockdown
    Ogranicza bezpośredni dostęp do infrastruktury źródłowej, tak aby jedynym wejściem była brama, gdy adres źródła został wykryty.
  • 90origin-api
    Kieruje pytania o API Cursor Origin do właściwych sekcji dokumentacji i wskazuje kilka reguł do sprawdzenia najpierw.
  • 90port-github-app-to-origin
    Planuje przeniesienie aplikacji GitHub do Cursor Origin App: odczytuje z kodu jej potrzeby, mapuje je na API Origin i przygotowuje brief.
  • 90cdn-strategy
    Przenosi pracę na brzeg sieci, żeby żądania nie dochodziły do origin, z nagłówkami cache, unieważnianiem i origin shieldingiem, gdy obciążenie origin jest wysokie lub CDN prawie nie cache'uje.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.