Basic Mission 7

Learn new things
Forum rules
DO NOT POST ANSWERS OR SPOILERS! [IE: Mission Links, Mission File Names/Pages, Scripts, etc.]

Posting these will result in warnings/bans!

Re: Basic Mission 7

Post by fashizzlepop on Sat Jan 05, 2013 10:06 pm
([msg=72054]see Re: Basic Mission 7[/msg])

DaMoNarch wrote:I take it that most web admins would fix it so that this wouldn't work.
Correct, most wouldn't NOT filter user input.

NEVER trust the user.
The glass is neither half-full nor half-empty; it's merely twice as big as it needs to be.
User avatar
fashizzlepop
Moderator
Moderator
 
Posts: 2145
Joined: Sat May 24, 2008 1:20 pm
Blog: View Blog (0)


Re: Basic Mission 7

Post by vaibhavdiwase on Sun Jan 06, 2013 1:48 pm
([msg=72093]see Re: Basic Mission 7[/msg])

DeathxFish wrote:ok listen when you know how to execute different commands at the same time (google unix commands its like the first link) then look for something obscure and when i mean obscure i really really really mean it. and like it says its a file (think back to mission 3 - what did u have to do with that file?) well hope it didnt give too much away but i think its better then just telling someone to go learn some unix commands and leave them hanging

:roll: thanks mate.. was stuck after listing the files
always remember the basic stuff

ok here are clear hints for some people still stuck
1. google 'unix separate commands on same line'
2. use that separator (do not pipe) and enter a basic unix command required to list all the files located on unix server
3. now remember some basic html knowledge from level 3

if you still don't get it.. god bless you!
Charlie The Joker
vaibhavdiwase
New User
New User
 
Posts: 2
Joined: Sat May 21, 2011 11:38 pm
Blog: View Blog (0)


Re: Basic Mission 7

Post by shailx7 on Thu Jan 10, 2013 6:53 am
([msg=72178]see Re: Basic Mission 7[/msg])

Please clear me why "passwd" command doesnt work???
shailx7
New User
New User
 
Posts: 3
Joined: Thu Jan 10, 2013 6:46 am
Blog: View Blog (0)


Re: Basic Mission 7

Post by fashizzlepop on Thu Jan 10, 2013 7:25 am
([msg=72180]see Re: Basic Mission 7[/msg])

shailx7 wrote:Please clear me why "passwd" command doesnt work???

That command generally requires user interaction, not to mention it would be affecting the user on the machine, not the password for the basic 7 form. It doesn't just display a person's password either.
The glass is neither half-full nor half-empty; it's merely twice as big as it needs to be.
User avatar
fashizzlepop
Moderator
Moderator
 
Posts: 2145
Joined: Sat May 24, 2008 1:20 pm
Blog: View Blog (0)


Re: Basic Mission 7

Post by SleepIsForTheMeek on Thu Jan 17, 2013 12:36 am
([msg=72312]see Re: Basic Mission 7[/msg])

looooool
i was trying to cat the pass file -.-

epic facepalm.
SleepIsForTheMeek
New User
New User
 
Posts: 1
Joined: Thu Jan 17, 2013 12:34 am
Blog: View Blog (0)


Re: Basic Mission 7

Post by fashizzlepop on Thu Jan 17, 2013 3:25 am
([msg=72314]see Re: Basic Mission 7[/msg])

SleepIsForTheMeek wrote:looooool
i was trying to cat the pass file -.-

epic facepalm.

I've been surprised how many people have tried that. ;) Nice thinking.
The glass is neither half-full nor half-empty; it's merely twice as big as it needs to be.
User avatar
fashizzlepop
Moderator
Moderator
 
Posts: 2145
Joined: Sat May 24, 2008 1:20 pm
Blog: View Blog (0)


Re: Basic Mission 7

Post by indestructibleguy on Fri Jan 18, 2013 5:17 am
([msg=72346]see Re: Basic Mission 7[/msg])

Freakin' windows coding. All I have to say is 'dir da dir'. oh, and remember, UNIX, NOT Windows. :D
indestructibleguy
New User
New User
 
Posts: 1
Joined: Fri Jan 18, 2013 5:13 am
Blog: View Blog (0)


Re: Basic Mission 7

Post by KthProg on Wed Jan 23, 2013 7:55 pm
([msg=72573]see Re: Basic Mission 7[/msg])

as far as with the concept of placing several commands on one line, so that your command runs after the server is done executing the expected command, could you also do that to php file or some java code or would it simply interpret it as a string?
User avatar
KthProg
Poster
Poster
 
Posts: 219
Joined: Wed Jan 23, 2013 7:06 pm
Blog: View Blog (0)


Re: Basic Mission 7

Post by fashizzlepop on Wed Jan 23, 2013 8:04 pm
([msg=72574]see Re: Basic Mission 7[/msg])

KthProg wrote:as far as with the concept of placing several commands on one line, so that your command runs after the server is done executing the expected command, could you also do that to php file or some java code or would it simply interpret it as a string?

Good question.

The reason the mission is solved the way it is is because something like this is being executed:
Code: Select all
syscmd('cal ' + userinput)

That's pseudocode but you should get the point. By placing your code directly after 'cal' you are escaping the cal command and then running your own using linux shell conventions. This means that if you had a PHP or Java script that did the same thing, it would work there too. The point is, if you are directly running user input without sanitizing it you will probably be exploited. If you type in the exploit into a program that simply prints the entered text, it will *probably* just print what you typed, because at no point is it executing your input.

Tl;dr: if you're Executing the user input directly, you're vulnerable.
The glass is neither half-full nor half-empty; it's merely twice as big as it needs to be.
User avatar
fashizzlepop
Moderator
Moderator
 
Posts: 2145
Joined: Sat May 24, 2008 1:20 pm
Blog: View Blog (0)


Re: Basic Mission 7

Post by Slowbrain on Sat Jan 26, 2013 12:39 pm
([msg=72665]see Re: Basic Mission 7[/msg])

Eureka !
I solved mission 7, a mix of luck and hard work, it sounds very much like real life.
But i spent lot of energy wondering about "obscurely".
What, where is the "obscurely"
Any help to get?
Slowbrain
New User
New User
 
Posts: 1
Joined: Sat Jan 26, 2013 12:19 pm
Blog: View Blog (0)


PreviousNext

Return to Basic

Who is online

Users browsing this forum: No registered users and 0 guests