Skip to content

Commit 8a76e81

Browse files
committed
fix(security): protect skServer utility routes with auth
A route prefix mismatch registered the inputTest auth middleware for /skServer/skServer/inputTest, leaving POST /skServer/inputTest unauthenticated and letting unauthenticated callers drive the NMEA parser engines. The nodeInfo, debugKeys and paths diagnostic endpoints were also uncovered. Correct the prefix and add auth middleware for the diagnostic routes.
1 parent b251717 commit 8a76e81

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/tokensecurity.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -765,7 +765,10 @@ function tokenSecurityFactory(
765765
'/webapps',
766766
'/availablePaths',
767767
'/hasAnalyzer',
768-
'/skServer/inputTest'
768+
'/inputTest',
769+
'/nodeInfo',
770+
'/debugKeys',
771+
'/paths'
769772
].forEach((p) =>
770773
app.use(`${SERVERROUTESPREFIX}${p}`, http_authorize(false))
771774
)

0 commit comments

Comments
 (0)