Skip to content
Access control Write-up Intermediate

Pulling SYSTEM out of Windows GINA

The ManageEngine ADSelfService Plus Windows GINA client, installed on domain computers, runs an embedded browser on the login screen that can be tricked into loading attacker-controlled HTML from a spoofed server. By using a javascript: link to create a file dialog, an attacker with physical access can launch cmd.exe and obtain a SYSTEM shell before authentication.

Pedro Ribeiro Follow

Published on github.com

History

Pedro Ribeiro (@pedrib1337), João Bigotte, Ashley King, on github.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 embedded browser in the GINA client allows javascript: URLs to execute and create file dialogs, and the client trusts HTTP responses from a spoofable server, with only a blacklist that can be bypassed.

Impact

An attacker with physical access could obtain a SYSTEM shell before authentication, but this only works when GINA uses HTTP (the default) or HTTPS with certificate validation disabled.

What the attacker needed

Physical access to the computer; GINA agent installed; attacker-controlled network; HTTP or HTTPS with bad cert allowed

The fix

The advisory recommends not installing the GINA agent, or if necessary, using HTTPS with a valid certificate and restricting network connections from the login screen; no official fix is mentioned.

How it was found

  1. Connect the computer to an attacker-controlled network from the login screen.
  2. Spoof the ADSelfService Plus server and serve a malicious HTML page.
  3. The page contains a link that uses a javascript: URL to create a file dialog.
  4. Click the link to open the file dialog.
  5. Browse to cmd.exe and open it to get a SYSTEM shell.

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.

The login screen of some Windows computers runs a small web browser to let users reset passwords. If an attacker can make that browser load a page they control, they can use a special link to open a file picker and then run a command prompt with the highest system privileges, all without logging in.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More from Zoho (ManageEngine ADSelfService Plus)

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.