Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Can I hack this perl thing ?

Reply
Thread Tools

Can I hack this perl thing ?

 
 
Mihir
Guest
Posts: n/a
 
      02-26-2007
I am a beginner to perl. I have a setup a page on an apache server
which has its addr like
http:// <name of server> :8088/cgi-bin/names.pl?id1=xx&id2=yy

This page contains a list of names of a few friends. This page is made
when a friend of mine registers in my guestbook. Now the question is
that this above address is displayed in the browser everytime a friend
accesses their account. So he/she can see their own page but can a
friend of mine get to this page and somehow modify its contents and
see the list of all my friends that exist and show up when the xx
value of id1 or id2 change?

Can somebody please advice, so that I can know how secure this page of
mine is.....

Thank you for your time in advance ....


--
MK

 
Reply With Quote
 
 
 
 
Jürgen Exner
Guest
Posts: n/a
 
      02-26-2007
Mihir wrote:
> I am a beginner to perl.


Irrelevant because your question has nothing at all to do with Perl.

> I have a setup a page on an apache server
> which has its addr like
> http:// <name of server> :8088/cgi-bin/names.pl?id1=xx&id2=yy
>
> This page contains a list of names of a few friends. This page is made
> when a friend of mine registers in my guestbook. Now the question is
> that this above address is displayed in the browser everytime a friend
> accesses their account. So he/she can see their own page but can a
> friend of mine get to this page and somehow modify its contents and
> see the list of all my friends that exist and show up when the xx
> value of id1 or id2 change?


Maybe, impossible to tell from your description. Do you authenticate your
users?
And assign permissions accordingly?

> Can somebody please advice, so that I can know how secure this page of
> mine is.....


Without a thourough security analysis of you system, staring with the OS,
including the web server setup, and then last but not least your code it is
impossible to answer the question. A trivial test would be to just try it.
If you can get in as John Doe then you know it's not secure. Of course if
you can't get in that only means that _you_ weren't able to find a hole,
someone else might very well still might be.

Just to give you and idea of the complexity: Professional software security
companies charge 6-digit sums to do a security analysis of medium-sized web
applications.

Anyway, as I mentioned before: your question has nothing to do with Perl.

jue


 
Reply With Quote
 
 
 
 
Mirco Wahab
Guest
Posts: n/a
 
      02-26-2007
Mihir wrote:
> I am a beginner to perl. I have a setup a page on an apache server
> which has its addr like
> http:// <name of server> :8088/cgi-bin/names.pl?id1=xx&id2=yy
>
> This page contains a list of names of a few friends. This page is made
> when a friend of mine registers in my guestbook. Now the question is
> that this above address is displayed in the browser everytime a friend
> accesses their account. So he/she can see their own page but can a
> friend of mine get to this page and somehow modify its contents and
> see the list of all my friends that exist and show up when the xx
> value of id1 or id2 change?


I'd create a sha1-hash of "xx_yy", like

...
use Digest::SHA1 qw(sha1_hex);
...
my $friends_name = "xx";
my $friends_email= "yy";
$newid = sha1_hex( $friends_name . '_' . $friends_email );
...
// now: $newid = "1df1f88fa38f0906cf09da207e1c4ae005a146bd";
...


gives then:

http:// <name of server> :8088/cgi-bin/names.pl?id=1df1f88fa38f0906cf09da207e1c4ae005a146 bd

or (with working /path_info/)

http:// <name of server> :8088/cgi-bin/names.pl/1df1f88fa38f0906cf09da207e1c4ae005a146bd

of course, the "ID" of your people will be this
key from now on.But nobody ever on earth will
be able to make guesses

Regards

M.
 
Reply With Quote
 
Joe Smith
Guest
Posts: n/a
 
      02-26-2007
Mihir wrote:

> http:// <name of server> :8088/cgi-bin/names.pl?id1=xx&id2=yy
>
> So he/she can see their own page but can a
> friend of mine get to this page and somehow modify its contents and
> see the list of all my friends that exist and show up when the xx
> value of id1 or id2 change?


If names.pl implements some sort of password scheme, then I expect that
the friend of yours won't be able to change anything.

If names.pl does not use passwords, then you are in deep doo-doo.
In that case, delete everything and start over.
-Joe
 
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
Canon's can't hack bad weather RichA Digital Photography 4 02-11-2009 05:22 PM
reflection: can I hack the class to make it public? szczepiq Java 4 04-30-2008 04:00 AM
Hack can upgrade XP Home to XP Pro Lite??? =?Utf-8?B?0KHQsNGI0LA=?= Windows 64bit 16 06-15-2005 11:31 PM
one thing solved, but other terrible thing occur... Zam ASP General 1 03-14-2005 06:09 PM
Can you hack Salvia divinorum? Many can't. dusenostachys@yahoo.com Computer Security 0 03-02-2005 12:27 PM



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