io.codemodder.codemods.SanitizeSpringMultipartFilenameCodemod.report.json Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of core-codemods Show documentation
Show all versions of core-codemods Show documentation
Codemods for fixing common errors across many Java projects
{
"summary" : "Sanitized user-provided file names in HTTP multipart uploads",
"control" : "https://github.com/pixee/java-security-toolkit/blob/main/src/main/java/io/github/pixee/security/Filenames.java",
"change": "Wrapped the file name with a sanitizer call that takes out path escaping characters",
"reviewGuidanceJustification" : "This change presents effectively no risk. However, we believe a human should review the change.",
"references" : [
"https://owasp.org/www-community/vulnerabilities/Unrestricted_File_Upload",
"https://portswigger.net/web-security/file-upload",
"https://github.com/spring-projects/spring-framework/blob/c989470f94926ee5c7474bead278b00e9aaac787/spring-web/src/main/java/org/springframework/web/multipart/MultipartFile.java#L68"
]
}