Exploit database

GH-1a20f837c010c44c4376b2cd46cc5150

fastify/send

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2017-20165

1 source

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.

Repository files10
fastify/sendRevision 789c51df089e

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