Mossad Challenge - 5776
A picture was posted in "Israel HaYom" newspaper on Yom Hazikaron  by Mossad:
On the right side of the image it says "ARE YOU READY FOR A CHALLENGE?" and in between those words it says "IP". Based on the selected text we can assume the selected hex digits are the ones that make the ip we are looking for.
Using a calculator we got (82)16=(130)10 (d3)16=(211)10 (54)16=(84)10 (aa)16=(170)10. We entered the ip (18.104.22.168) into a browser and got this page:
Clicking on "Start Challenge" brought us to this page:
Uploading a few files helped us find out we were looking for a .png image with a particular xmodem-crc and within a certain size range, so we tried to find what that image was.
We were able to open the image that was on the left side of the page and investigate its URL: http://22.214.171.124/challenge1/get-image?name=logo.png&h=87d41d15f&multiple=0
After some trial and error we found that the "h" in the URL was the - spots in the md5 hash of the file name (characters 4-12). We also wondered what the "multiple" parameter is, after playing around with it we see that when it has the value
1 we get a list of the file name:
["logo.png"]. Taking all this into account we tried to see if maybe there are other files on the server, so we hashed
\* and took the 9 digits discussed earlier (9dae361af) and put these values in the URL: http://126.96.36.199/challenge1/get-image?name=*&h=9dae361af&multiple=1.
This is what we got
["last-login.png", "map.png", "themissingpiece.png", "logo.png", "a.jpg", "fingerprint.jpg"].
We opened all the images:
After attempting to upload all of them we found that the only one that has the correct crc is "last-login.png":
We gathered from this that we need to upload a different image with the same crc. After some research we discovered that crcs can be easily manipulated by adding 4 bytes to the file and monitoring the affect they have. We wrote a script that helped us do that and got a new image that lets us login.
As we can see more options became available in the menu. Going through them we found that we have access to the "Cells" and "Door Control" pages.
In the "Door Control" page we got what appears to be a code in base64:
Using an online decoder we got what appeared to be some sort of file, the file header PK told us it was a zip file so we saved the decoded text with that extension. Extracting the zip gave us
DoorControl.exe that at first seemed to do nothing at all. Running It through OLLYDBG we discovered it was looking for a file:
C:\\doors\\config.txt and there were also hints the content of the file needed to be
c:\\OpenDoors.key. We created this file and ran the exe, this time it requested an input which we got from the "Cells" page:
Entering the URL we got from the exe we arrived at this page (YAY!):
Turns out the "multiple" parameter was just a time waster, gg Mossad.
Start Challenge we got redirected to http://188.8.131.52/challenge2/access-denied.
Using Wireshark we discovered that there was a commented out URL in the network packet http://184.108.40.206/challenge2/pk. This downloaded
x.zip inside that we found 2 files
port\_knocking.cfg contained a list of ports to knock on and a destination port. After accessing the remote server we found some files most of which were useless. The most interesting one is
login.exe. Running the exe we get a message box containing a URL:
We get to a page containing two almost identical bitmaps:
We compared the images and found the correct password (Yay again):
And here "random" was irrelevant (well so were most of the files on the server). Also I can only assume that Mossad messed up with the zip because newer versions had no problem unzipping the file whereas old versions unzipped a different text file that said "Not that easy…" (or something to that affect). Maybe the lessen is to keep your software up to date…
Hopefully more will be added soon. (guess not RIP)
"Start Challenge" brings us to 220.127.116.11/challenge3/start where there is a message:
Transmitting to your.ip:XXXXX and a 5 second counter. "your.ip" is the ip of the device you're using and "XXXXX" is a random port that changes on every refresh. I guess we were supposed to do some sort of port forwarding but we didn't have that kind of access rights where we were working on this.
Sadly the challenge has ended (19/05/2016), maybe next time.