Skip to content
Access control Write-up Intermediate

Mi Scusi, My SCSI: Abusing iSCSI Target Server

The iSCSI target server service allows unauthenticated access if CHAP is not configured, and an attacker can impersonate an initiator to access shared virtual hard disks. This could lead to credential theft from domain controllers or other sensitive data.

Garrett Foster Follow

Published on specterops.io

Himanshu Dwivedi – Who gave a talk at BlackHat back in 2005 (!!) on iSCSI

Garrett Foster, on specterops.io

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 access shared virtual hard disks without authentication, potentially leading to credential theft from domain controllers or other sensitive systems, unless the disk is encrypted with BitLocker or similar.

What the attacker needed

ISCSI target server without CHAP; knowledge of target and initiator IQNs; network access to iSCSI service

The fix

Enable CHAP authentication for iSCSI, use IPsec for network protection, and apply network segmentation and host-based firewall rules to isolate the storage.

How it was found

  1. Locate iSCSI target servers via SPN enumeration in Active Directory.
  2. Build a list of potential initiator IQNs from the dNSHostName attribute of domain-joined computers.
  3. Use a tool to iterate over the list and recover the iSCSI target IQN via a Discovery session.
  4. Check if authentication is required by attempting a login; if it succeeds, no CHAP is required.
  5. Enumerate the virtual disk contents and download the VHDX file.
  6. Mount the VHDX and extract sensitive files such as registry hives or NTDS.dit.

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.

iSCSI is a way to connect to storage over a network as if it were a local hard drive. If the storage server does not require a password, anyone who knows its name and the name of an allowed client can connect and read the disk. This can expose sensitive files like password databases.

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 by Garrett Foster

View all

1 more disclosed report, best first.

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.