Intent-Code Divergence
Medium
- Confidence
- 97% confidence
- Finding
- The inline Java example directly maps the HTTP request path to a filesystem path using `Path.of("." + exchange.getRequestURI().getPath())` and reads it without validation, normalization, existence checks, or confinement to an intended document root. This allows path traversal and arbitrary file reads relative to the process's working directory, which is more dangerous because the surrounding documentation presents it as a simple static server example that users may copy into real environments.
