Skip to content

v2.13.1

Choose a tag to compare

@hahwul hahwul released this 23 Nov 15:26
deef419

Maintenance release for the v2 line. v3 is the current release; this one only fixes dalfox server on v2.

Security: server mode

dalfox server used to listen on 0.0.0.0 with no API key. Anyone who could reach the port could start scans against internal hosts and read the responses back. This release:

  • binds to 127.0.0.1 by default, and warns at startup when bound elsewhere without --api-key
  • without an API key:
    • rejects cross-site browser requests and DNS-rebound Host names (new --allowed-hosts for extra names)
    • drops raw request/response output from scan results
    • trims evidence to line numbers and the payload
  • enforces --api-key whatever --type says
  • ignores cookie-from-raw (a server-side file path) from API callers, and keeps worker, timeout, delay and trigger in range
  • fixes several inputs that could stop the server process

Breaking changes

  • To reach the server from another machine or from outside a container, pass --host 0.0.0.0, and set --api-key.
  • Without an API key, clients that address the server by a hostname other than localhost or --host need --allowed-hosts.
  • POST /scan requires Content-Type: application/json.

Install

go install github.com/hahwul/dalfox/v2@v2.13.1
docker pull hahwul/dalfox:v2.13.1   # or ghcr.io/hahwul/dalfox:v2.13.1

latest tags stay on v3.

Full changes: #1804, #1805, #1806