Pages:
Author

Topic: OpenEx: Progress Report - 95% launching this week - page 3. (Read 9591 times)

hero member
Activity: 686
Merit: 504
always the student, never the master.
The code posted so far here scares me. Why are you not using mysql prepared statements? You're just asking to be injection attacked.

i don't know how to use them. i tried, but it makes getting results harder. i have < 6 months experience. maybe one of you really smart guys would like to join the staff in a paid position as dev # 3? if not, maybe you would like to be paid nicely to convert all our queries to PDO? I'm willing to accept that i don't know everything there is to know, and that one of you take our work and make it alot better. any takers?
legendary
Activity: 1008
Merit: 1007
The code posted so far here scares me. Why are you not using mysql prepared statements? You're just asking to be injection attacked.
legendary
Activity: 1344
Merit: 1001
full member
Activity: 182
Merit: 100
Stablecoin may in fact find a home on the exchange, since we are having problems with Gridcoin and there are varying reports on whether the coin actually works as intended or not.

Thanks for the feedback, we'll keep our fingers crossed and await the verdict!
hero member
Activity: 686
Merit: 504
always the student, never the master.
hero member
Activity: 686
Merit: 504
always the student, never the master.
we have discussed this privately, and we will only take one more coin. Currently  we are researching on what coin is worthy.

r3wt : I guess there is no harm in me asking if SBC could be included in that research for the 'one more coin'.  Dev is back on it and working to get the additional features into it & bitcointalk thread is well attended.

Either way, good luck with the release!  Smiley

Stablecoin may in fact find a home on the exchange, since we are having problems with Gridcoin and there are varying reports on whether the coin actually works as intended or not.
full member
Activity: 182
Merit: 100
we have discussed this privately, and we will only take one more coin. Currently  we are researching on what coin is worthy.

r3wt : I guess there is no harm in me asking if SBC could be included in that research for the 'one more coin'.  Dev is back on it and working to get the additional features into it & bitcointalk thread is well attended.

Either way, good luck with the release!  Smiley
member
Activity: 86
Merit: 10
hero member
Activity: 686
Merit: 504
always the student, never the master.
I added a new feature today, building on the access violation system that i previously built into the application.

now, for every 10 access violations per unique ip address, an ip is banned. access violation history is recorded on a per instance basis, and the count feature of mysql is used to sort the count of each violation per ip address.
access_denied.php
Code:
require_once("models/config.php");

$account $loggedInUser->display_username;
$uagent mysql_real_escape_string(getuseragent()); //get user agent
$ip mysql_real_escape_string(getIP()); //get user ip
if(isUserLoggedIn) {
if ($account != null) {
$account mysql_real_escape_string($loggedInUser->display_username);
}
else {
$account mysql_real_escape_string("Guest/Not Logged In");
}
}
$date mysql_real_escape_string(gettime());
$sql = @mysql_query("INSERT INTO access_violations (username, ip, user_agent, time) VALUES ('$account', '$ip', '$uagent', '$date');");
$getcountip mysql_query("SELECT ip,COUNT(*) as count FROM access_violations GROUP BY ip ORDER BY count DESC;");
while(
$row mysql_fetch_assoc($getcountip)) {
if($row['count'] > 10) {
$factors $row['ip'];
$sql2 mysql_query("SELECT ip FROM bantables_ip WHERE ip = '$factors';");
$number_of_rows mysql_num_rows($sql2);

if ($number_of_rows 0) {
                
/*--Do nothing--*/
}else {
$date2 mysql_real_escape_string(gettime());
$ip_address mysql_real_escape_string($row['ip']);
$sqlxz mysql_query("INSERT INTO bantables_ip (ip, date) VALUES ( '$ip_address', '$date2');");
}
}
}
echo 
"";
echo 
'';
?>




when an ip address has more than 10 violations, the application checks the database table if a record exists in the bantable for the ip. if it does, nothing is done. if it does not exist, the ip is added.

a function, isIPbanned(), checks to see if a visitor is in the ban table. if he is, he is greeted with a message that his ip address is banned. if he is not banned, he is greeted with the normal index page.
function isIPbanned()
Code:
function isIPbanned() {
$ipvars mysql_real_escape_string(getIP());
$sqlxyzr mysql_query("SELECT * FROM bantables_ip WHERE `ip`='$ipvars'");
if (mysql_num_rows($sqlxyzr) > 0) {
return true;
}else{
return false;
}
}
?>



that sounds great r3wt, but what about forged ip address in http headers? great question.
functiong getIP()--this makes it difficult to cloak or forge the ip address.
Code:
function getIP()
{
    foreach (array(
        
'HTTP_CLIENT_IP',
        
'HTTP_X_FORWARDED_FOR',
        
'HTTP_X_FORWARDED',
        
'HTTP_X_CLUSTER_CLIENT_IP',
        
'HTTP_FORWARDED_FOR',
        
'HTTP_FORWARDED',
        
'REMOTE_ADDR'
    
) as $key) {
        if (
array_key_exists($key$_SERVER) === true) {
            foreach (
array_map('trim'explode(','$_SERVER[$key])) as $ip) {
                if (
filter_var($ipFILTER_VALIDATE_IPFILTER_FLAG_NO_PRIV_RANGE FILTER_FLAG_NO_RES_RANGE) !== false) {
                    return 
$ip;
                }
            }
        }
    }
}
?>

hero member
Activity: 686
Merit: 504
always the student, never the master.
The github is now up to date with the project.

https://github.com/r3wt/openex
member
Activity: 119
Merit: 10
Amazing project, would be great if you would add Betacoin.
http://betaco.in
hero member
Activity: 686
Merit: 504
always the student, never the master.
thanks to an audit by Gorgo Rom, an XSS vulnerability has been patched. this was a server level vulnerability, i think i may have stumbled into another vulnerability in the process. tomorrow i'm gonna test to see what i can do with it. may be as simple as overriding php.ini to ignore cache settings of the user browser.
hero member
Activity: 686
Merit: 504
always the student, never the master.
hero member
Activity: 686
Merit: 504
always the student, never the master.
Ok ok, keep on the good work. I am nOt fluent in chinese at all, but I was just offering my services to help openex as I can Smiley

Keep us informed !

(What about mzking nxt tradable on openex ? It only have one exhange, and people start being interested in it. I assume it's not as ez as other crypto to add, but to have more people faster it can be good)

we have discussed this privately, and we will only take one more coin. Currently  we are researching on what coin is worthy. I can pretty much guarantee you it wont be NXT.
hero member
Activity: 784
Merit: 500
Ok ok, keep on the good work. I am nOt fluent in chinese at all, but I was just offering my services to help openex as I can Smiley

Keep us informed !

(What about mzking nxt tradable on openex ? It only have one exhange, and people start being interested in it. I assume it's not as ez as other crypto to add, but to have more people faster it can be good)
hero member
Activity: 686
Merit: 504
always the student, never the master.
If another mod is needed for openex chat I can do it.

Any launch date ? An estimation is fine ^^

i know this makes me look bad since i said two weeks and its now up, but unfortunately the processors for our main server are on backorder. the host company is shooting for sometime this week. i imagine that justin and i will only need a few days to get it up and in beta mode. should everything work as planned, its reasonable to think the site could be officially launched as soon as we would like.

i think it will probably take a few days to compile and sync all the wallets though.

as soon as the servers deliverd, i could give you a better estimate.

As for the mod position, we are generally looking for someone who is fluent in chinese.
hero member
Activity: 784
Merit: 500
If another mod is needed for openex chat I can do it.

Any launch date ? An estimation is fine ^^
hero member
Activity: 686
Merit: 504
always the student, never the master.
We need quark for openex release !

Is it hard to make it work ?

That would be awesome. It can be traded with lot of volume soon.
no, it isn't anymore different than the rest of the coins
hero member
Activity: 784
Merit: 500
We need quark for openex release !

Is it hard to make it work ?

That would be awesome. It can be traded with lot of volume soon.
Pages:
Jump to: