CVE-2022-24789
C# vulnerability analysis and mitigation

Overview

C1 CMS, an open-source .NET based Content Management System, was found to contain a deserialization vulnerability (CVE-2022-24789) affecting versions prior to 6.12. The vulnerability was discovered by Jaroslav Lobačevski from the GitHub Security Lab team and was disclosed on March 28, 2022. The issue allows authenticated users to exploit Server Side Request Forgery (SSRF) and perform arbitrary file truncation through deserialization of untrusted data (GitHub Advisory).

Technical details

The vulnerability stems from the CompositeJsonSerializer.Deserialize functionality being reachable from multiple endpoints where the serializedEntityToken is user-controlled. While the custom deserialization binder prevents known remote code execution gadgets from third-party libraries, it allows instantiation of any internal C1 class and classes from standard library namespaces including 'mscorlib', 'System' and 'System.Collections*'. This implementation weakness enables attackers to construct deserialization gadget chains (GitHub Lab).

Impact

The vulnerability enables authenticated users to perform two types of malicious actions: 1) Execute SSRF attacks by causing the server to make arbitrary GET requests to other servers in the local network or on localhost, and 2) Truncate arbitrary files to zero size, which can lead to denial of service (DoS) or alterations in application logic. Notably, authenticated users may unknowingly trigger these actions by visiting specially crafted sites (GitHub Advisory).

Mitigation and workarounds

The vulnerability was patched in C1 CMS version 6.12. Orckestra provided free automated upgrade capability for any C1 installation from version 5.0 and later to access this security fix. No known workarounds exist other than upgrading to version 6.12 or newer (Release Notes).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
David EstlickCISO
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
Adam FletcherChief Security Officer
“We know that if Wiz identifies something as critical, it actually is.”
Greg PoniatowskiHead of Threat and Vulnerability Management