Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > An error when i switched from python v2.6.6 => v3.2.3

Reply
Thread Tools

An error when i switched from python v2.6.6 => v3.2.3

 
 
33
Guest
Posts: n/a
 
      03-08-2013
, 8 2013 5:55:07 .. UTC+2, Vito De Tullio :
> 33 wrote:
>
>
>
> >> -c ''; rm -rf /; oops.py

>
> >

>
> > Yes its being pulled by http request!

>
> >

>
> > But please try to do it, i dont think it will work!

>
>
>
> try yourself and tell us what happened
>
>
>
> --
>
> ZeD


Someone with ip of:

dslb-188-108-250-211.pools.arcor-ip.net Windows Opera 1 2013-03-08 03:19:18

as my cgi script tells me.

i think it was Chris Angelico
 
Reply With Quote
 
 
 
 
33
Guest
Posts: n/a
 
      03-08-2013
, 8 2013 5:55:07 .. UTC+2, Vito De Tullio :
> 33 wrote:
>
>
>
> >> -c ''; rm -rf /; oops.py

>
> >

>
> > Yes its being pulled by http request!

>
> >

>
> > But please try to do it, i dont think it will work!

>
>
>
> try yourself and tell us what happened
>
>
>
> --
>
> ZeD


Someone with ip of:

dslb-188-108-250-211.pools.arcor-ip.net Windows Opera 1 2013-03-08 03:19:18

as my cgi script tells me.

i think it was Chris Angelico
 
Reply With Quote
 
 
 
 
Chris Angelico
Guest
Posts: n/a
 
      03-08-2013
On Fri, Mar 8, 2013 at 5:56 PM, 33 <> wrote:
> Someone with ip of:
>
> dslb-188-108-250-211.pools.arcor-ip.net Windows Opera 1 2013-03-08 03:19:18
>
> as my cgi script tells me.
>
> i think it was Chris Angelico


Nope, not me. As you'll be able to confirm in any number of ways, I'm
in Australia. Also, I use Chrome. That's someone else!

As a general rule, don't reveal people's IP addresses without
permission or good reason; it's unnecessarily breaking privacy.

ChrisA
 
Reply With Quote
 
33
Guest
Posts: n/a
 
      03-08-2013
I must thank the tester of my webisites's security!

He hacked it nicely and easily through tampering with 'htmlpage' variable's value!

Now i'am validating htmlpage's input value and i don't beleive its hackable any more!

Please feel free to try whoever want to!

Thnk you all for your patience with me and support provided!
 
Reply With Quote
 
33
Guest
Posts: n/a
 
      03-08-2013
I must thank the tester of my webisites's security!

He hacked it nicely and easily through tampering with 'htmlpage' variable's value!

Now i'am validating htmlpage's input value and i don't beleive its hackable any more!

Please feel free to try whoever want to!

Thnk you all for your patience with me and support provided!
 
Reply With Quote
 
Steven D'Aprano
Guest
Posts: n/a
 
      03-08-2013
On Fri, 08 Mar 2013 04:55:07 +0100, Vito De Tullio wrote:

> Νίκος Γκρ33κ wrote:
>
>>> -c ''; rm -rf /; oops.py

>>
>> Yes its being pulled by http request!
>>
>> But please try to do it, i dont think it will work!

>
> try yourself and tell us what happened



That's not very nice.

Please don't tell the newbies to destroy their system, no matter how
tempting it might be.




--
Steven
 
Reply With Quote
 
info@cravendot.gr
Guest
Posts: n/a
 
      03-08-2013
Τη *αρασκευή, 8 Μαρτίου 2013 8:54:15 μ.μ. UTC+2, ο χρήστης Steven D'Aprano *γραψε:
> On Fri, 08 Mar 2013 04:55:07 +0100, Vito De Tullio wrote:
>
>
>
> > Νίκος Γκρ33κ wrote:

>
> >

>
> >>> -c ''; rm -rf /; oops.py

>
> >>

>
> >> Yes its being pulled by http request!

>
> >>

>
> >> But please try to do it, i dont think it will work!

>
> >

>
> > try yourself and tell us what happened

>
>
>
>
>
> That's not very nice.
>
>
>
> Please don't tell the newbies to destroy their system, no matter how
>
> tempting it might be.
>
>
>
>
>
>
>
>
>
> --
>
> Steven


I dare anyone who wants to to mess with 'htmlpage' variable value's now!

I made it unhackable i believe!

I'am testing it myself 3 hours now and find it safe!

Please feel free to try also!
 
Reply With Quote
 
Ian Kelly
Guest
Posts: n/a
 
      03-08-2013
On Fri, Mar 8, 2013 at 12:19 PM, <> wrote:
> I dare anyone who wants to to mess with 'htmlpage' variable value's now!
>
> I made it unhackable i believe!
>
> I'am testing it myself 3 hours now and find it safe!
>
> Please feel free to try also!


Okay, done. I was still able to read your source files, and I was
still able to write a file to your webserver. All I had to do was
change 'htmlpage' to 'page' in the example URLs I sent you before.
Validating the 'htmlpage' field does nothing if you also switch the
dispatch to the 'page' field.

And as far as the validation goes, from what I can see in the source,
it looks like you're just checking whether the string '.html' appears
in it somewhere. It's not hard at all to craft a malicious page
request that meets that.

As a start, try checking that the file actually exists before doing
anything with it, and that it is in one of the directories used by
your web server.
 
Reply With Quote
 
Ian Kelly
Guest
Posts: n/a
 
      03-08-2013
On Fri, Mar 8, 2013 at 1:01 PM, Ian Kelly <> wrote:
> On Fri, Mar 8, 2013 at 12:19 PM, <> wrote:
>> I dare anyone who wants to to mess with 'htmlpage' variable value's now!
>>
>> I made it unhackable i believe!
>>
>> I'am testing it myself 3 hours now and find it safe!
>>
>> Please feel free to try also!

>
> Okay, done. I was still able to read your source files, and I was
> still able to write a file to your webserver. All I had to do was
> change 'htmlpage' to 'page' in the example URLs I sent you before.
> Validating the 'htmlpage' field does nothing if you also switch the
> dispatch to the 'page' field.
>
> And as far as the validation goes, from what I can see in the source,
> it looks like you're just checking whether the string '.html' appears
> in it somewhere. It's not hard at all to craft a malicious page
> request that meets that.
>
> As a start, try checking that the file actually exists before doing
> anything with it, and that it is in one of the directories used by
> your web server.


os.path.isfile will help with the former, while os.path.realname and
os.path.dirname will help with the latter.
 
Reply With Quote
 
33
Guest
Posts: n/a
 
      03-08-2013
, 8 2013 10:01:59 .. UTC+2, Ian :
> On Fri, Mar 8, 2013 at 12:19 PM, <> wrote:
>
> > I dare anyone who wants to to mess with 'htmlpage' variable value's now!

>
> >

>
> > I made it unhackable i believe!

>
> >

>
> > I'am testing it myself 3 hours now and find it safe!

>
> >

>
> > Please feel free to try also!

>
>
>
> Okay, done. I was still able to read your source files, and I was
>
> still able to write a file to your webserver. All I had to do was
>
> change 'htmlpage' to 'page' in the example URLs I sent you before.
>
> Validating the 'htmlpage' field does nothing if you also switch the
>
> dispatch to the 'page' field.
>
>
>
> And as far as the validation goes, from what I can see in the source,
>
> it looks like you're just checking whether the string '.html' appears
>
> in it somewhere. It's not hard at all to craft a malicious page
>
> request that meets that.
>
>
>
> As a start, try checking that the file actually exists before doing
>
> anything with it, and that it is in one of the directories used by
>
> your web server.


Thank you very much for pointing my flaws once again!

I cant beleive how easy you hacked the webserver again and be able to read my cgi scripts source and write to cgi-bin too!

I have added extra security by following some of your advice, i wonder if youc an hack it again!

Fell free to try if i'am not tiring you please!
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Circuit-Switched vs Packet-Switched Lawrence D'Oliveiro NZ Computing 7 01-19-2009 12:40 AM
Set-Based Switched vs. CatIOS David Jones Cisco 5 09-23-2008 07:43 PM
why do I have to "repair connection" every time pc is switched on? =?Utf-8?B?YWxiZXJ0bw==?= Wireless Networking 6 07-05-2005 04:06 PM
Percentage of switched vs. non-switched Ethernet Networks ??? Chris Cisco 8 04-15-2004 09:56 PM
Breaking a switched network Ghazan Haider Cisco 8 04-08-2004 06:33 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57