Server Timing Information Leak

Detects Server-Timing headers that expose internal component names and timing data to clients.

zakirkun Updated

File contents

Server Timing Information Leak

Overview

The Server-Timing HTTP header exposes timing information about server-side operations to browsers. While useful for performance profiling, it can reveal:

  • Internal service names (database, cache, microservices)
  • Query execution times (aids SQL injection timing attacks)
  • Internal architecture details

Remediation

  • Remove Server-Timing headers in production
  • If needed for monitoring, limit to non-sensitive metric names
  • Restrict Server-Timing to same-origin via Timing-Allow-Origin header

zakirkun/ice-tea/tree/main/skills/web/server-timing-leak commit ee889b2d1e

Frequently asked questions

npx skillmds@latest add zakirkun/server-timing-information-leak