KNet v1.01

Developed or developing a new product in PureBasic? Tell the world about it.
Killswitch
Enthusiast
Enthusiast
Posts: 731
Joined: Wed Apr 21, 2004 7:12 pm

KNet v1.01

Post by Killswitch »

I have been developing a webserver in Purebasic, its really simple to use and I hope someone can find a use for it! Vesion v1.0 was released last night and I've only fixed a small problem with the server to make it v1.01 this morning.

If you find any bugs, problems or just have any comments please email me at:

evil_grunger@hotmail.com

Edit:

Download will now work, sorry about the lack of screenies!

Download Here!
Last edited by Killswitch on Sat Feb 12, 2005 3:32 pm, edited 2 times in total.
~I see one problem with your reasoning: the fact is thats not a chicken~
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

cant download..
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Post by blueznl »

no screenie no download...
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Post by DoubleDutch »

cannot download...
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
Killswitch
Enthusiast
Enthusiast
Posts: 731
Joined: Wed Apr 21, 2004 7:12 pm

Post by Killswitch »

Really sorry for the problems. The download link should now work (it does work for me), so hopefully you'll all be able to see KNet!
~I see one problem with your reasoning: the fact is thats not a chicken~
Tommeh
Enthusiast
Enthusiast
Posts: 149
Joined: Sun Aug 29, 2004 2:25 pm
Location: United Kingdom

Post by Tommeh »

Ok i downloaded it and tryed it... My honest opinions? It needs a lot of work, It looks like a spruced up version of Atomic Web Server, and i'll tell you why it needs a lot of work.

Directory traversing is not blocked! This means if another person knows the name of the file, they can access ANY file they wish on your computer

The web server is very easy to crash by sending a long url string.

Good luck and have fun programming :D
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Post by blueznl »

exe but no source?
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
Killswitch
Enthusiast
Enthusiast
Posts: 731
Joined: Wed Apr 21, 2004 7:12 pm

Post by Killswitch »

Hey I'm not a stranger to hard work. You are right in one respect this webserver is based around Atomic but it is heavily modified (and I did get permission to sell the application commercially - but decided not to).
Directory traversing is not blocked! This means if another person knows the name of the file, they can access ANY file they wish on your computer
I have tried to replicate this and it doesn't seem to be true. Whenever a file is requested the base directory path is prefixed to the request file. If someone were to request C:\Windows it would end up as somthing like A:\Website\C:\Windows. A person could travel down into the sub directories of the root path, but I think this is an advantage. How many of you have seperate files on your server for seperate things, i.e. ../root/images/ ect. Please correct me if I am wrong on any of this.

In any case I will continue to update the program!

Edit:

Version 1.02 is now avaliable, with a new pop up menu for the task bar!

Download v1.02
~I see one problem with your reasoning: the fact is thats not a chicken~
User avatar
NoahPhense
Addict
Addict
Posts: 1999
Joined: Thu Oct 16, 2003 8:30 pm
Location: North Florida

Re: KNet v1.01

Post by NoahPhense »

Let me know if you need a place to host.. You can use my server.

- np

www.liquidbuzz.com
Tommeh
Enthusiast
Enthusiast
Posts: 149
Joined: Sun Aug 29, 2004 2:25 pm
Location: United Kingdom

Post by Tommeh »

Ok for instance:

Say i have mine with the root directory C:\home\webserver

Although you are adding C:\home\webserver onto the end, if somebody has a dir as \..\ regardless of the root directory, it will go one directory up

So we now have C:\home\webserver\..\ When you use any command to see if the file exists or read from it, it will read one directory up, and to do more than one directory, \...\ or \..\..\

So try it, place the web server in C:\program files\webserver, now create a file in C:\ called secret.txt, put something in it, and now try the url \..\..\secret.txt, so it might be http://127.0.0.1/../../secret.txt It will read straight from it!

This isnt just in windows its linux as well, the way to filter it out is to Remove any occourences of .. although there are other methods

Remove all occourences of the following:

..
/.
.\
/\
//
\\
\/
\.
./

That is just to be sure, i think there are a couple others but i'm really... really tired :shock:
Killswitch
Enthusiast
Enthusiast
Posts: 731
Joined: Wed Apr 21, 2004 7:12 pm

Post by Killswitch »

Thanks Tommeh I didn't realise that that could happen. I've taken your adivice and now any incomming URL request is filtered to remove any one of those 'up-on' paths. That brings KNet upto v1.03!

Thanks for all your suggestions, from now on all KNet information can be found on www.stormystudios.com. (You'll also be able to download KNet there).

Keep sending in your suggestions and comments!

Edit:

v1.04b now avaliable. This proliforation in updates is all thanks to yours, and others, advice and comments - please don't stop them!

Direct download:

Download v1.04b
~I see one problem with your reasoning: the fact is thats not a chicken~
User avatar
GeoTrail
Addict
Addict
Posts: 2794
Joined: Fri Feb 13, 2004 12:45 am
Location: Bergen, Norway
Contact:

Post by GeoTrail »

Tommeh, that's a well known risk for pretty much all "baby" servers.
Good that you pointed that out :)
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
Tommeh
Enthusiast
Enthusiast
Posts: 149
Joined: Sun Aug 29, 2004 2:25 pm
Location: United Kingdom

Post by Tommeh »

Uhmm... Theres more i've found out... quiet a few more :s Killswitch PM me if you need any info
Post Reply