Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

CGI Security and Selena Sol

by Ovid (Cardinal)
on Sep 06, 2001 at 23:29 UTC ( [id://110712]=perlmeditation: print w/replies, xml ) Need Help??

Recently on the CGI beginners mailing list (see http://learn.perl.org), one Gunther Birznieks posted a message regarding a talk he gave at ApacheCon about CGI security. He posted a link to the slides used in the talk. The slides are at best a brief overview of the many issues involved, but do an excellent job of giving a background on some CGI security issues. What I found particularly pleasant about the slides is that he is quite candid about the security holes present in some of Selena Sol's earlier code (which he apparently also worked on). From his email:

Since me and Selena Sol have been around giving out open source web apps since 8 years ago (very early on the Web), we've of course seen the gamut of security holes, including those within our own past software.

So this talk was really an attempt (within a tiny 45 minute talk) of going through common problems from a long time ago and linking them up to problems that are more recent and have gotten little publicity but 2 years down the road may be as "rote" as knowing that filenames need to be filtered.

There's actually quite a bit of interesting stuff out there that has really only been "discovered" and publicized at all in the last year or two. Null byte is another huge issue few Perl programmers seem to know about/understand as it affects the file open() command in a subtle way yet I think it is not described in perldoc perlsec (it seems mostly focused on tainting and general validation issues).

As you can see from his comments, reading perldoc perlsec and then reading through his slides (and the URLs that he includes for more information) can give a programmer an excellent introduction to many CGI security issues.

++ to Selena Sol and Gunther Birznieks for being so forthright about these issues and attempting to further educate the Perl community about these problems.

Cheers,
Ovid

Vote for paco!

Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.

Replies are listed 'Best First'.
Re: CGI Security and Selena Sol
by Zaxo (Archbishop) on Sep 07, 2001 at 03:12 UTC

    For reference, the "null byte" or "poison null" issue is covered in Phrack 55.7. An excellent article, it will change your world if you haven't already learned the subject matter.

    After Compline,
    Zaxo

Re: CGI Security and Selena Sol
by adamsj (Hermit) on Sep 06, 2001 at 23:36 UTC
Re: CGI Security and Selena Sol
by TStanley (Canon) on Sep 07, 2001 at 03:09 UTC
    Selena and Gunther just released a book called Instant CGI/Perl, co-authored along with Peter Chines. I just got the book two days ago, and I will be posting a review probably tomorrow evening. I can say in advance that the review will be luke warm at best. :-/

    TStanley
    --------
    There's an infinite number of monkeys outside who want to talk to us
    about this script for Hamlet they've worked out
    -- Douglas Adams/Hitchhiker's Guide to the Galaxy

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlmeditation [id://110712]
Approved by root
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2024-04-19 11:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found