L* R*
HOME FORUM DOWNLOADS
Content
  Links
     Browse SVN
     SVN Commit log
     Documentation (Wiki)
  Developers
     Taskmanager
User
Welcome, Guest. Please login or register.
Did you miss your activation email?
August 07, 2008, 06:41:35 PM

Login with username, password and session length
Search



Advanced search
Support GoPHP5.org
BeBot - An Anarchy Online chat automaton > Forum > Development > Feedback and Suggestions > Topic: .conf, security risk?
Pages: [1]   Go Down
« previous next »
Print
Author Topic: .conf, security risk?  (Read 840 times)
0 Members and 1 Guest are viewing this topic.
hobbes
Freshman
*
Offline Offline

Posts: 5


.conf, security risk?
« on: March 25, 2007, 07:20:09 AM »

Hi!

I'm no programmer, but it would seem that Bot.conf/Mysql.conf is a potential security risk for people who run the bot on their webspace.

By default, the bot is accessible through the Web in these cases (and some of the posts in the help forum seem to show that some people actually use a web browser to start the bot!), and since .conf is not a recognized PHP extension, it will display as text, showing your AO login info and MySql info.

Maybe I just don't get it, but I seem to remember from the little PHP I learned in school that you always use the .php extension to avoid this problem.

Cheers,
H
Logged
Alreadythere
BeBot Maintainer
Administrator
Grandmaster
********
Offline Offline

Posts: 1007


Re: .conf, security risk?
« Reply #1 on: March 25, 2007, 07:23:18 AM »

1) That may be a potential security risk, true. But

2) The bot shouldn't be run anywhere where it's accessible from outside anyways IMO.
Logged
hobbes
Freshman
*
Offline Offline

Posts: 5


Re: .conf, security risk?
« Reply #2 on: March 25, 2007, 08:16:24 AM »

Hell no, it shouldn't! But it would be an extremely easy fix, and I did see people in the support forum post code that showed they did run it in their webspace
Logged
Blueeagle
Omnipotent
BeBot Developer
Expert
********
Offline Offline

Gender: Male
Posts: 313



Re: .conf, security risk?
« Reply #3 on: March 25, 2007, 09:22:34 AM »

It is my opinion that, if you intend to run this bot in an area publicly availible, you should protect the directory with .htaccess or other access limitation provided by the service that makes it publicly availible in the first place.
Logged

The only problem that can't be solved by adding another wrapper is having too many wrappers.
Glarawyn
BeBot Developer
Champion
********
Offline Offline

Posts: 388



Re: .conf, security risk?
« Reply #4 on: March 25, 2007, 11:03:33 PM »

It's not a problem as long as you run the bot as intended.  Grin

Well, that's not totally true. But the security risks are known.

Besides, anyone who has php sockets enabled on their web server has bigger security issues than a .conf file with their AO or MySQL username/password in public web space.
Logged
Khalem
BeBot Founder
Administrator
Grandmaster
********
Offline Offline

Gender: Male
Posts: 667



WWW
Re: .conf, security risk?
« Reply #5 on: April 07, 2007, 08:58:09 AM »

I don't really see why we should fix this as it's not really our problem.

If someone chooses to be stupid enough to run it this way (which by the way usually means your violating the AUP of your provider) and not secure it, they really deserve all they have coming for them.

Imho, a better fix would be for the bot to start checking (if possible) if it's being called through a web browser and die() along with a clear warning in the documentation, even though nowhere is the approach to run using a webserver documented in any examples.
Logged

BeBot Founder and Fixer Kingpin
Madman coder and destroyer of good code
Vhab
BeBot Contributor
Experienced
*******
Offline Offline

Posts: 155


WWW
Re: .conf, security risk?
« Reply #6 on: April 07, 2007, 03:22:14 PM »

I like the latter idea.
Could be as easy as checking for certain $_SERVER vars being set.
Imo implement it and prevent people from abusing a web server as bot host.
Logged
Khalem
BeBot Founder
Administrator
Grandmaster
********
Offline Offline

Gender: Male
Posts: 667



WWW
Re: .conf, security risk?
« Reply #7 on: March 05, 2008, 05:26:31 PM »

One year on and i finally got around to fixing this...
Logged

BeBot Founder and Fixer Kingpin
Madman coder and destroyer of good code
Pages: [1]   Go Up
Print
BeBot - An Anarchy Online chat automaton > Forum > Development > Feedback and Suggestions > Topic: .conf, security risk?
« previous next »
 
Jump to:  

Recent
KOS Module w/ Guild KOS
by Theoris
[Today at 02:55:00 PM]

!items bow - 0 Results
by enhance
[Today at 11:00:27 AM]

nano
by Nogoal
[Today at 09:59:30 AM]

problem with !items
by montauk
[Today at 08:43:10 AM]

Ported Modules
by Organizer
[Today at 08:41:27 AM]

Depot - an old module rev...
by kaagee
[Today at 08:40:32 AM]

Unable to parse items: er...
by Vrykolas
[Today at 07:54:54 AM]

Script module
by Veloraptor
[Today at 05:49:40 AM]

Scripts.
by Veloraptor
[Today at 03:51:12 AM]

Teamspeak manager
by enhance
[August 06, 2008, 11:11:52 PM]
Stats
Members
Total Members: 900
Latest: Theoris
Stats
Total Posts: 10143
Total Topics: 1368
Online Today: 30
Online Ever: 168
(July 01, 2007, 09:30:02 PM)
Users Online
Users: 4
Guests: 32
Total: 36
healingpower
Wobin
Zeephonz
kelmino

Powered by SMF 1.1.5 | SMF © 2006-2008, Simple Machines LLC
TinyPortal v0.9.8 © Bloc | NewDef design by Bloc
Page created in 0.147 seconds with 28 queries. (Pretty URLs adds 0.033s, 4q)
Loading...