Challenge Name: Cheers
Go search for what cheers you up
This is our challenge link: Cheers » CyberTalents
After hitting the challenge link, this is our target:
and it looks like:
Ops!! Can You Fix This Error For Me Please ??!
Notice: Undefined index: welcome in /var/www/html/index.php on line 14
we have Undefined index: welcome in … which means variable welcome doesn’t have a value, so what we would do to fix this error is giving a value to this variable by adding ?welome=”mohamed”
As we see we’ve got another error message here which is
Notice: Undefined index: gimme_flag in /var/www/html/index.php on line 19
So now we have another variable which is ‘gimme_flag’ so now we need to put this varible into the URL to give it anyvalue to get the flag, so let’s add this and symbol & after ?welome=”mohamed”
so it looks like → ?welcome=”mohamed”&gimme_flag=”blablabla”
and finally we got the flag:
lol, I don’t like hiding flags bro this is the flag :)
FLAG{k33p_c4lm_st4rt_c0d!ng}
the main idea here that we just gave values to the variables that didn’t get any value and we used the and symbol that used in url to include more than variable “&” and we put our valuse then we got the flag :)