Affected by GO-2025-4040
and 1 other vulnerabilities
GO-2025-4040 : NetBird VPN does not remove the default password of an admin account in github.com/netbirdio/netbird
GO-2026-5646 : NetBird has Race Condition on UpdateUser Function, Resulting in Privilege Escalation From Admin to Owner in github.com/netbirdio/netbird
Discover Packages
github.com/netbirdio/netbird
management
server
http
middleware
package
Version:
v0.37.2
Opens a new window with list of versions in this module.
Published: Mar 7, 2025
License: BSD-3-Clause
Opens a new window with license information.
Imports: 14
Opens a new window with list of imports.
Imported by: 4 modules, 3 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
Documentation
Documentation
¶
type AccessControl struct {
}
AccessControl middleware to restrict to make POST/PUT/DELETE requests by admin only
NewAccessControl instance constructor
func (*AccessControl) Handler ¶
added in
v0.10.4
Handler method of the middleware which forbids all modify requests for non admin users
type AuthMiddleware struct {
}
AuthMiddleware middleware to verify personal access tokens (PAT) and JWT tokens
NewAuthMiddleware instance constructor
func (*AuthMiddleware) Handler ¶
added in
v0.15.0
Handler method of the middleware which authenticates a user either by JWT claims or by PAT
GetUser function defines a function to fetch user from Account by jwtclaims.AuthorizationClaims
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.