Skip to content
Misconfiguration Write-up Intermediate

GlueBall Timeline

Windows MSI signature verification only checked the beginning of the file and ignored any appended data, so an attacker could append a malicious JAR to a signed MSI and have the file both appear validly signed and execute as a JAR.

medium.com

Published on medium.com

Digitally signed files are more trusted by the Operating System. This higher trust allows such files to execute in sensitive contexts or excluded from Antivirus scans.

Tal Be'ery, on medium.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

Impact

An attacker could make malicious code appear as a validly signed file, potentially bypassing trust checks and antivirus exclusions, though the text does not detail specific real-world damage.

What the attacker needed

A validly signed MSI file; ability to append data to the file; unpatched Windows system

The fix

The MsiSIPVerifyIndirectData function was patched to check the MSI file size and fail if it contains an unexpected suffix.

How it was found

  1. Obtain a validly signed MSI file.
  2. Append a malicious JAR executable to the end of the signed MSI.
  3. On an unpatched Windows system, the file is considered validly signed and the JAR part can execute.

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.

When Windows checks if a file is digitally signed, it normally reads the whole file. Here, for MSI installer files, it only checked the start and ignored anything added at the end. Because Java JAR files are read from the end, an attacker could glue a malicious JAR onto a signed MSI, and Windows would still trust the file while the JAR part ran.

What is Misconfiguration?

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.

Similar reports

View all

Same bug class and techniques, clearest first.

Security misconfiguration

The lesson behind this report.

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.