Welcome, Guest. Please Login or Register.
August 30, 2025, 06:03:03 PM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  English User Help  |  English Help  |  Howto secure YaBB ? « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Howto secure YaBB ?  (Read 541 times)
René
Noobie
*
Posts: 31


WWW
Howto secure YaBB ?
« on: May 06, 2002, 07:25:00 PM »
Reply with quote

Hello,

I'm going to host YaBB forums (trying) and because you cannot trust anyone I want to limit some admin settings.

I have disabled the file attachments and yabb pak. I also hide information about the database + path settings.

So I think an administrator can do no harm now except destroying his own forum. Am I correct?
Or can he do evil things on my host? Maybe with the html template?
Logged

Doe meer met uw chello internet verbinding : Chello Underground :)
Joseph Fung
Global Moderator
YaBB God
*****
Posts: 4512


Keep smiling: it makes others nervous.

WWW
Re:Howto secure YaBB ?
« Reply #1 on: May 06, 2002, 08:56:19 PM »
Reply with quote

Quote from: René on May 06, 2002, 07:25:00 PMHello,

I'm going to host YaBB forums (trying) and because you cannot trust anyone I want to limit some admin settings.

I have disabled the file attachments and yabb pak. I also hide information about the database + path settings.

So I think an administrator can do no harm now except destroying his own forum. Am I correct?
Or can he do evil things on my host? Maybe with the html template?
Because he can edit the template, he'll be able to run php commands.  To make it completely secure, you'll have to disable this as well, or modify the code so that PHP code can not be executed in the php template.
Logged

groundup
Disciple of Joe, Head Cleric
Mod Team
YaBB God
*****
Posts: 2983


Error 309: Please notify the administrator of this

WWW
Re:Howto secure YaBB ?
« Reply #2 on: May 07, 2002, 01:44:47 AM »
Reply with quote

ummm.. no need to even do this.  Boardnation will be out soon and people will have no need to use any other free host ;) jk
Logged

http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
fastfinancialfreedom.org
René
Noobie
*
Posts: 31


WWW
Re:Howto secure YaBB ?
« Reply #3 on: May 07, 2002, 07:49:48 PM »
Reply with quote

Hm ok, that's going to be hard :)
thnx
Logged

Doe meer met uw chello internet verbinding : Chello Underground :)
Joseph Fung
Global Moderator
YaBB God
*****
Posts: 4512


Keep smiling: it makes others nervous.

WWW
Re:Howto secure YaBB ?
« Reply #4 on: May 08, 2002, 12:04:19 AM »
Reply with quote

Alternately, if you have FTP, Telnet and SSH disabled, you can chmod the template file to something they can't write to.

Or, if you have FTP enabled but Telnet and SSH disabled, you can set a umask that forces the file to a certain set of permissions.
Logged

David
Destroyer Dave
Global Moderator
YaBB God
*****
Posts: 5761


I'm not a llama!

WWW
Re:Howto secure YaBB ?
« Reply #5 on: May 08, 2002, 03:01:11 AM »
Reply with quote

There's an easier answer but I won't tell you because you all should all use BoardNation.  ;D  No, I might tell you, no I won't be an ass so I will tell you, but only if you use BoardNation.  Now I am rambling, *David smacks himself.  I bet you too will smack your self when you see the answer.  Now get ready, get set, go.  Rename your template from template.php to template.html, now it won't parse the php.
I will later be smacked with a wet slimey fish for sharing that information but  . . .
 
* David is being drug away by the powers that be at BoardNation head quarters shouting and screaming trying to break free.
« Last Edit: May 08, 2002, 03:05:38 AM by David » Logged

groundup
Disciple of Joe, Head Cleric
Mod Team
YaBB God
*****
Posts: 2983


Error 309: Please notify the administrator of this

WWW
Re:Howto secure YaBB ?
« Reply #6 on: May 08, 2002, 03:06:32 AM »
Reply with quote

* groundup pulls out David-beating-stick..

lol
Logged

http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
fastfinancialfreedom.org
David
Destroyer Dave
Global Moderator
YaBB God
*****
Posts: 5761


I'm not a llama!

WWW
Re:Howto secure YaBB ?
« Reply #7 on: May 08, 2002, 03:06:59 AM »
Reply with quote

And my english teacher told me I sucked at creative writing, sheesh!
Logged

René
Noobie
*
Posts: 31


WWW
Re:Howto secure YaBB ?
« Reply #8 on: May 08, 2002, 04:54:43 PM »
Reply with quote

Quote from: David on May 08, 2002, 03:01:11 AMNow get ready, get set, go.  Rename your template from template.php to template.html, now it won't parse the php.

See, that wasn't so hard, I knew you would tell me ;D
Do you think that they can't do any harm with the template.html?

I have SSH access, is it possbile to protect the YaBB-directory so there is no way that they can access the other directories on my host?

boardnation.nl is coming!! 8)
« Last Edit: May 08, 2002, 04:57:53 PM by René » Logged

Doe meer met uw chello internet verbinding : Chello Underground :)
Joseph Fung
Global Moderator
YaBB God
*****
Posts: 4512


Keep smiling: it makes others nervous.

WWW
Re:Howto secure YaBB ?
« Reply #9 on: May 08, 2002, 05:59:01 PM »
Reply with quote

QuoteRename your template from template.php to template.html, now it won't parse the php.
This isn't guaranteed to work.  Go ahead - try it.  There's a fair chance it will still parse it.

The reason is in our initial version, we used a method of template import that would not work properly in safemode.  In this version the above suggestion would work.  In an effort to improve safemode functionality we altered the template inclusion routine.  It will most likely execute PHP code even in the HTML file now.
Logged

David
Destroyer Dave
Global Moderator
YaBB God
*****
Posts: 5761


I'm not a llama!

WWW
Re:Howto secure YaBB ?
« Reply #10 on: May 08, 2002, 08:26:46 PM »
Reply with quote

IT depends on how php is set up.  Fine, it depends on how apache is set up.  On my server, apache will not parse an html file as a php file.  Other servers, to aid lazy programmers, may parse html files with php.
Logged

David
Destroyer Dave
Global Moderator
YaBB God
*****
Posts: 5761


I'm not a llama!

WWW
Re:Howto secure YaBB ?
« Reply #11 on: May 08, 2002, 08:27:57 PM »
Reply with quote

Quote from: René on May 08, 2002, 04:54:43 PMDo you think that they can't do any harm with the template.html?
They could still put javascript into it but I doubt they could do harm to the server with it.
Logged

Joseph Fung
Global Moderator
YaBB God
*****
Posts: 4512


Keep smiling: it makes others nervous.

WWW
Re:Howto secure YaBB ?
« Reply #12 on: May 09, 2002, 01:30:19 AM »
Reply with quote

Quote from: David on May 08, 2002, 08:26:46 PMIT depends on how php is set up.  Fine, it depends on how apache is set up.  On my server, apache will not parse an html file as a php file.  Other servers, to aid lazy programmers, may parse html files with php.
This is incorrect - it's how PHP is setup.  Take a look at the code in subs.php and you'll see what I mean.  Don't think you're safe just because you're apache setup doesn't parse html files.
Logged

David
Destroyer Dave
Global Moderator
YaBB God
*****
Posts: 5761


I'm not a llama!

WWW
Re:Howto secure YaBB ?
« Reply #13 on: May 09, 2002, 02:04:26 AM »
Reply with quote

Yeah, you are right.  It is being included into a php file which is being executed.  Hmm, so much for my easy solution.
* David wants groundup to put away the whipping stick
Logged

groundup
Disciple of Joe, Head Cleric
Mod Team
YaBB God
*****
Posts: 2983


Error 309: Please notify the administrator of this

WWW
Re:Howto secure YaBB ?
« Reply #14 on: May 09, 2002, 03:12:50 AM »
Reply with quote

looks like someone *ahem* david *ahem* has some work to do ;)
Logged

http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
fastfinancialfreedom.org
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  English User Help  |  English Help  |  Howto secure YaBB ? « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.019 seconds with 16 queries.