Skip to content

Require auth for runtime status/log endpoints when bound beyond localhost #157

@techmore

Description

@techmore

Problem\nSeveral runtime endpoints return operational data without auth (status, settings summary, logs). If NMAPUI_HOST is set to 0.0.0.0 or otherwise exposed, these endpoints can leak operational details without credentials.\n\n## Evidence\n- /api/runtime/status, /api/runtime/settings-summary, /api/runtime/logs are not protected by require_auth (nmapui/handlers/routes.py).\n\n## Proposed Fix\n- Enforce require_auth on runtime endpoints whenever request_is_local_ui() is false.\n- Optionally gate with a config flag to keep local-only UX friction low.\n- Add explicit tests for unauthorized access when binding to non-loopback interfaces.\n\n## Notes\nThis aligns with the existing authentication model and avoids exposing runtime logs and configuration summaries to the network.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions