GHSA-v6f4-jwv9-682w

Suggest an improvement
Source
https://github.com/advisories/GHSA-v6f4-jwv9-682w
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/01/GHSA-v6f4-jwv9-682w/GHSA-v6f4-jwv9-682w.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-v6f4-jwv9-682w
Aliases
  • CVE-2023-6551
Published
2024-01-04T18:30:21Z
Modified
2024-02-16T08:18:14.342056Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N CVSS Calculator
Summary
class.upload.php allows cross-site scripting attacks via uploaded files
Details

As a simple library, class.upload.php does not perform an in-depth check on uploaded files, allowing a stored XSS vulnerability when the default configuration is used.

Developers must be aware of that fact and use extension whitelisting accompanied by forcing the server to always provide content-type based on the file extension.

The README has been updated to include these guidelines.

Database specific
{
    "nvd_published_at": "2024-01-04T16:15:09Z",
    "cwe_ids": [
        "CWE-20",
        "CWE-434"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2024-01-04T20:10:32Z"
}
References

Affected packages

Packagist / verot/class.upload.php

Package

Name
verot/class.upload.php
Purl
pkg:composer/verot/class.upload.php

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Last affected
2.1.6

Affected versions

1.*

1.0.0
1.0.1
1.0.2
1.0.3
1.0.4
1.0.5
1.0.6
1.0.7
1.0.8
1.0.9
1.1.0
1.1.1
1.1.2

2.*

2.0.0
2.0.1
2.0.2
2.0.3
2.0.4
2.0.5
2.0.6
2.0.7
2.0.8
2.0.9
2.1.0
2.1.1
2.1.2
2.1.3
2.1.4
2.1.5
2.1.6