Hexordia Weekly CTF Challenge 2024 - Week 4 Writeup

 

Android - TEaM U prep (15 points)

What item that Rocco was shopping for came back in stock? 

From the capitalized letters in the challenge " TEaM U prep", it suggested that we probably should look into the direction of Temu, a Chinese online marketplace app. The Temu app was also installed on the Android device:


The item that Rocco was shopping was likely browsed by Rocco in app or even added into shopping cart at some point. Following this direction, the Temu app SQLite databases from /data/data/com.einnovation.temu/databases directory have been checked one by one.

One of the SQLite databases "ChatDB_BCM6G5ASA5K73AN2N7S3TQYUS2MOBTVG2RFRUULJ_msgbox_2.db" contained some in-app messages that were pushed to Rocco. There was a summary text of "Almost sold out" from summary column where id = "10000010''. The relevant info column appeared to have contained a JSON object:



If this JSON object was sorted and beautified in NotePad++, it would appear this JSON object contained a warning of a "mason jars" item in Rocco's shopping cart was almost sold out.


Somewhere down in the same SQLite database, there was a summary text where id = "10000020" that stated "Your mason jars is back with stunning additions." Combining the messages of the mason jars item "almost sold out" and "back with stunning additions", we could establish that "mason jars" was the answer to this challenge question.



Android - Watch for ADditional straw (20 marks)

What kind of shell is stage 3 of the water filter? 

The inspection of "ChatDB_BCM6G5ASA5K73AN2N7S3TQYUS2MOBTVG2RFRUULJ_msgbox_2.db" had led to some additional discoveries. 

One of them would be for some entries, e.g. where id = '10000009' or '10000012', contained a JSON object that started with "key":"promotions-price-dropped-for-item-in-cart", also with JSON object "goods_list" and key "goods_name".


If this JSON object was sorted and beautified in NotePad++, it would appear this JSON object contained some items from Rocco's Temu shopping cart. One of them would be the mason jars from the last question and the other would happen to be a "Outdoor Water Filter":

On one hand, the "thumb_url" key carried an URL that should be the image thumbnail of the outdoor water filter:


On the other hand, the "goods_id" (601099521101599) could be used to trace the original item of this particular outdoor water filter on Temu:

Upon further inspection within the Temu item page, there was one product promotional image that describes the water filtering process for this product and there was a STAGE 3 that involved "Coconut Shell Activated Carbon Filter Layer". So we could establish the answer of the challenge as "Coconut".






Comments

Popular posts from this blog

Dumpster Diving in Google Photos Android App: "local_trash.db"

Hexordia Weekly CTF Challenge 2024 - Week 1 Writeup

Hexordia Weekly CTF Challenge 2024 - Week 2 Writeup