Microsoft .NET Manifest Resource Information Disclosure Vulnerability
A malformed .NET manifest resource can cause an integer overflow when calculating offsets, leading to an out-of-bounds read. An attacker could crash the application or potentially leak memory contents to bypass ASLR.
Originally disclosed on Cisco Talos
An exploitable information leak or denial of service vulnerability exists in the manifest resource parsing functionality of the .NET Framework. A specially crafted resource can cause an integer overflow resulting in an out of bounds read which may return arbitrary memory contents or cause the application to…
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
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 number of resources field is not properly validated, leading to an integer overflow when calculating offsets and a lack of bounds checking on the resulting pointer.
Impact
This vulnerability can be used to crash the program or to return memory contents to assist with bypassing memory hardening mitigations such as ASLR.
What the attacker needed
Victim loads a crafted .NET assembly; browser with .NET or Silverlight plugin
How it was found
- Modify the Number of resources field in a .NET manifest resource to a large value.
- Load the crafted assembly in an application (e.g., Silverlight) that automatically loads the resource.
- The application crashes or reads out-of-bounds memory when accessing the resource.
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.
A .NET assembly can contain resources like images or text. The code that reads these resources trusts a number in the file that says how many resources there are. If an attacker sets that number very high, a calculation overflows and the program reads memory outside the intended area, which can crash it or reveal sensitive data.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.