Last video frame is still sent after video is disabled in a call
When a participant disables their video during a call, the last captured frame continues to be sent to other participants instead of a black frame. An attacker in the call could access this frame by manipulating the received media track in the browser console.
Originally disclosed on HackerOne
- Triaged in 40 hours
- Fixed in 44 days
- Disclosed after 59 days
Summary by the program
Security advisory at https://github.com/nextcloud/security-advisories/security/advisories/GHSA-wq3g-2x46-q2gv
The report
Summary:
When a participant is in a call and that participant disables the video rather than a black frame the last frame of the video will be sent. Similarly, if the video is disabled before joining the call the last frame of the video before joining the call will be sent.
The video is not directly visible in the Web UI, as the received video is initially disabled and only shown once some media is received. However, it may be briefly visible in the Android app, as the Android app has the opposite behaviour, it assumes that the received video is enabled and then disables it once the video state is received. The iOS app has not been checked.
In any case, as the frame is sent it can be accessed in the WebUI by assigning the track to a manually created video element, as described in the steps below.
Steps To Reproduce:
- In a browser, start a call with a camera selected but video disabled
- In a private window, join the call as a participant without microphone nor camera selected
- In the console of the private window, paste:
videoElement = document.createElement('video')
document.body.appendChild(videoElement)
videoElement.srcObject = new MediaStream()
videoElement.srcObject.addTrack(OCA.Talk.SimpleWebRTC.webrtc.peers[0].pc.getReceivers()[1].track)
videoElement.style.zIndex = 10000000
videoElement.style.position = 'absolute'
videoElement.style.top = 0
videoElement.play()
Impact
An attacker could see the last video frame of any participant who has video disabled but a camera selected.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the application does not stop or replace the outgoing video track when video is disabled, so the last frame remains available to receivers.
Impact
An attacker could see the last video frame of any participant who has video disabled but a camera selected.
What the attacker needed
Attacker is a participant in the call; victim has camera selected but video disabled
How it was found
- Start a call in a browser with a camera selected but video disabled.
- Join the call from a private window as a participant without microphone or camera.
- In the private window's console, create a video element and attach the received track to it.
- Play the video element to view the last frame.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
In a video call, when you turn off your camera, the app should stop sending any video. Here, it kept sending the last picture it captured. Someone else in the call could use a trick in their browser to view that frozen picture, even though your camera appeared off.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.