Skip to content

Defender Daily

Attackers exploit Xen Orchestra login bypass to take over XCP-ng hosts

Affected
Xen Orchestra before 6.9.2 on the stable channel and 6.10.1 on the latest channel, and the Xen Orchestra Appliance. All versions and fixes

A flaw in Xen Orchestra, the web tool that manages XCP-ng virtualization hosts, lets an unauthenticated attacker log in with administrator rights by sending an empty token. From there, an attacker can run code on managed pools and take over XCP-ng hosts as root. Vates says attackers are exploiting it, rates it critical and fixed it on Nov 10.

Xen Orchestra’s REST interface turns the cookie value authenticationToken=j:{} into an empty object and passes it to the token lookup, which then returns the first token it finds, Vates says. If that token hasn’t expired, the attacker is signed in as its owner. Another REST route then hands over reusable login tokens.

Vates says attackers are exploiting the flaw, operating at first from one IP address and a Tor onion service, and lists eight IP addresses to block. A successful exploit leaves no log of the unauthenticated access, so Vates suggests watching HTTP traffic for the empty-token patterns. It warns that its detection only covers this campaign, so finding none doesn’t rule out a compromise.

Vates lists traces the attackers left on XCP-ng hosts. They include a VM named pivot2 and VMs with an hvm_serial: file parameter. Others are cron files under /etc/cron.d/ starting with zz-ustar, and the files /.ustar5, /.ustar6 and /etc/ld.so.preload.

The fix is in Xen Orchestra 6.9.2 on the stable channel and 6.10.1 on the latest channel, in xo-server 5.211.2 and 5.213.1. The Xen Orchestra Appliance is affected too. Filip Magic and Christoffer Olsen of TDC NET Security found the flaw.

Vendor
Vates

What to do

7 steps

Affected and fixed versions

  • Product
    Xen Orchestra, stable channel
    Affected
    Before 6.9.2
    Fixed
    6.9.2 or later, with xo-server 5.211.2
  • Product
    Xen Orchestra, latest channel
    Affected
    Before 6.10.1
    Fixed
    6.10.1 or later, with xo-server 5.213.1
  • Product
    Xen Orchestra Appliance
    Affected
    Affected, Vates says
    Fixed
    The stable or latest channel update

Indicators

IPs and domains copy defanged. Use Copy raw for queries.

IP addressWhere the attackers first operated from, per Vates
DomainTor onion service the attackers used
IP addressAttacker infrastructure to block
IP addressAttacker infrastructure to block
IP addressAttacker infrastructure to block
IP addressAttacker infrastructure to block
IP addressAttacker infrastructure to block
IP addressAttacker infrastructure to block
IP addressAttacker infrastructure to block

Sources

Subscribe

Get the Daily Brief by email

Weekdays at 7am ET.

We’ll email you a link to confirm. Unsubscribe from any email.