METHOD-001PASS
GET /users - Erlaubte Methode
Beispielanfrage
curl -X GET -H "X-API-Key: valid-key" http://localhost:8080/usersGET-Anfragen an /users sind laut OpenAPI-Spezifikation erlaubt.
12 Tests verifizieren, dass nur erlaubte HTTP-Methoden pro Endpoint akzeptiert werden.
Jeder Endpoint definiert, welche HTTP-Methoden erlaubt sind:
# openapi.yaml
paths:
/users:
get: # GET erlaubt
post: # POST erlaubt
# DELETE nicht definiert = blockiert!curl -X GET -H "X-API-Key: valid-key" http://localhost:8080/usersGET-Anfragen an /users sind laut OpenAPI-Spezifikation erlaubt.
curl -X DELETE -H "X-API-Key: valid-key" http://localhost:8080/usersHTTP/1.1 405 Method Not AllowedDELETE-Anfragen werden blockiert, wenn sie nicht explizit für diesen Endpoint definiert sind.
TRACE und andere potenziell gefährliche Methoden werden standardmäßig blockiert, um XST-Angriffe zu verhindern.