Description
Janus WebRTC Server before 0.16.5 and 1.4.5 contains a protected_folders check bypass in janus_is_folder_protected() that allows API clients to create recording files in protected directories on musl-based builds. Attackers can supply a recording filename or rec_dir to the VideoRoom or AudioBridge plugin to write recordings under directories like /etc or /var with Janus process privileges.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Meetecho Janus WebRTC Server
Default version status: unaffected
0 to < 0.16.5affected1.0.0 to < 1.4.5affected
pkg:github/meetecho/janus-gatewayReferences
- https://github.com/meetecho/janus-gateway/blob/v1.4.4/src/utils.c#L587-L617 ↗
- https://github.com/meetecho/janus-gateway/blob/v1.4.4/src/record.c#L208-L230 ↗
- https://github.com/meetecho/janus-gateway/pull/3739 ↗
- https://github.com/meetecho/janus-gateway/commit/f92014fedd235b09223fcb20dfacc89e9da01e23 ↗
- https://github.com/meetecho/janus-gateway/commit/ab45cf7b74e0623c9761ed9c8e7de771ba4164d0 ↗
- https://github.com/meetecho/janus-gateway/releases/tag/v1.4.5 ↗
- https://github.com/meetecho/janus-gateway/releases/tag/v0.16.5 ↗
- https://www.vulncheck.com/advisories/janus-webrtc-server-before-0.16.5-and-1.4.5-protected-folders-bypass-on-musl ↗