On line 1072, data is declared as:
const data = `Recording in ${SendAudioUtil.getChannelName(type)} (${SendAudioUtil.getGuildName(type)})`;
And the getChannelName / getGuildName does not sanitize the name.
data is used to create the SendAudioUtil panel and is not sanitized either.
If you want to test this, you can rename a guild or channel to <img src=x onerror=alert(1)> and click the record button.
Issue
On line 1072,
data
is declared as:const data = `Recording in ${SendAudioUtil.getChannelName(type)} (${SendAudioUtil.getGuildName(type)})`;
And thegetChannelName
/getGuildName
does not sanitize the name.data
is used to create theSendAudioUtil
panel and is not sanitized either. If you want to test this, you can rename a guild or channel to<img src=x onerror=alert(1)>
and click the record button.Result: