Skip to content
Info disclosure Write-up Intermediate

Constrained environment breakout. .NET Assembly exfiltration via Internet Options

A restricted remote desktop environment allowed access to Internet Options and Internet Explorer, which an attacker could abuse to bypass file system restrictions and exfiltrate the application's .NET assembly. This exposed source code and configuration files, potentially enabling further attacks or intellectual property theft.

pentestpartners.com

Published on pentestpartners.com

It’s not uncommon for developers to find that they need to help their end users. For starter, the business requirements for software can be highly convoluted and technical.

PTP Admin, on pentestpartners.com

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 write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the environment allowed access to Internet Options and Internet Explorer, which provided file browsing and download capabilities that bypassed the intended restrictions.

Impact

An attacker could exfiltrate the application's source code and configuration, potentially leading to further exploitation or intellectual property theft.

What the attacker needed

Access to the restricted environment; help function with Internet Options

The fix

Access to Internet Options and Internet Explorer should be restricted in constrained environments.

How it was found

  1. Open Internet Options from the help function and use the custom search to browse the C: drive.
  2. Discover the D: drive and locate the application folder.
  3. Create a shortcut to Internet Explorer to open local HTML files.
  4. Use an Internet shortcut to trigger a download of the application executable.
  5. Save the downloaded executable to a mounted drive and analyse it with DNSpy.

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 write-up has not been written yet. The Original tab links to the source.

In a locked-down remote desktop, users are only supposed to run one application. The tester found that built-in Windows features like Internet Options and Internet Explorer could still be opened. By using these, they could browse files and download the application's program files, which contain the code that makes the software work.

What is Info disclosure?

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

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.