Skip to content
Access control Write-up Advanced

Gaining Access to Card Data Using the Windows Domain to Bypass Firewalls

The tester took over Active Directory by enumerating users through null sessions, guessing a weak password, and cracking a service account ticket belonging to a Domain Admin. With domain control they pushed a scheduled task through Group Policy to call-centre machines inside the firewalled card-data network, which connected back and let them capture card details on screen.

markitzeroday.com

Published on markitzeroday.com

This post details how to bypass firewalls to gain access to the Cardholder Data Environment (or CDE, to use the parlance of our times). End goal: to extract credit card data.

The author, on markitzeroday.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 cardholder data environment shared the same Active Directory domain as the rest of the organisation, so domain-wide control (via Group Policy) reached machines that the network firewall was meant to isolate.

Impact

The tester could capture card data being entered by call-centre staff, and on the real test around 60 to 100 sessions connected back from the card-data range.

What the attacker needed

Access to the internal office network; null sessions enabled on the domain controller; a user with a weak, guessable password; a service account in Domain Admins with a crackable password

The fix

The cardholder data environment should run on its own separate Active Directory domain, alongside turning off null sessions, enforcing strong passwords and long random service-account passwords, and alerting on bulk service-ticket requests.

How it was found

  1. Scan the card-data network range from the internal office network and find nothing reachable.
  2. Enumerate domain users through null sessions on the domain controller.
  3. Guess a weak password against the user list with CrackMapExec.
  4. Request Kerberos service tickets and crack one belonging to a Domain Admin.
  5. Log in to the domain controller over RDP and create a Group Policy with an immediate scheduled task pointing at a shared payload.
  6. Wait for the policy to apply, then take screenshots of the sessions that connect back from the card-data range.

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 company kept its payment systems on a separate, firewalled network, but those machines still trusted the same central Windows login system as everyone else. Once the tester became the top-level administrator of that login system, they could send an instruction that made the payment machines connect out to them, so the firewall did not stop it. They then took screenshots of what staff were typing, including card numbers.

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.

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.