|
-
Feb 6th, 2003, 06:06 AM
#1
Thread Starter
Frenzied Member
../ security issue *Resolved*
I got a web server that won't allow relative links like "../default/images/myimage.gif"
because the "../" is a security risk.
Does anyone have any ideas how to develop a site without
using double dots, and yet still be able to move it from one server to another?
Last edited by DeadEyes; Feb 7th, 2003 at 04:12 AM.
-
Feb 6th, 2003, 08:09 AM
#2
That's weird. Most servers I've come across do allow it.
Anyways, what about using:
/images/whatever.gif
Basically, the first forward slash specifies the root directory, and you can give the path from there onwards.
-
Feb 6th, 2003, 08:16 AM
#3
Thread Starter
Frenzied Member
So if I have a structure say
Code:
root
|
+---images
+---page
|
+--item
and I'm in item
using "/images" will take me to images
as oppossed to ../../images
-
Feb 6th, 2003, 08:46 AM
#4
Frenzied Member
Yep that's right. When you say your server doesn't allow it, do you mean when using a server side language like PHP, or just plain HTML? Could we see an example page? Seems kinda weird to me too.
-
Feb 6th, 2003, 10:48 AM
#5
Thread Starter
Frenzied Member
It's a specific setting that the sys admin has put in.
Something along the lines that if you view the source for
a page and you see ../ you can then guess the directory structure
and move to another directory and the permissions get messed up along the way.
I'm not sure if this is a win2k server issue or iis thing.
It effects everything
-
Feb 6th, 2003, 10:58 AM
#6
Thread Starter
Frenzied Member
I've found some info on it here
-
Feb 6th, 2003, 12:50 PM
#7
Frenzied Member
Ah I see. That's pretty stupid of MS to leave a security flaw like that in there. Sounds like Mendhak's solution should work.
-
Feb 6th, 2003, 01:01 PM
#8
Thread Starter
Frenzied Member
That's pretty stupid of MS to leave a security flaw like that in there
yes, although maybe stupid should be replaced with typical.
Hopefully it should sort it out, it's not something that has to be changed for a while,
I got bugs of my own creation to sort out first
-
Feb 6th, 2003, 10:57 PM
#9
Wow... I'm actually useful
-
Feb 7th, 2003, 04:11 AM
#10
Thread Starter
Frenzied Member
Originally posted by mendhak
Wow... I'm actually useful
Yes thank you; now don't go making a habit of it
-
Feb 7th, 2003, 05:53 AM
#11
LOL
-
Feb 7th, 2003, 07:38 AM
#12
Frenzied Member
Trust me, he won't
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|