Skip to content

Fix scanner/http/trace to handle missing database gracefully#21374

Open
kuro-toji wants to merge 1 commit intorapid7:masterfrom
kuro-toji:fix/scanner-http-trace-report-vuln
Open

Fix scanner/http/trace to handle missing database gracefully#21374
kuro-toji wants to merge 1 commit intorapid7:masterfrom
kuro-toji:fix/scanner-http-trace-report-vuln

Conversation

@kuro-toji
Copy link
Copy Markdown

Description

The scanner/http/trace module was failing with Msf::ValidationError when trying to report a vulnerability to the database when no database connection was available. This fix adds an active_db? check before calling report_vuln.

Changes

  • modules/auxiliary/scanner/http/trace.rb: Added active_db? check before report_vuln call to gracefully handle missing database connection.

Fixes #21296

The module was failing with Msf::ValidationError when trying to report a
vulnerability to the database when no database connection was available.
This fix adds an active_db? check before calling report_vuln.

Fixes rapid7#21296
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

scanner/http/trace - Failed to report vuln

2 participants