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:
@ -80,7 +80,7 @@ async function fetchMissingRemoteServerInfos (
|
||||
return
|
||||
}
|
||||
|
||||
const serverInfos = sanitizePeertubeLiveChatServerInfos(options, response)
|
||||
const serverInfos = sanitizePeertubeLiveChatServerInfos(options, response, remoteInstanceUrl)
|
||||
if (serverInfos) {
|
||||
await storeRemoteServerInfos(options, serverInfos)
|
||||
}
|
||||
|
Reference in New Issue
Block a user