Exploit databaseDownload repository ZIP
GH-1a20f837c010c44c4376b2cd46cc5150
fastify/send
Sources for CVE-2017-20165
1 sourcePreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files10
fastify/sendRevision 789c51df089e
- ↑..Parent directory
- collapseLeadingSlashes.js
- containsDotFile.js
- contentRange.js
- createHtmlDocument.js
- createHttpError.js
- isUtf8MimeType.js
- normalizeList.js
- parseBytesRange.js
- parseTokenList.js
- send.js
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
lib/isUtf8MimeType.js
JavaScript · 314 bytes'use strict'
function isUtf8MimeType (value) {
const len = value.length
return (
(len > 21 && value.indexOf('application/javascript') === 0) ||
(len > 14 && value.indexOf('application/json') === 0) ||
(len > 5 && value.indexOf('text/') === 0)
)
}
module.exports.isUtf8MimeType = isUtf8MimeType