fix(security): secure unauthenticated NZBDav import endpoints#317
Merged
javi11 merged 14 commits intojavi11:mainfrom Feb 23, 2026
Merged
fix(security): secure unauthenticated NZBDav import endpoints#317javi11 merged 14 commits intojavi11:mainfrom
javi11 merged 14 commits intojavi11:mainfrom
Conversation
- increase base font sizes and restore table header legibility - increase touch target sizes for buttons and checkboxes - fix layout padding and wrapping issues on mobile - add mobile navbar logo & configuration shortcut - enhance config panels with higher border and background contrast
…rtcuts instead of complete dir
Moved the NZBDav import endpoints behind the global JWT authentication middleware to prevent unauthenticated access. Previously, these endpoints (status, reset, import, cancel) were publicly accessible, allowing unauthorized users to trigger imports or view import status. The manual file import and Arrs webhook endpoints remain outside the JWT middleware as they implement their own API key verification logic.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR addresses a security vulnerability where the NZBDav import endpoints were accessible without authentication.
Changes
internal/api/server.go:POST /api/import/nzbdavPOST /api/import/nzbdav/resetGET /api/import/nzbdav/statusDELETE /api/import/nzbdavSecurity Impact
Verification
401 Unauthorized.