SimpleBB - Completely Re-engineered

Your Site said:
GrindSquad » SimpleBB » Headquarters » test » View
You need to make those links. Navigation is very poor.

I like what you have so far on the technical ends- You have more done than I thought ;)

The posting works and all that, but again, after I post I get lost. There's no navigation other than the top link to home. So fix that first, then work on the theme. After a user posts, it should redirect to their post or at least the topic it's on. Same when they create everything, just take them to the post.

Once that's done, maybe make an edit function so the users can edit their own posts.
 
Tested it, it's pretty good. Simple, like the name.
The design is okay, it's not horribly bad once you install it, but if you just view it on his host it looks like crap since it's not your own.

Though a lot of features are missing, I hope it will grow into something big.
 
Tested it, it's pretty good. Simple, like the name.
The design is okay, it's not horribly bad once you install it, but if you just view it on his host it looks like crap since it's not your own.

Though a lot of features are missing, I hope it will grow into something big.

I don't know whether I want to like or hate that comment. lol
:P
 
It's been a long time since I've updated this thread, so lemme giv e you the updates!

Updates:
  • New Theme Created
  • Maximize/Minimize Categories
  • Client Session instead of Server Session (Cookies)
  • Login Redirection
  • Logout Redirection
  • New/Read Thread (Controlled By Cookies)
  • Administrator CP (Started)
  • Category Description
  • Custom BBCode

Under Construction:
  • Administrator CP
  • User CP
  • Advanced Editor
  • Private Messaging
  • Profile Backup and Restore
  • Moderator System

The Alpha II Release 1 will be released soon, once all the "Under Construction" stuff is done!
 
They say a picture's worth 1,000 words..

You're not ready to switch to cookies yet for you don't understand them. I think your little "Hack attempt detected" message is cute, but it sure is easy to get passed!

[Check attachment]

I don't know what Tony's PW is, but I know it's not "demo", and I also know I don't need to know it to access his account. If you had any kind of features I'd be able to edit/delete his posts and update his account.. But you don't, so.. there's not much I can do except add more threads/posts.

Get "Web Developer" and "Firebug" for firefox.. Oh, and for the 50th time, please find an alternative to the <center> tag... It's really not helping your cause if you can't figure out how to use mathematics to center elements instead of deprecated, faulty, text centering methods. :sleep:

Here's a little trick:
Code:
margin-left:auto;
margin-right:auto;
 

Attachments

  • simplebb_issues - SimpleBB - Completely Re-engineered - RaGEZONE Forums
    simplebb_issues.webp
    83.8 KB · Views: 61
Last edited:
They say a picture's worth 1,000 words..

You're not ready to switch to cookies yet for you don't understand them. I think your little "Hack attempt detected" message is cute, but it sure is easy to get passed!

[Check attachment]

I don't know what Tony's PW is, but I know it's not "demo", and I also know I don't need to know it to access his account. If you had any kind of features I'd be able to edit/delete his posts and update his account.. But you don't, so.. there's not much I can do except add more threads/posts.

Get "Web Developer" and "Firebug" for firefox.. Oh, and for the 50th time, please find an alternative to the <center> tag... It's really not helping your cause if you can't figure out how to use mathematics to center elements instead of deprecated, faulty, text centering methods. :sleep:

Here's a little trick:
Code:
margin-left:auto;
margin-right:auto;

WOAH.
That's bad.

Forgot all about cookie vulnerabilities. T_T

---------- Post added at 07:13 PM ---------- Previous post was at 05:44 PM ----------

Patched.
Try it now. :P
 
Last edited:
Aren't they supposed to be better for nonsensitive stuff?

Also, because i can control sessions better?
:O

They are made completely useless by server-side session states. The only thing you could make an argument for us making a cookie to hold a session id key you store in a table somewhere the authenticates the person so they don't have to log-in at every visit of your forum. Anything outside of that is much more easily done (and makes more sense to do) using session variables on the server.
 
They are made completely useless by server-side session states. The only thing you could make an argument for us making a cookie to hold a session id key you store in a table somewhere the authenticates the person so they don't have to log-in at every visit of your forum. Anything outside of that is much more easily done (and makes more sense to do) using session variables on the server.

The only cookies I'm storing are the user id, user name, and user session.
THe session makes sure that the exploit spn showed doesn't work.
 
Why are you creating the $sql object over and over again when you have included functions.php?

If you have created the $sql object in fucntions.php and include it, your other files will inherit it.

You have also created the object more than once inside the same file. it isn't needed. Once created, it can be used over and over.

PHP:
	$sql = new SQL();

	$usrnm = $sql->protect($user);
	$password = $sql->protect($pass);
	$ptitle = $sql->protect($title);
	$pmessage = $sql->protect($message);
	$pposter = $sql->protect($poster);
	$pisthread = $sql->protect($isthread);

Would save execution time and less code.

PHP:
$conn = @mysql_connect($host, $user, $pass);
$db = @mysql_select_db($db, $conn);

if(!$conn || !$db)
{
	die("Error connecting to the database.");
}

Could of been..

PHP:
$conn = @mysql_connect($host, $user, $pass);
$db = @mysql_select_db($db, $conn) or die("Error connecting to the database.");

be the same as above, just less execution time.
 
Last edited:
What data is used to make the hash for sbbsession?

Oh, and storing the user ID/username (either) is pointless or insecure. All you should need is a hash of the user+pass, (such as sbbsession, maybe). Nobody can crack that without knowing the user+pass, and they wouldn't need to if they did. It's simple.......... SO SIMPLE!

In fact, wait... Even That's redundant- to a point. You don't even need to hash the user+pass... Look, try a procedure more like this: [It's taboo to store raw password data in cookies, but someone actually has to steal their cookies for the particular site in order to get it. If a user is that insecure, technically they shouldn't be ENTERING a password in the first place.]

Code:
- User enters site.
- If Session[user] & Cookie[pass] are defined
- - continue
- else :

- - If Post[user] & Post[pass] are defined
- - - Cookie[user] = Post[user]
- - - Cookie[pass] = Post[pass]

- - If Cookie[user] & Cookie[pass] are defined
- - - Session[user] = sql_escape(Cookie[user])
- - - Session[pass] = md5(Cookie[pass])

- check_user_data(Session[user],Session[pass])
check_user_data returns the number of rows for a query that selects an id from the users table where user+pass are equal to their alter-ego session values.

If true, the user is seen as logged in. False, they are not logged in as anyone. No silly "Ah, being hacked!" messages, they're just immature. Also, there's no purpose for those lines in any application that doesn't expect to be getting hacked.

Since the cookies+session values are always the same (this should be declared at the top of all pages), then you only need to check the one with highest priority. Cookies are optional, if the user ticks the box that says "Remember Me", then they get a couple extra cookies, otherwise they only get the PHPSessID cookie.

The purpose of the cookies are solely for keeping a user logged in after the session is over. So if they visit your site with cookie variables, then they get turned into session variables, and cookies are never heard from again until the next time a session is created. That's why I chose to make them literally, identical of the form variables submitted.

If for whatever reason you change the way you encrypt the password or whatever, people who come back with user+pass cookies won't notice any problems, because the user+pass are compliant with the log-in form, and everything gets turned into Session[name]. All you'd have to change is the session variables, because they're the most reliable, and will surely have the data we need, whenever present. That data will come from the client [as GET, POST, or COOKIE]. But it will be escaped, in it's own way, before being compared with/inserted to the database in the form of a query.

Security is a breeze, just recognize every single point that makes a program insecure- that is, wherever the client can manipulate (or even view in some cases) ANY data on your server.
 
Last edited:
Back