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

web-application-security

/web-application-security

Przegląda kontrole bezpieczeństwa aplikacji webowych względem zagrożeń OWASP, gdy przetwarzają dane użytkownika, sesje i dostęp.

Repozytorium
prodsec-skills ↗
Licencja
Apache-2.0
Ostatnia zmiana repozytorium
15.07.2026

Ocena i bezpieczeństwo

90/ 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ść25 / 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
5
Przestarzałość

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

Licencja

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

Co robi i kiedy

Przegląda kontrole bezpieczeństwa aplikacji webowych względem zagrożeń OWASP, gdy przetwarzają dane użytkownika, sesje i dostęp.

Oryginalny opis (EN)

Review web application security controls against OWASP-aligned risks. Use when building, auditing, or reviewing server-side web applications that handle user input, sessions, authentication, or access control.

Jak działa

  1. Vulnerability Classes
  2. Security Requirements
  3. Implementation Checklist
  4. References
Sekcje z nagłówków SKILL.md, w oryginale · 92 linii, 545 słów
Podgląd SKILL.md
---
name: web-application-security
description: >
  Review web application security controls against OWASP-aligned risks. Use
  when building, auditing, or reviewing server-side web applications that
  handle user input, sessions, authentication, or access control.
metadata:
  category: secure_development
  subcategory: web-security
---

# Web Application Security

## Vulnerability Classes

| Category | Threats |
|---|---|
| **Input validation** | Command injection, SQL injection, Cross-Site Scripting (XSS) |
| **Upload handling** | Local File Inclusion (LFI), Remote File Inclusion (RFI) |
| **Session management** | Man-in-the-Middle (MITM), session fixation, session hijacking |
| **Data exposure** | Cleartext data theft, insecure storage, cache leaks |
| **Authentication** | Credential stuffing, brute force, account enumeration |
| **Access control** | Privilege escalation, IDOR, missing function-level checks |

## Security Requirements

### Server-Side Controls

All security controls MUST be implemented server-side. Client-side validation is a UX convenience, not a security boundary. This applies to:

- Input validation and sanitization
- Upload type and size restrictions
- Authentication and session management
- Authorization decisions

### Network-Level Protections

- Deploy a Web Application Firewall (WAF) in front of public-facing applications where feasible
- Enable DDoS protection on Internet-facing endpoints
- Terminate TLS at the edge; enforce HTTPS end-to-end

### CORS

- Configure Cross-Origin Resource Sharing to allow only known, explicitly listed origins
- Never use wildcard (`*`) origins on endpoints that accept credentials
- Validate the `Origin` header server-side before reflecting it

### CSRF Protection

- Enable framework-provided CSRF token mechanisms (e.g., Django CSRF middleware, Spring CSRF, Rails `protect_from_forgery`)
- Use `SameSite` cookie attributes as a defense-in-depth layer
- Verify tokens on every state-changing request

### Session Management

- Generate a new session ID after successful authentication (prevent session fixation)
- Never expose session IDs in URLs
- Store session tokens in secure, HttpOnly, SameSite cookies
- Invalidate sessions on logout, idle timeout, and absolute timeout
- Bind sessions to client fingerprint where feasible (IP, User-Agent)

### Sensitive Data Handling

- Encrypt sensitive data in transit (TLS 1.2+) and at rest
- Do not store sensitive data longer than necessary
- Disable caching for responses containing sensitive data (`Cache-Control: no-store`)
- Never log passwords, tokens, or PII

### Authentication Hardening

- Implement multi-factor authentication for privileged or Internet-facing accounts
- Use uniform error responses for login, registration, and credential recovery to prevent account enumeration (e.g., "Invalid credentials" regardless of whether the username exists)
- Enforce account lockout or progressive delays after repeated authentication failures

### Access Control

- Adopt least-privilege and deny-by-default for every request
- Route all requests through a centralized access-control verification layer
- Enforce authorization on direct object references; never rely on obscurity of IDs
- Re-validate privileges on long-lived sessions

## Implementation Checklist

- [ ] All validation and authorization logic runs server-side
- [ ] WAF or equivalent network protection is in place for public endpoints
- [ ] CORS whitelist is explicit (no wildcard with credentials)
- [ ] CSRF tokens are validated on every state-changing request
- [ ] Session IDs rotate after authentication
- [ ] Sessions are invalidated on logout and timeout
- [ ] Sensitive data responses set `Cache-Control: no-store`
- [ ] MFA is available for Internet-facing authentication
- [ ] Login/registration/recovery responses are uniform (no enumeration)
- [ ] Every request passes through centralized access-control checks

## References

- [OWASP Input Validation Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Input_Validation_Cheat_Sheet.html)
- [OWASP CSRF Prevention Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Cross-Site_Request_Forgery_Prevention_Cheat_Sheet.html)
- [OWASP Transport Layer Security Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Transport_Layer_Security_Cheat_Sheet.html)
- [OWASP Proactive Controls: Protect Data Everywhere](https://owasp.org/www-project-proactive-controls/v3/en/c8-protect-data-everywhere)
- [OWASP Proactive Controls: Enforce Access Controls](https://owasp.org/www-project-proactive-controls/v3/en/c7-enforce-access-controls)

Wersje

W bazie nie ma innych skilli o nazwie web-application-security.

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

Pobrania w ostatnich 30 dniach: 1 · ranking

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

Podobne skille

  • 90web-security-review
    Przegląda aplikacje webowe względem OWASP Top 10 (2021) w audytach kodu po stronie serwera.
  • 100backend-security
    Opisuje reguły bezpieczeństwa aplikacji webowych według OWASP: uwierzytelnianie, sesje, dane wejściowe, pliki, sekrety, nagłówki i CORS.
  • 90Web Security
    Stosuje profesjonalne standardy bezpieczeństwa w aplikacjach webowych: uwierzytelnianie, autoryzacja, dane wejściowe, API, sesje, sekrety i płatności, z OWASP Top 10 2025 i przeglądem kodu.
  • 100security-basics
    Podaje listę kontrolną i wzorce bezpieczeństwa aplikacji webowych: OWASP Top 10, walidacja wejścia, uwierzytelnianie i bezpieczne kodowanie, przy przeglądach i utwardzaniu.
  • 100checking-owasp-compliance
    Sprawdza zgodność z OWASP Top 10 i dobrymi praktykami bezpieczeństwa przy audytach bezpieczeństwa aplikacji webowych.
  • 100checking-owasp-compliance
    Sprawdza zgodność z OWASP Top 10 i dobrymi praktykami bezpieczeństwa przy audytach bezpieczeństwa aplikacji webowych.

Uwagi i zgłoszenia

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