Skip to content

Code Security Report: 1 high severity findings, 1 total findings #2

Description

@dev-mend-for-github-com

Code Security Report

Scan Metadata

Latest Scan: 2024-07-23 08:23am
Total Findings: 1 | New Findings: 0 | Resolved Findings: 0
Tested Project Files: 93
Detected Programming Languages: 1 (Ruby)

  • Check this box to manually trigger a scan

Finding Details

SeverityVulnerability TypeCWEFileData FlowsDate
HighPath/Directory Traversal

CWE-22

request.rb:69

12024-07-23 08:24am
Vulnerable Code

def merge_multipart_file!(options)
key = options.delete(:key)
file = options.delete(:file)
options[key] = if file.is_a?(StringIO)
HTTP::FormData::File.new(file, content_type: "video/mp4")

1 Data Flow/s detected

options[:params] = @params

file = options.delete(:file)

HTTP::FormData::File.new(file, content_type: "video/mp4")

Secure Code Warrior Training Material

● Training

   ▪ Secure Code Warrior Path/Directory Traversal Training

● Videos

   ▪ Secure Code Warrior Path/Directory Traversal Video

● Further Reading

   ▪ OWASP Path Traversal

   ▪ OWASP Input Validation Cheat Sheet

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions