Skip to content

Reject malformed passagestudy URLs#1333

Merged
karlkleinpaste merged 1 commit into
crosswire:masterfrom
hyder365:fix-dbus-malformed-reference-dos
Jun 23, 2026
Merged

Reject malformed passagestudy URLs#1333
karlkleinpaste merged 1 commit into
crosswire:masterfrom
hyder365:fix-dbus-malformed-reference-dos

Conversation

@hyder365

Copy link
Copy Markdown
Contributor

Malformed passagestudy.jsp URLs can reach main_url_handler() from remote-control paths such as D-Bus. If required query parameters are missing, the dispatcher can pass null values to strcmp() or action handlers.

This change validates the action and required parameters before dispatch, returns failure for malformed action URLs, and avoids dereferencing a missing module entry for user-note previews.

Validate passagestudy.jsp action parameters before dispatching them. This prevents malformed D-Bus setCurrentReference input from reaching strcmp or action handlers with null parameters.
@karlkleinpaste karlkleinpaste merged commit 30d9b9d into crosswire:master Jun 23, 2026
7 checks passed
@karlkleinpaste

Copy link
Copy Markdown
Contributor

Again, much appreciation for your analysis and fixes.

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.

2 participants