Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
[SECURITY] We need a new password encryp
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / Torrent Trader / v3 Support

Unknown User
2019-05-31 17:36:54
[USER=311]@MicroMonkey[/USER] [USER=20288]@m-jay[/USER] [USER=3]@Munk[/USER] [USER=1]@DarkMaster[/USER]

This is a real security issue with torrenttrader. Storing passwords as md5 or sha1, or hmac is a GREAT security problem and will take less than 1 minute to decrypt those passwords.

We need to implement for example: bcrypt or sha512_bcrypt or argon2 encryption methods to enhance the security of the users and administrators at the same time if the site gets breached.

https://www.php.net/manual/en/function.password-hash.php <- here is a manual of implementing bcrypt as it is built-in for PHP.

PS: Cryptographically Argon2i and Argon2id are somewhat more strong than bcrypt hashing.

Argon2i requires PHP 7.2 >= and Argon2id PHP 7.3 >=.

We can add default value for Argon or bcrypt cost and explain that higher number = better security, but slower performance.

Also, we need auto-generated salt for passwords.

Lastly:
We need to include an option to rewrite new hash method for existing users when they login with plain password in login form.

If we make this, torrenttrader can be really safe for use.

Example: http://john.cuppi.net/migrate-from-md5-to-bcrypt-password-hashes/
2019-06-01 06:00:11
[color=rgb(251, 160, 38)]NOT FINISHED CODE[/color]

i was looking at this 2 weeks ago but lifes been busy recently so didnt make much progress but from what i remember you can use sql password_hash this is bcrytpt and also auto salts i have passwords encrypting but cant login these are changes so far

in myphpmyadmin you need to change password length from 40 to 255 in users table structure

in account-signup make length 60   $password_maxlength = 60;  and change $wantpassword
$wantpassword = password_hash('my super cool password', PASSWORD_DEFAULT);// hash the password

that encrypts but still trying to get the login page to read it
[ATTACH type="full" alt="5062"]5062[/ATTACH]


im pretty sure there is a 2.08 mod that encryts so ill see if that can help or be updated if i can find it
Untitled.png
Untitled.png
Unknown User
2019-06-01 06:14:02
[USER=311]@MicroMonkey[/USER]   password_default may change over time we need to use a fixed method PASSWORD_BCRYPT, $options and let admins declare the cost. Glad that you have been working on it
2019-06-01 17:38:01
had a look at the last code i did and im nearly there, account-recovery might need some thing still, ill put here while its fresh in my mind
i have managed to get it working just need to do some testing tomorrow

in myphpmyadmin you need to change password length from 40 to 255 in users table structure

in account-signup find these lines
make length 60
$password_maxlength =  

change md5 to password_hash
$res = SQL_Query_exec("SELECT id FROM users WHERE id = $_REQUEST[invite] AND md5(secret) = ".sqlesc($_REQUEST["secret"]));

make wantpassword line like this
$wantpassword = password_hash($wantpassword, PASSWORD_BCRYPT);   // hash the password

in account-login find
$password  change line to $password = $_POST["password"];

find
$message = T_("LOGIN_INCORRECT");
replace line above with this
if ( !$row || !password_verify($password,$row["password"]))
Unknown User
2019-06-01 18:17:18
Great progress so far! how about the conversion of old md5 passwords for the current users?
2019-06-01 19:15:21
The easiest way would be run a sql query to empty the passwords in the table and ask members on the login page to use recover password to make a new one,
They is a few examples of converting old md5 passwords on stack overflow so I'll check for anything that might be helpfull the main part now is testing members can use recovery
Unknown User
2019-06-01 19:23:42
"m-jay, post: 66663, member: 20288":

The easiest way would be run a sql query to empty the passwords in the table and ask members on the login page to use recover password to make a new one,
They is a few examples of converting old md5 passwords on stack overflow so I'll check for anything that might be helpfull the main part now is testing members can use recovery

That could be a troublesome for big sites
2019-06-07 16:46:55
Think I finally got bcrypt or argon2 encryption working for fresh install of v3
For old boards I'm still struggling to convert the old md5 passwords the only option is to recover account. I'll post what I have just doing some last test.
Another way is possibly having a back door like account-login2.php to login with old passwords then members can reset password in account settings
Unknown User
2019-06-07 17:27:46
"m-jay, post: 66684, member: 20288":

Think I finally got bcrypt or argon2 encryption working for fresh install of v3
For old boards I'm still struggling to convert the old md5 passwords the only option is to recover account. I'll post what I have just doing some last test.
Another way is possibly having a back door like account-login2.php to login with old passwords then members can reset password in account settings

We need to use password_verify(); for old accounts. It should be working

Or we should use double hashing like this https://stackoverflow.com/a/18906896
2019-06-07 18:21:28
Password verify is on account login and for the converter it's a specific piece of code which I'll highlight in case some one else can help
That post you linked to is a good example it's just a case of defining password lenght (bycryt is longer) then verify or update old password then verify, its bugging me I'm so close
Unknown User
2019-06-07 20:44:23
"m-jay, post: 66686, member: 20288":

Password verify is on account login and for the converter it's a specific piece of code which I'll highlight in case some one else can help
That post you linked to is a good example it's just a case of defining password lenght (bycryt is longer) then verify or update old password then verify, its bugging me I'm so close

Maybe something like this?
password_hash(sha/md5($_POST['password']));
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 1
  • Members: 0
  • Guests online: 1
  • Comments: 3
  • Messages: 1,728