[ Solution ] PicoCTF 2014 Web Exploitation : Delicious! - 60
- REVO
- Jun 16, 2015
- 2 min read
Problem :
You have found the administrative control panel for the Daedalus Coperation
Website: https://web2014.picoctf.com/delicious-5850932/login.php.
Unfortunately, it requires that you be logged in. Can you find a way to convince the web site that you are, in fact, logged in?
Hint :
Your cookie tells the site what your session number is. Maybe you can guess the value of the cookie for a user who's already logged in...
Solution :
When we open the given link , we are greeted with this message :

The message gives us a ' session id ' when we open this page. Refreshing the page doesn't help !
The message displayed clearly shows us that we need to authenticate as an user who has already logged in i.e , we need to supply a session id number that is less than the one given to . Then , we would be authenticated as a user who has already logged in .
From the name of the question , and the hint and with rest of the information that we have , it is clear that we need look for the cookies . For Google Chrome , we can use an extension called ' Edit this Cookie ' to edit and access cookies .
On opening Edit this Cookie , we see a value in it :

Well , the value that we see here and the the value that was shown on the page are same ! So , if we edit this value to something less , i.e, a value that has been already registered in the site , we can gain access . 25 was used in my case. You can input any desired value ( less than the given value ) . Clicking on the green button sends the value back to the site .
Now reloading the page gives us the flag !

flag : session_cookies_are_the_most_delicious



![[Guide] Turn Android into a file server](https://static.wixstatic.com/media/7db52a_a5944999195647eea09b969cf1dd2902.png/v1/fill/w_447,h_250,fp_0.50_0.50,q_35,blur_30,enc_avif,quality_auto/7db52a_a5944999195647eea09b969cf1dd2902.webp)
![[Guide] Turn Android into a file server](https://static.wixstatic.com/media/7db52a_a5944999195647eea09b969cf1dd2902.png/v1/fill/w_220,h_123,fp_0.50_0.50,q_95,enc_avif,quality_auto/7db52a_a5944999195647eea09b969cf1dd2902.webp)
![[ MOD ] Simple WhatsApp MoD](https://static.wixstatic.com/media/7db52a_08bd28ff5e4b4990ab274e00be72a972.jpg/v1/fill/w_447,h_250,fp_0.50_0.50,q_30,blur_30,enc_avif,quality_auto/7db52a_08bd28ff5e4b4990ab274e00be72a972.webp)
![[ MOD ] Simple WhatsApp MoD](https://static.wixstatic.com/media/7db52a_08bd28ff5e4b4990ab274e00be72a972.jpg/v1/fill/w_220,h_123,fp_0.50_0.50,q_90,enc_avif,quality_auto/7db52a_08bd28ff5e4b4990ab274e00be72a972.webp)
![[ GUIDE ] How to bypass Android pattern lock security without system wipe](https://static.wixstatic.com/media/7db52a_d9b3087e53dd4b92971151443d569a79.png/v1/fill/w_447,h_250,fp_0.50_0.50,q_35,blur_30,enc_avif,quality_auto/7db52a_d9b3087e53dd4b92971151443d569a79.webp)
![[ GUIDE ] How to bypass Android pattern lock security without system wipe](https://static.wixstatic.com/media/7db52a_d9b3087e53dd4b92971151443d569a79.png/v1/fill/w_220,h_123,fp_0.50_0.50,q_95,enc_avif,quality_auto/7db52a_d9b3087e53dd4b92971151443d569a79.webp)
![[ Write-Up ] [ HackCon15 ] [ Forensics ] Surprise , MF](https://static.wixstatic.com/media/7db52a_ded9b2df5d0e42208cd8d495646e35d2.png/v1/fill/w_447,h_250,fp_0.50_0.50,q_35,blur_30,enc_avif,quality_auto/7db52a_ded9b2df5d0e42208cd8d495646e35d2.webp)
![[ Write-Up ] [ HackCon15 ] [ Forensics ] Surprise , MF](https://static.wixstatic.com/media/7db52a_ded9b2df5d0e42208cd8d495646e35d2.png/v1/fill/w_220,h_123,fp_0.50_0.50,q_95,enc_avif,quality_auto/7db52a_ded9b2df5d0e42208cd8d495646e35d2.webp)
![[ GUIDE ] Build Tweaks for Android](https://static.wixstatic.com/media/7db52a_d79242ffb23c4268a40bb1e894ed6338.png/v1/fill/w_447,h_250,fp_0.50_0.50,q_35,blur_30,enc_avif,quality_auto/7db52a_d79242ffb23c4268a40bb1e894ed6338.webp)
![[ GUIDE ] Build Tweaks for Android](https://static.wixstatic.com/media/7db52a_d79242ffb23c4268a40bb1e894ed6338.png/v1/fill/w_220,h_123,fp_0.50_0.50,q_95,enc_avif,quality_auto/7db52a_d79242ffb23c4268a40bb1e894ed6338.webp)
Comments