Headless Browser: Port Scanning

OtherExploitation

From PayloadsAllTheThings by Swissky and contributors, under the MIT licence. Shown as written; the title and classification are ours. Licences. Its authors can have this tip removed by writing to abuse@bugbountytips.org.

Port Scanning: Timing attack

  • Dynamically insert an <img> tag pointing to a hypothetical closed port. Measure time to onerror.

  • Repeat at least 10 times → average time to get an error for a closed port

  • Test random port 10 times and measure time to error

  • If time_to_error(random_port) > time_to_error(closed_port)*1.3 → port is opened

Consideration:

  • Chrome blocks by default a list of "known ports"

  • Chrome blocks access to local network addresses except localhost through 0.0.0.0

Comments

No comments yet.