in reply to Error using -T...

powerhouse,
Taint is used to ensure your program doesn't do anything externally from your program with data that it has received externally.

What's line 88 anyway?

Cheers - L~R

Replies are listed 'Best First'.
Re: Re: Error using -T...
by powerhouse (Friar) on May 31, 2003 at 19:53 UTC
    Line 88 is this:
    require "$Page_Loc/$pg.conf";

    It is basically just the "page" coding, the actual content is stored in a database. I am just pulling in the Perl syntax for that page, IF it exists:
    if (-e "$Page_Loc/$pg.conf") { # line 88 above ;o) }

    I guess, I MIGHT have to put them all into the main system, and just use the page names as sub routines, and run them when that page is called... Or is there a different way to avoid getting that error?

    I am just not checking out that link the other person, Enlil I think, posted. Thanks everyone.


    Richard
      powerhouse,
      The problem is that you are requiring a file from tainted data. You will have to Untaint $pg first. I am not sure I would be doing it the same way you are if I was concerned about security.

      Cheers - L~R

        What security gap do you see there? The file requires one written in the back end, and it does not reply upon anything passed in the browser, except a page, and it only uses that to see if it exists, and when it passes it to the subroutine to get the title and content, I do security checks and use placeholders.

        I don't really know what else to guard for.

        What are you thinking?

        thx,
        Richard