Repository navigation
ONI-Ops v0.4.8-beta
Pre-release
Pre-release
ONI-Ops v0.4.8-beta — pre-release (beta)
Security fixes, authenticated target sessions, and an easier install/deploy.
Beta software for authorized security testing only; see DISCLAIMER.md and NOTICE.
Security
- Reverse-proxy identity header could be forged. The web UI runs behind
Werkzeug's ProxyFix, which rewrites REMOTE_ADDR from X-Forwarded-For. In
auth.mode: proxy the trusted-proxy check compared that rewritten value, so a
client able to reach the port directly could send X-Forwarded-For set to the
trusted proxy plus the identity header and authenticate as any user. The check
now validates the real socket peer, not the forgeable header. - Running
python webui.pydirectly started the unhardened Flask dev server and
skipped the startup security check. The entry point now routes through
oni.server.main() (Waitress plus the exposure/auth checks), same as
python -m oni.
Added
- Authenticated target sessions with refresh. A target_auth config block logs in
to a target per role (primary/low_priv/peer): json_login (token APIs such as
VAmPI and Juice Shop) or form_login (form logins such as DVWA). A role's
session is re-minted and the request retried once on a 401/403, so short-lived
tokens (for example VAmPI's ~60s JWTs) no longer collapse the access-control
differential into anonymous requests. Credentials are referenced only as
${ENV_VAR} and never reach findings, logs or reports. See docs/TARGET_AUTH.md. - One-command install (scripts/install.sh): creates a virtualenv, installs
ONI-Ops, seeds config.yaml/.env from the examples without overwriting them, and
generates a random ONI_SECRET_KEY when missing. Idempotent. - Public-app benchmark harness:
oni benchmark --suite <crapi|juice_shop|vampi> --target <ip>scores an assessment against labeled known bugs. Only verified
findings count; precision is a range until untriaged findings are classified.
Fixed
- The web UI now honours ONI_DB_PATH, so it uses the same ledger as the CLI.
- Browser discovery redacts bare jwt/bearer/credential query values and pins the
start host to its scope-validated IP at launch, closing the DNS re-resolution
window between the scope check and navigation. - The labeled-benchmark scorer only lets a VERIFIED finding satisfy a label, so
an unverified match stays visible for triage and false-positive accounting. - AWS region validation accepts GovCloud, China and ISO partition names.
Changed
- Easier, safer install and deploy: the Docker image ships playbooks/ and curl;
the worker image ships katana and a wordlist; Docker Compose requires a login;
the systemd unit runs as a dedicated non-root user from /opt/oni; the Proxmox
LXC script points at the real repository; known_hosts defaults to the writable
data directory. CLI:oni assessrejects an unknown profile instead of
silently starting the autonomous loop, commands print clean errors instead of
tracebacks, andoni doctor --check-runnerfails when the runner is
unreachable.
Upgrade note
- No config change is required. To use authenticated target sessions, add a
target_auth block (see docs/TARGET_AUTH.md) and set the referenced ${ENV_VAR}
credentials in your environment.