zCMS [PHP, OOP, Phoenix, Secure]

Status
Not open for further replies.
There doesn't need to be a fix, use uberCMS's htaccess

---------- Post added at 05:23 AM ---------- Previous post was at 05:22 AM ----------

Then why did the kid code a fix for it? if its a discontinued exploit?

Also JimJam looked at the code himself and commented if you didn't already see.

Just because you can't code doesn't mean that you need to bash others' work. Get lost.
 
Notice: Undefined index: HTTP_CF_CONNECTING_IP in D:\HoloMAM\Desktop\Xampp\htdocs\zCMA\global.php on line 21
Title: Table 'uberdb.user_stats' doesn't exist
Text: Table 'uberdb.user_stats' doesn't exist :((
 
Notice: Undefined index: HTTP_CF_CONNECTING_IP in D:\HoloMAM\Desktop\Xampp\htdocs\zCMA\global.php on line 21
Title: Table 'uberdb.user_stats' doesn't exist
Text: Table 'uberdb.user_stats' doesn't exist :((

People have been complaining about getting hacked whilst using this, so I wouldn't recommend it. ;3
 
yeah thats fucked up but if you fix that + exploits + mysqli its good :D

There's nothing wrong with using MySQL aslong as you filter all input. Personally, I've started using MySQLi for the security functionalities(binding) it has, unlike others such as Cobe who just use it like if it was an object-oriented style of MySQL and don't use all of its potential.
 
There's nothing wrong with using MySQL aslong as you filter all input. Personally, I've started using MySQLi for the security functionalities(binding) it has, unlike others such as Cobe who just use it like if it was an object-oriented style of MySQL and don't use all of its potential.

What do you mean by binding? Like pre-pairing MySQL Queries?
 
If you control the amount of queries being run at one time. You don't need to enhance the way you code your queries or how MySQL operates and obviously it matters how you create the queries..Learn more about caching in general and such to keep the systems running cooler then the breeze :)
 
What do you mean by binding? Like pre-pairing MySQL Queries?

No, if you've seen Cobe's MySQLi class, you could see he prepares the query before executing, right?

Well, he doesn't really have a reason to prepare the query, since he isn't doing any further operations to the statement.
He should just do execute() and it'd be fine.

By binding I mean binding the parameters.

Example:

PHP:
<?php
$mysqli = new mysqli('localhost', 'my_user', 'my_password', 'my_database');

$stmt = $mysqli->prepare("INSERT INTO users VALUES (?, ?, ?, ?, ?)");
$stmt->bind_param('isssi', $id, $username, $password, $email, $credits);

$id = 1;
$username = "Kryptos";
$password = "783749374035RJFFMRMCUBRR894579";
$email = "[email protected]";
$credits = 1337;

$stmt->execute();

printf("%i Row inserted.\n", $stmt->affected_rows);

$stmt->close();
 
Status
Not open for further replies.
Back