Przejdź do treści
Biblioteka skilli
Bezpieczeństwo · Testowanie

api-authorization-testing

/api-authorization-testing

Testuje autoryzację API w autoryzowanych środowiskach: dostęp do cudzych obiektów, funkcji i właściwości oraz izolację najemców, z macierzą testów.

Repozytorium
Claude-Blue ↗
Licencja
MIT
Ostatnia zmiana repozytorium
01.11.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
4
Przestarzałość

Brak sygnałów. Repozytorium zmienione 01.11.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

Testuje autoryzację API w autoryzowanych środowiskach: dostęp do cudzych obiektów, funkcji i właściwości oraz izolację najemców, z macierzą testów.

Oryginalny opis (EN)

Test API authorization defensively — broken object-level authorization (BOLA/IDOR), broken function-level authorization, broken object property level authorization (mass assignment, excessive data exposure) and tenant isolation — with multi-user test matrices in authorized environments. Use when validating an API before release, investigating a suspected IDOR, or building automated authorization regression tests.

Jak działa

  1. Test setup (staging or authorized test tenant)
  2. Test matrix
  3. Fix guidance
  4. Safety
  5. Related skills
  6. References
Sekcje z nagłówków SKILL.md, w oryginale · 47 linii, 346 słów
Podgląd SKILL.md
---
name: api-authorization-testing
description: Test API authorization defensively — broken object-level authorization (BOLA/IDOR), broken function-level authorization, broken object property level authorization (mass assignment, excessive data exposure) and tenant isolation — with multi-user test matrices in authorized environments. Use when validating an API before release, investigating a suspected IDOR, or building automated authorization regression tests.
license: MIT
metadata:
  category: api-security
  version: "2.0.0"
  verification: documented
---

# API Authorization Testing

OWASP API Top 10 2023: API1 BOLA, API3 Broken Object Property Level Authorization, API5 Broken Function Level Authorization — the most common serious API flaws.

## Test setup (staging or authorized test tenant)

- At least two users per role in **two different tenants**: `userA@tenant1`, `userB@tenant1`, `userC@tenant2`, plus an admin and an unauthenticated client.
- Objects owned by each user (orders, documents, profiles).
- Capture requests from the app/spec (Burp/ZAP proxy, OpenAPI).

## Test matrix

| Test | Method | Expected |
|---|---|---|
| BOLA | Replay `GET/PUT/DELETE /orders/{idOfUserA}` with userB and userC tokens | 403/404, no data, logged |
| ID guessability | Are IDs sequential? UUIDs don't fix BOLA but reduce enumeration | Authorization still enforced |
| Function level | Call admin endpoints (`/admin/*`, `POST /users/{id}/roles`) with user token; try HTTP method switching (GET→DELETE) | 403 |
| Mass assignment | Add fields to updates (`"role":"admin"`, `"tenantId":"other"`, `"price":0`, `"isVerified":true`) | Ignored or rejected |
| Excessive data exposure | Inspect responses for fields not shown in UI (password hashes, tokens, other users' PII) | Only necessary fields |
| Tenant isolation | Use tenant-scoped IDs across tenants; filter params (`?tenant=`) manipulation | Denied |
| GraphQL | Query objects by ID via nested resolvers; introspection in prod | Per-resolver authorization |

Example with curl:
```sh
curl -s -H "Authorization: Bearer $TOKEN_USER_B" https://staging.example.com/api/v2/orders/1001 -o /dev/null -w '%{http_code}\n'
```
Automate as integration tests in CI (parametrized over user × object × endpoint) so regressions are caught.

## Fix guidance

Enforce authorization in a central layer using the authenticated principal (never IDs from the client to determine ownership), deny by default, response DTO allow-lists, schema validation rejecting unknown fields.

## Safety

Only in environments and accounts you are authorized to test; do not access real customer data — if a production IDOR is found during incident work, stop, record minimal evidence, and escalate.

## Related skills

`api-schema-security`, `secure-code-review`, `dast-baseline`, `api-abuse-detection`

## References

- OWASP API Security Top 10 2023: https://owasp.org/API-Security/editions/2023/en/0x11-t10/
- OWASP Authorization Cheat Sheet: https://cheatsheetseries.owasp.org/cheatsheets/Authorization_Cheat_Sheet.html
- OWASP WSTG Authorization Testing: https://owasp.org/www-project-web-security-testing-guide/

Wersje

W bazie nie ma innych skilli o nazwie api-authorization-testing.

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

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100api-access-control
    Wykrywa i naprawia problemy z dostępem do obiektów i najemców w API: dostęp między użytkownikami, IDOR, mass assignment i słabą izolację.
  • 100detecting-broken-object-property-level-authorization
    Testuje API pod kątem błędnej autoryzacji na poziomie właściwości obiektu, czyli nadmiernego ujawniania danych i masowego przypisania pól.
  • 100api-audit
    Sprawdza API REST, GraphQL i RPC pod kątem OWASP API Security Top 10 2023: uwierzytelnianie, autoryzację, limity i ekspozycję danych.
  • 90api-authz-test
    Opisuje ogólne zasady przeglądu kontroli dostępu w API w ramach autoryzowanego audytu, bez szczegółów technik.
  • 90multi-tenant-security
    Weryfikuje izolację najemców w SaaS: wykrywa IDOR i BOLA, zapytania między najemcami, wycieki w cache, zadaniach i eksportach.
  • 98detecting-api-enumeration-attacks
    Pisze reguły SIEM, które wykrywają wyliczanie identyfikatorów API (BOLA i IDOR) w logach bramy i WAF, i wzmacnia logowanie oraz limity.

Uwagi i zgłoszenia

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