Skip to content
Access control Write-up Intermediate

Printing Fake Fiscal Receipts - An Italian Job p.1

The Italretail SpiceT fiscal printer allows any installed Android app to communicate with the fiscal unit via a world-writable serial device, enabling the printing of fake receipts and tampering with the electronic journal. An attacker could forge fiscal documents and delete or overwrite files in the append-only memory.

shielder.com

Published on shielder.com

Italretail SpiceT fiscal printer allows any installed Android app to talk to the fiscal unit to print receipts, forge data in the Electronic Journal, open the cash drawer, etc.

The author, on shielder.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

The serial device connecting the Android management unit to the fiscal unit is world-readable and world-writable, and SELinux policy allows untrusted apps to access it, so any app can send arbitrary commands to the fiscal unit.

Impact

An attacker could print fake fiscal receipts and tamper with the electronic journal, potentially enabling tax fraud and undermining the integrity of the certified fiscal records.

What the attacker needed

Ability to install an Android app on the device

How it was found

  1. Install a malicious Android app on the SpiceT device.
  2. The app opens the /dev/ttymxc4 character device.
  3. The app sends crafted CUSTOM protocol commands to the fiscal unit.
  4. For fake receipts, send command 4003 and pause the printer before closing the receipt.
  5. Print fake receipts, then close the legitimate receipt.
  6. For file tampering, send commands 741x to delete, write, or overwrite files on the DGFE.

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.

A fiscal printer is a device that prints official receipts and records sales for tax purposes. The researcher found that any app on the printer's Android system can send commands to the part that handles the official records, so a malicious app could print fake receipts or change the records. This happens because the connection to the fiscal unit is not properly protected.

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.