Chat Federation, avoid spoofing:
When sanitizing remote informations, we check that urls and hosts are on the correct domain or subdomain.
This commit is contained in:
@ -16,7 +16,7 @@ async function readIncomingAPVideo (
|
||||
let peertubeLiveChat = ('peertubeLiveChat' in videoAPObject) ? videoAPObject.peertubeLiveChat : false
|
||||
|
||||
// We must sanitize peertubeLiveChat, as it comes for the outer world.
|
||||
peertubeLiveChat = sanitizePeertubeLiveChatInfos(options, peertubeLiveChat)
|
||||
peertubeLiveChat = sanitizePeertubeLiveChatInfos(options, peertubeLiveChat, video.url)
|
||||
|
||||
await storeVideoLiveChatInfos(options, video, peertubeLiveChat)
|
||||
if (video.remote) {
|
||||
|
Reference in New Issue
Block a user