Skip to content

VulnScan v1.0.1 β€” security fix: lock local mode to this machine

Latest

Choose a tag to compare

@bstforom bstforom released this 19 Oct 06:02

πŸ”’ Security release: please update

Everyone running v1.0.0 should upgrade.

What was wrong

In v1.0.0, local mode (the default, with no login) listened on all network interfaces. As a result:

  • Anyone on the same network (Wi-Fi, office LAN, VM network) could open the dashboard, read reports, and launch scans from your machine, including scans of your internal network.
  • A malicious website could reach the local API through DNS rebinding, or submit a cross-site multipart form to /api/scan/file (CSRF).

What changed

  • The server now binds to 127.0.0.1 by default. Use the new HOST variable to change it.
  • VulnScan refuses to start on a non-loopback address unless REQUIRE_AUTH=1.
  • In local mode, requests whose Host is not localhost are rejected (DNS-rebinding protection), and so are state-changing requests from a foreign Origin (CSRF protection).
  • New tests cover these cases. 49 tests in total.

Upgrade

git pull
npm install
npm start

To expose VulnScan on a network on purpose, run it with authentication:

REQUIRE_AUTH=1 HOST=0.0.0.0 npm start

Full details are in the CHANGELOG.