wow .. I used to code like this and never thought of that .. shame on me
:( Time to update some old apps. One thing you can do is not put the whole
file name in the URL. Something like:
www.example.com/default.cfm?go=somepage
and in your default.cfm:
<cfinclude tmaplate="#go#.cfm">
This doesn't solve all of the problems, but it gives the evil hacker a
*little* less information.
Another thought .. what happens if someone figures out your strategy and
tries to access pages directly instead of going though you default.cfm?
(www.example.com/somepage.cfm) It *could* be a problem :)
switch to fusebox (you can learn the basics in a day) .. it's sort-of the
same concept and will get rid of both of those situations. I used to resist
it, but now I swear by it :)
Todd
----- Original Message -----
From: "Angel Stewart" <[EMAIL PROTECTED]>
To: "CF-Community" <[EMAIL PROTECTED]>
Sent: Friday, April 13, 2001 8:42 PM
Subject: Something to look out for: Recursive CFINCLUDE..
> Erika just reminded me of something I was supposed to pass onto the list.
>
> Someone from Macromedia,(thanks lots :) ) gave me a heads up to a glaring
> error that existed in my code.
>
> In order to keep the site simple, I am using one default template at
> default.cfm that calls all other pages and images that I want to view
> through URL variables.
>
> However..I never considered what would happen if some enterprising soul
was
> to put default.cfm?page=default.cfm.
>
> I never put a condition (<CFIF blah blah AND page neq 'default.cfm'>)
around
> the CFINCLUDE to account for something like that happening.
>
> Of course what would happen is a nice long loop and the host's servers
> churning merrily in the background using up CPU Cycles and memory :)
>
> I know its not an error that you experienced guys and gals might make, but
> there may be a few that could benefit from the tip beside me :)
>
> I'll have to scan through CFWACK again and see if that warning about this
> possible error with CFINCLUDE was in there ;-)
>
> -Gel
>
>
>
>
> -----Original Message-----
> From: Erika L Walker [mailto:[EMAIL PROTECTED]]
>
> Yeah, but how come when I go visit the site there's this huge old ERROR? I
> didn't get that from your site Gel!
>
> Erika
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists