Signal Kサーバーにパストラバーサルの脆弱性、認証なしで管理者権限を奪われるおそれ
Summary
Signal Kサーバーのリソース用APIにパストラバーサルの脆弱性があり、認証のない攻撃者が任意のファイルを読み書きできるおそれがあります。署名用の秘密鍵が漏れると管理者トークンを偽造され、遠隔からプログラムを実行される可能性があります。影響はsignalk-serverの2.34.0より前とresources-providerの1.5.3より前で、修正版は2.34.0と1.5.3です。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
Signal Kサーバーのリソース用APIにパストラバーサルの脆弱性があり、認証のない攻撃者が任意のファイルを読み書きできるおそれがあります。署名用の秘密鍵が漏れると管理者トークンを偽造され、遠隔からプログラムを実行される可能性があります。影響はsignalk-serverの2.34.0より前とresources-providerの1.5.3より前で、修正版は2.34.0と1.5.3です。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| npmsignalk-server |
≥ 2.0.0, < 2.34.0→ 2.34.0 |
2.34.0 |
| npm@signalk/resources-provider |
≥ 1.0.0, < 1.5.3→ 1.5.3 |
1.5.3 |
| SignalKsignalk-server | — | Not listed |
| @signalkresources-provider | — | Not listed |
Original description The description as published by the source.
Signal K Server is a server application that runs on a central hub in a boat. From 2.0.0 until 2.34.0 for Signal K Server and from 1.0.0 until 1.5.3 for @signalk/resources-provider, the v2 REST route GET /signalk/v2/api/resources/:resourceType/:resourceId accepts an unsafe resourceId that can escape the intended resource directory. The route passes the attacker-controlled resourceId through src/api/resources/index.ts to FileStore.getResource() in packages/resources-provider-plugin/src/filestorage.ts without adequate path containment, allowing arbitrary JSON files reachable by the server to be read. Related PUT and DELETE resource operations can write or delete files outside the storage root. Deployments with allow_readonly enabled permit anonymous reads, while other deployments require a readonly user token. Reading security.json exposes the HS256 JWT signing secret and password hashes, allowing an attacker to forge an administrator token. Administrative access to POST /skServer/providers can then create an Execute provider that runs commands with the server process privileges and persists its configuration across restarts. This issue is fixed in Signal K Server 2.34.0 and @signalk/resources-provider 1.5.3.
Source: GitHub Security Advisories (Global) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- patch github.com
- web github.com
- web github.com