Skip to content
Misconfiguration Write-up Intermediate

Pwn Dat Domain: Becoming Domain Admin With A Little Help From Veeam Backup

A Tomcat server with default credentials allowed a webshell upload, and the server also hosted Veeam Backup software that any local user could access. The attacker used Veeam to create a new backup of the Domain Controller with a known password, extracted the backup to obtain the Domain Controller's password hashes, and used pass-the-hash to gain domain admin access.

Roberto Soares Follow

Published on blazeinfosec.com

In this blog post, we delve into a technical sequence of steps culminating in achieving control over a domain. This attack was executed with technical rigor, emphasizing the importance of conducting such activities strictly within authorized environments.

Roberto Soares (@espreto), on blazeinfosec.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 combination of default Tomcat credentials and unrestricted local access to Veeam Backup software allowed an attacker to create and extract a backup of the Domain Controller, exposing its password database.

Impact

The attacker obtained Domain Admin credentials and could create a new Domain Admin user, gaining full control of the domain; the text notes that in a better-defended environment, alarms would likely have been triggered.

What the attacker needed

Network access to the target range; Tomcat with default credentials; Veeam Backup accessible to any local user; RDP access to the Tomcat server

How it was found

  1. Scan the provided IP range with crackmapexec to find active Windows machines and list their names.
  2. Use nmap with the http-default-accounts script to find a Tomcat server with default credentials.
  3. Log in to Tomcat with the default credentials and upload a custom JSP webshell to get command execution.
  4. Create a new local administrator user and connect via RDP for persistent access.
  5. Use the Veeam Backup software to schedule a new backup of the Domain Controller with a password of the attacker's choosing.
  6. Extract the backup with VBK Extract Utility, mount the VHD image, and use impacket-secretsdump on the NTDS.dit, SYSTEM, and SECURITY files to obtain password hashes.

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.

This is a story of how an attacker got full control of a Windows network. They first found a server with a weak default password, used it to run commands, and then noticed that backup software on that server could be used by anyone logged in. By making a new backup of the main domain controller with a password they chose, they could read the files that store all user passwords and then log in as the top administrator.

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.