crn

04 — Unternehmensschädigung | 01 Dec 2025

The Universal REWE Scan-To-Exit Code

Escape from REWE

The Universal REWE Scan-To-Exit Code

Recently, supermarkets remove more and more employee-operated cashiers and replace them with self-checkout registers, where customers scan groceries on their own. To prevent theft, many of these stores rely on printing a code on the reciept which needs to be scanned at a gate before leaving the store. At REWE one gets a Code-128 that looks like this:

rewe bon

The entirety of the code is given by this cryptic sequence of digits.

2300061795021091

If one were to look at these closely and collect a few of them, one can notice that the 23 never changes, so it is most likely a prefix. The 0006 changes, and denotes the number of the registeri (so here we checked out at register 6). The rest is just the current unix time stamp. So one might conjecture that the gate only checks if a given time stamp is recent enough, and lets you out if that is the case. This is indeed how it works, and

2300012147483647

unlocks any gate (at least until 2038). Here is the same code in white, in case the color inverted one does not scan:

barcode with white bg

All things