Skip to content

Fix dead scan buttons: frontend event aliases + runtime_store kwarg - #232

Merged
techmore merged 1 commit into
mainfrom
fix/frontend-scan-event-aliases
Aug 22, 2026
Merged

Fix dead scan buttons: frontend event aliases + runtime_store kwarg#232
techmore merged 1 commit into
mainfrom
fix/frontend-scan-event-aliases

Conversation

@techmore

Copy link
Copy Markdown
Owner

Summary

Two functional bugs found during live end-to-end testing of the Flask webshell:

  1. Dead scan buttons: the frontend emits start_quick_scan / start_complete_scan / start_dragnet_scan, but the Flask runtime only handled a generic start_scan event — so the Quick Scan, Complete+PDF, and Dragnet buttons silently did nothing on the primary webshell. Adds handlers for all three names, routed through a shared _start_scan_core (same validation/rate-limit/job-registry path as start_scan).

  2. Every scan crashed at launch: start_scan_task rejected the runtime_store kwarg that build_scan_task_deps passes (TypeError: got an unexpected keyword argument 'runtime_store'). The wrapper now accepts and forwards it to the impl (which already supports it).

Verification

Live headless test against a running server: UI click on Quick Scan with target 127.0.0.1/32 now runs nmap -sn + the vulners deep pass, detects CVEs (e.g. CVE-2024-47850 score 7.5), records the scan in history, and updates the discovery table (quick-hosts = 1).

No new test failures vs baseline (16 pre-existing).

The frontend emits start_quick_scan / start_complete_scan /
start_dragnet_scan but the Flask runtime only handled a generic
'start_scan' — so the Quick Scan / Complete+PDF / Dragnet buttons were
dead on the primary webshell. Adds handlers for all three names routed
through a shared _start_scan_core.

Also fixes start_scan_task rejecting the runtime_store kwarg that
build_scan_task_deps passes (TypeError killed every scan at launch).

Verified live: UI click now runs nmap -sn + vulners deep pass, CVEs are
detected and recorded.
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@techmore
techmore merged commit aff8f8f into main Aug 22, 2026
1 of 3 checks passed
@techmore
techmore deleted the fix/frontend-scan-event-aliases branch August 22, 2026 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant