llamaCVEVulnerability Intelligence
/
Advisory · GitHub · npm · signalk-server

GHSA-PHW2-HP8R-HG3G

Authentication Bypass on `/skServer/inputTest` due to Route Prefix Mismatch

Texto original en inglés · Ver en español

Parche disponible
Descargar PNG JSON
CVSS 3.1
6.5
Media
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N Fuente: GitHub
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versiónPrimer parche a -1 d de la divulgación
Exposición73 dDesde la divulgación, 9 sept 2026, 12:04 a. m.
Detección72 dDesde la divulgación hasta su ingreso al índice
Decisión estimadaSeguir
Remediar en la ventana regular de mantenimiento
Estimación de Llama con el árbol SSVC de CISA a partir de vector CVSS 3.1 y la evidencia de explotación (sin evaluación oficial): sin explotación conocida, automatizable e impacto técnico parcial. Hay versiones corregidas disponibles.
Para el próximo sprint, sin estrés.Tranqui, va para la ventana de mantenimiento.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Explotación
Remediación
Parche 2.32.0
Monitoreo
Detectada +1
8 sept 26
9 sept 26
20 nov 26
21 nov 26
8 sept 26
26 sept 26
15 oct 26
3 nov 26
21 nov 26
FechaFaseEventoDetalle
Remediación Parche 2.32.0 signalk-server · -1 d desde divulgación
Divulgación Publicada GHSA-PHW2-HP8R-HG3G divulgada · CVSS 6.5 (GitHub)
Monitoreo Detectada Ingresó al índice
Monitoreo Verificada Última verificación contra las fuentes
Resumen
Descripción del advisory
Texto original · GitHub · en inglés
Summary

A route prefix mismatch in `src/tokensecurity.ts` causes the `http_authorize` middleware to be registered for
`/skServer/skServer/inputTest` instead of `/skServer/inputTest`. As a result, the `POST /skServer/inputTest`
endpoint remains unprotected by authentication middleware.

### Details

In `src/tokensecurity.ts` (introduced during the refactoring in commit `287b15ed`):
```typescript
const SERVERROUTESPREFIX = '/skServer'

;[
'/apps',
...
'/hasAnalyzer',
'/skServer/inputTest' // <-- Redundant prefix
].forEach((p) =>
app.use(`${SERVERROUTESPREFIX}${p}`, http_authorize(false))
)

Because ${SERVERROUTESPREFIX} (/skServer) is prepended to each element, the route is registered as
/skServer/skServer/inputTest.

However, src/interfaces/playground.js registers the route as:

app.post(`${serverRoutesPrefix}/inputTest`, (req, res) => { ... })

Consequently, POST /skServer/inputTest is never guarded by http_authorize(false). Furthermore, when a request is
sent without sendToServer or sendToN2K (or set to false), the inner allowConfigure authorization check is bypassed:

if (
(sendToServer || sendToN2K) &&
!app.securityStrategy.isDummy() &&
!app.securityStrategy.allowConfigure(req)
) {
res.status(400).json({ error: 'permission denied' })
return
}

This allows unauthenticated remote callers to execute the underlying NMEA parser engines without any credentials.

Additionally, diagnostic endpoints in src/serverroutes.ts (/skServer/nodeInfo, /skServer/debugKeys, and
/skServer/paths) lack authentication middleware coverage.

Steps to Reproduce

Even when security is enabled on the server, send a request without any authentication tokens:

curl -X POST http://localhost:3000/skServer/inputTest \
-H "Content-Type: application/json" \
-d '{"value": "$GPGGA,123519,4807.038,N,01131.000,E,1,08,0.9,545.4,M,46.9,M,,*47", "sendToServer": false}'

• Expected behavior: Returns 401 Unauthorized.
• Actual behavior: Returns 200 OK with parsed delta payload without requiring any authentication.

Impact

• Unauthenticated access to the /skServer/inputTest parser endpoint.
• Unauthenticated exposure of system diagnostics and registered metadata paths.

Proposed Fix

Remove the redundant prefix in src/tokensecurity.ts and add the unprotected diagnostic routes:

--- a/src/tokensecurity.ts
+++ b/src/tokensecurity.ts
@@ -771,7 +771,10 @@ function tokenSecurityFactory(
'/webapps',
'/availablePaths',
'/hasAnalyzer',
- '/skServer/inputTest'
+ '/inputTest',
+ '/nodeInfo',
+ '/debugKeys',
+ '/paths'
].forEach((p) =>
app.use(`${SERVERROUTESPREFIX}${p}`, http_authorize(false))
)

Vector CVSS 3.1

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · GitHub
Vector de ataqueAV:N
RedAdyacenteLocalFísica
ComplejidadAC:L
BajaAlta
PrivilegiosPR:N
NingunoBajosAltos
InteracciónUI:N
NingunaRequerida
AlcanceS:U
CambiadoSin cambio
ConfidencialidadC:L
AltoBajoNinguno
IntegridadI:L
AltoBajoNinguno
DisponibilidadA:N
AltoBajoNinguno
Score de explotaciónQué tan fácil y probable es que la exploten
10.0/ 10Muy alto
Vector 10.0 (muy fácil) · sin evidencia de explotación.
Versiones

Rangos afectados

Afectada Corregida Última
signalk-server≤ 2.31.1
2.31.1
2.37.0
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
npmsignalk-server
Corregida 2.32.0 -1 d 2.37.0 no afectada
Versiones corregidas2.32.0
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Advisoryhttps://github.com/SignalK/signalk-server/security/advisories/GHSA-phw2-hp8r-hg3g

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.