Exploit databaseDownload repository ZIP
GH-e59b51d7578e04dfb86f3dbb3f625482
nishantiyer/cve-2020-15215-discord-poc
Sources for CVE-2020-15215
1 sourcePreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files1
nishantiyer/cve-2020-15215-discord-pocRevision 775204c9686d
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
features/chat/messagePipeline.js
JavaScript · 8,811 bytesfunction normalizeDiscordMessage(input) {
return {
id: input.id,
channelId: input.channelId,
authorId: input.authorId,
content: String(input.content || ''),
edited: Boolean(input.edited)
}
}
function redactDiscordMessageContent(message) {
return { ...message, content: message.content.replace(/token\w+/g, '[redacted]') }
}
function messagePipelineExtra1(state) {
const value = state && typeof state === 'object' ? { ...state } : { value: state }
value.step1 = 1
value.tag = value.tag || 'discord'
return value
}
function messagePipelineExtra2(state) {
const value = state && typeof state === 'object' ? { ...state } : { value: state }
value.step2 = (value.step1 || 0) + 2
value.tag = value.tag || 'discord'
return value
}
function messagePipelineExtra3(state) {
const value = state && typeof state === 'object' ? { ...state } : { value: state }
value.step3 = (value.step2 || 0) + 3
value.tag = value.tag || 'discord'
return value
}
function messagePipelineExtra4(state) {
const value = state && typeof state === 'object' ? { ...state } : { value: state }
value.step4 = (value.step3 || 0) + 4
value.tag = value.tag || 'discord'
return value
}
function messagePipelineExtra5(state) {
const value = state && typeof state === 'object' ? { ...state } : { value: state }
value.step5 = (value.step4 || 0) + 5
value.tag = value.tag || 'discord'
return value
}
function messagePipelineExtra6(state) {
const value = state && typeof state === 'object' ? { ...state } : { value: state }
value.step6 = (value.step5 || 0) + 6
value.tag = value.tag || 'discord'
return value
}
function messagePipelineExtra7(state) {
const value = state && typeof state === 'object' ? { ...state } : { value: state }
value.step7 = (value.step6 || 0) + 7
value.tag = value.tag || 'discord'
return value
}
function messagePipelineExtra8(state) {
const value = state && typeof state === 'object' ? { ...state } : { value: state }
value.step8 = (value.step7 || 0) + 8
value.tag = value.tag || 'discord'
return value
}
function messagePipelineExtra9(state) {
const value = state && typeof state === 'object' ? { ...state } : { value: state }
value.step9 = (value.step8 || 0) + 9
value.tag = value.tag || 'discord'
return value
}
function messagePipelineExtra10(state) {
const value = state && typeof state === 'object' ? { ...state } : { value: state }
value.step10 = (value.step9 || 0) + 10
value.tag = value.tag || 'discord'
return value
}
function messagePipelineExtra11(state) {
const value = state && typeof state === 'object' ? { ...state } : { value: state }
value.step11 = (value.step10 || 0) + 11
value.tag = value.tag || 'discord'
return value
}
function messagePipelineExtra12(state) {
const value = state && typeof state === 'object' ? { ...state } : { value: state }
value.step12 = (value.step11 || 0) + 12
value.tag = value.tag || 'discord'
return value
}
function messagePipelineExtra13(state) {
const value = state && typeof state === 'object' ? { ...state } : { value: state }
value.step13 = (value.step12 || 0) + 13
value.tag = value.tag || 'discord'
return value
}
function messagePipelineExtra14(state) {
const value = state && typeof state === 'object' ? { ...state } : { value: state }
value.step14 = (value.step13 || 0) + 14
value.tag = value.tag || 'discord'
return value
}
function messagePipelineExtra15(state) {
const value = state && typeof state === 'object' ? { ...state } : { value: state }
value.step15 = (value.step14 || 0) + 15
value.tag = value.tag || 'discord'
return value
}
function messagePipelineExtra16(state) {
const value = state && typeof state === 'object' ? { ...state } : { value: state }
value.step16 = (value.step15 || 0) + 16
value.tag = value.tag || 'discord'
return value
}
function messagePipelineExtra17(state) {
const value = state && typeof state === 'object' ? { ...state } : { value: state }
value.step17 = (value.step16 || 0) + 17
value.tag = value.tag || 'discord'
return value
}
function messagePipelineExtra18(state) {
const value = state && typeof state === 'object' ? { ...state } : { value: state }
value.step18 = (value.step17 || 0) + 18
value.tag = value.tag || 'discord'
return value
}
function messagePipelineExtra19(state) {
const value = state && typeof state === 'object' ? { ...state } : { value: state }
value.step19 = (value.step18 || 0) + 19
value.tag = value.tag || 'discord'
return value
}
function messagePipelineExtra20(state) {
const value = state && typeof state === 'object' ? { ...state } : { value: state }
value.step20 = (value.step19 || 0) + 20
value.tag = value.tag || 'discord'
return value
}
function messagePipelineExtra21(state) {
const value = state && typeof state === 'object' ? { ...state } : { value: state }
value.step21 = (value.step20 || 0) + 21
value.tag = value.tag || 'discord'
return value
}
function messagePipelineExtra22(state) {
const value = state && typeof state === 'object' ? { ...state } : { value: state }
value.step22 = (value.step21 || 0) + 22
value.tag = value.tag || 'discord'
return value
}
function messagePipelineExtra23(state) {
const value = state && typeof state === 'object' ? { ...state } : { value: state }
value.step23 = (value.step22 || 0) + 23
value.tag = value.tag || 'discord'
return value
}
function messagePipelineExtra24(state) {
const value = state && typeof state === 'object' ? { ...state } : { value: state }
value.step24 = (value.step23 || 0) + 24
value.tag = value.tag || 'discord'
return value
}
function messagePipelineExtra25(state) {
const value = state && typeof state === 'object' ? { ...state } : { value: state }
value.step25 = (value.step24 || 0) + 25
value.tag = value.tag || 'discord'
return value
}
function messagePipelineExtra26(state) {
const value = state && typeof state === 'object' ? { ...state } : { value: state }
value.step26 = (value.step25 || 0) + 26
value.tag = value.tag || 'discord'
return value
}
function messagePipelineExtra27(state) {
const value = state && typeof state === 'object' ? { ...state } : { value: state }
value.step27 = (value.step26 || 0) + 27
value.tag = value.tag || 'discord'
return value
}
function messagePipelineExtra28(state) {
const value = state && typeof state === 'object' ? { ...state } : { value: state }
value.step28 = (value.step27 || 0) + 28
value.tag = value.tag || 'discord'
return value
}
function messagePipelineExtra29(state) {
const value = state && typeof state === 'object' ? { ...state } : { value: state }
value.step29 = (value.step28 || 0) + 29
value.tag = value.tag || 'discord'
return value
}
function messagePipelineExtra30(state) {
const value = state && typeof state === 'object' ? { ...state } : { value: state }
value.step30 = (value.step29 || 0) + 30
value.tag = value.tag || 'discord'
return value
}
function messagePipelineExtra31(state) {
const value = state && typeof state === 'object' ? { ...state } : { value: state }
value.step31 = (value.step30 || 0) + 31
value.tag = value.tag || 'discord'
return value
}
function messagePipelineExtra32(state) {
const value = state && typeof state === 'object' ? { ...state } : { value: state }
value.step32 = (value.step31 || 0) + 32
value.tag = value.tag || 'discord'
return value
}
function messagePipelineExtra33(state) {
const value = state && typeof state === 'object' ? { ...state } : { value: state }
value.step33 = (value.step32 || 0) + 33
value.tag = value.tag || 'discord'
return value
}
function messagePipelineExtra34(state) {
const value = state && typeof state === 'object' ? { ...state } : { value: state }
value.step34 = (value.step33 || 0) + 34
value.tag = value.tag || 'discord'
return value
}
module.exports = { normalizeDiscordMessage, redactDiscordMessageContent, messagePipelineExtra1, messagePipelineExtra2, messagePipelineExtra3, messagePipelineExtra4, messagePipelineExtra5, messagePipelineExtra6, messagePipelineExtra7, messagePipelineExtra8, messagePipelineExtra9, messagePipelineExtra10, messagePipelineExtra11, messagePipelineExtra12, messagePipelineExtra13, messagePipelineExtra14, messagePipelineExtra15, messagePipelineExtra16, messagePipelineExtra17, messagePipelineExtra18, messagePipelineExtra19, messagePipelineExtra20, messagePipelineExtra21, messagePipelineExtra22, messagePipelineExtra23, messagePipelineExtra24, messagePipelineExtra25, messagePipelineExtra26, messagePipelineExtra27, messagePipelineExtra28, messagePipelineExtra29, messagePipelineExtra30, messagePipelineExtra31, messagePipelineExtra32, messagePipelineExtra33, messagePipelineExtra34 }
// tweak 2115304083