Cross-Site Scripting Vulnerability in verot/class.upload.php

verot/class.upload.php Updated 02 Oct 2025

Summary

04/01/2024
No i
Moderate
6.5

CVE-2023-6551: class.upload.php allows cross-site scripting attacks via uploaded files. Affects verot/class.upload.php versions < 2.1.6. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

verot/class.upload.php is a library used for handling file uploads in PHP applications. It provides various functionalities for processing and manipulating uploaded files. However, the library is vulnerable to a cross-site scripting (XSS) attack when the default configuration is used.

Vulnerability Detail

The vulnerability arises due to the lack of thorough file checks performed by class.upload.php. This allows an attacker to upload a malicious file containing JavaScript code, which can then be executed in the context of other users accessing the file. This stored XSS vulnerability can lead to various consequences, such as unauthorized access, data theft, or the injection of malicious content into the application.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

A possible workaround for this vulnerability is to manually validate and sanitize the uploaded files before processing them with class.upload.php. This can be done by implementing custom file checks and using libraries or functions specifically designed for secure file handling.

Conclusion

The cross-site scripting vulnerability in verot/class.upload.php can be mitigated by implementing extension whitelisting and enforcing the correct content-type based on the file extension. Developers should also consider manually validating and sanitizing uploaded files to further enhance security. For more information and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for verot/class.upload.php →

Share this vulnerability

FAQ

class.upload.php is a PHP library used for handling file uploads. It provides functionalities for resizing, cropping, and manipulating images, as well as other file-related operations.

The vulnerability occurs due to the lack of thorough file checks in class.upload.php. This allows an attacker to upload a file containing malicious JavaScript code, which can then be executed in the context of other users accessing the file.

The potential consequences of this vulnerability include unauthorized access to user data, data theft, and the injection of malicious content into the application.

Developers can fix this vulnerability by implementing extension whitelisting and ensuring the server provides the correct content-type based on the file extension. This helps mitigate the risk of XSS attacks.

A possible workaround is to manually validate and sanitize uploaded files before processing them with class.upload.php. This involves implementing custom file checks and using secure file handling libraries or functions.

Related vulnerabilities

Recent vulnerabilities recorded for verot/class.upload.php.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback