Skip to content
Access control Write-up Advanced

XFS: El tendón de Aquiles de los Cajeros Automáticos

The XFS middleware used by ATMs does not authenticate the origin of commands, so any process with sufficient privileges can instruct the cash dispenser to release money. The text describes how malware such as Ploutus and Cutlet Maker exploited this design to perform jackpotting attacks.

medium.com

Published on medium.com

A simple vista, un cajero automático parece una fortaleza inexpugnable: acero reforzado, cerraduras de alta seguridad y múltiples controles físicos diseñados para proteger el dinero que resguarda. Sin embargo, detrás de esa carcasa blindada se esconde una realidad mucho más cotidiana — y, en muchos casos, subestimada…

Carlos Pastrana, on medium.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 XFS middleware trusts any local process that sends correctly formatted commands, without verifying the sender's identity or authorisation.

Impact

An attacker who gains code execution on an ATM could control the cash dispenser and cause it to dispense money, though modern banks may limit this with end-to-end encryption and application hardening.

What the attacker needed

Code execution on the ATM; elevated privileges on the ATM OS; access to the XFS API

The fix

Modern implementations should add end-to-end encryption with cryptographic signing of commands and application-layer hardening that monitors process behaviour, so that only authorised software can control the dispenser.

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.

An ATM is a computer that talks to hardware like the cash dispenser through a middle layer called XFS. XFS was designed to accept commands from any program that speaks its format, without checking who sent them. So if an attacker can run a program on the ATM, that program can ask the dispenser to hand out cash.

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.