Skip to content
Misconfiguration Write-up Beginner

Unauthenticated Iscsi Targets From Basics To Exploitation

An iSCSI target was exposed without authentication, allowing any host to discover and log in to it. An attacker could then access the attached block storage, potentially reading, modifying, or destroying data.

Gokul Follow

Published on infosecwriteups.com

Storage systems are prime targets in modern infrastructure. One common technology used for block storage over IP networks is iSCSI (Internet Small Computer Systems Interface).

Gokul, on infosecwriteups.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 iSCSI target was configured without CHAP authentication or initiator restrictions, allowing any host to log in.

Impact

An attacker could read, modify, or destroy data on the exposed storage, and could use it for further attacks such as ransomware or lateral movement.

What the attacker needed

Network access to TCP port 3260; iSCSI target without authentication; Linux host with iscsiadm

The fix

The text recommends enforcing authentication (such as CHAP), restricting initiators by IQN or IP, and segmenting storage networks.

How it was found

  1. Start the iSCSI daemon on the attacker's machine.
  2. Discover available iSCSI targets on the network.
  3. Log in to the target without providing credentials.
  4. Verify that a new block device has been attached.
  5. Mount the block device to access its file system.
  6. Log out and stop the iSCSI daemon to clean up.

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 a storage device over a network as if it were a local disk. If the storage server does not require a password, anyone who can reach it can connect and see the disk. This post shows how an attacker could use a standard Linux tool to connect and then read or change files on that disk.

What is Misconfiguration?

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

More by Gokul

View all

1 more disclosed report, best first.

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.