Advisory

GHSA-g3p2-hfqr-9m25

Also known as: CVE-2021-22968

Summary

Improper file handling in concrete5/core

Details

A bypass of adding remote files in Concrete CMS (previously concrete5) File Manager leads to remote code execution in Concrete CMS (concrete5) versions 8.5.6 and below. The external file upload feature stages files in the public directory even if they have disallowed file extensions. They are stored in a directory with a random name, but it's possible to stall the uploads and brute force the directory name. You have to be an admin with the ability to upload files, but this bug gives you the ability to upload restricted file types and execute them depending on server configuration. To fix this, a check for allowed file extensions was added before downloading files to a tmp directory

Severity

High Basis: The source's own band: HIGH

Dates

Published
2021-11-23 17:54 UTC
Modified
2024-02-16 08:19 UTC

Affected packages and fixes

concrete5/core

Packagist · All systems

Affected

  • introduced 0, fixed 8.5.7 (ecosystem)

Fixed versions

8.5.7

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences