ctf.nitaimaarek.com Learn Leaderboard Log in Sign up

Learn / Network / Authorization headers / Grab an API key header

Grab an API key header

Practitioner 20 pts

Goal: Read the API key a service call leaks in a custom request header.

Capture it yourself — real traffic

  1. Open Wireshark on your active interface and start a capture. Display filter for this level: http.request. No GUI? sudo tcpdump -i any -w cap.pcap port 9080.
  2. Open the plaintext lab and click Generate traffic once.
  3. Stop the capture. The secret is in the X-API-Key header on the /api/data request. Expand the request headers and read the custom X-API-Key: value.

Open the plaintext lab (:9080) →

Genuinely unencrypted — the secret exists only on the wire, never on the page.

Hints

Open in order — they nudge, not solve.

Hint 1

Find the request to /api/data (filter http.request).

Hint 2

Expand the request headers and look for the non-standard one — X-API-Key:.

Hint 3

Its value (APIKEY-…) is the answer.

Log in or sign up to submit your answer and save progress.

← Roadmap Skip for now →