Repository navigation
v2.13.1
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.1by default, and warns at startup when bound elsewhere without--api-key - without an API key:
- rejects cross-site browser requests and DNS-rebound
Hostnames (new--allowed-hostsfor extra names) - drops raw request/response output from scan results
- trims
evidenceto line numbers and the payload
- rejects cross-site browser requests and DNS-rebound
- enforces
--api-keywhatever--typesays - ignores
cookie-from-raw(a server-side file path) from API callers, and keepsworker,timeout,delayandtriggerin 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
localhostor--hostneed--allowed-hosts. POST /scanrequiresContent-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.