Hack Forums
[FREE]CRYPTO EXCHANGE | BUILT WITH PHP [GITHUB] Contribute Now or Simply use! - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Webmasters (https://hackforums.net/forumdisplay.php?fid=141)
+---- Forum: Website Showcase and Reviews (https://hackforums.net/forumdisplay.php?fid=172)
+---- Thread: [FREE]CRYPTO EXCHANGE | BUILT WITH PHP [GITHUB] Contribute Now or Simply use! (/showthread.php?tid=5903346)



[FREE]CRYPTO EXCHANGE | BUILT WITH PHP [GITHUB] Contribute Now or Simply use! - Dr.Exploit - Nov 4, 2018

Crypto Exchange PHP

The first free Open-Source Crypto Exchange for all the community.

This script is completly tested and exchanges the coins without any trouble using the changenow.io api, and using the functions it's very easy to integrate it with a custom template.

Changenow.io is the best partner to have a as an exchange api provider since it pays you 90% of every transaction fee.

Features

- Add new coins
- Get money from setting changenow.io API and get 90% transaction fees.
- Show recent transactions
- Custom Login/Register system for users
- Transaction History
- Exchange Crypto
- Installation
- Download the directory to your root and configure the configs/database.php and configs/global.php
- Insert the database SQL
- Start your business !

How to add new coins

- Go to configs directory and edit coins.txt
- Put the coin in each line
- Save the file and it's done.

https://github.com/GMX9/Crypto-Exchange-PHP
https://cryptoexchange-software.us/

Wish to know your toughts.

If you want to check a demo , go to my website : https://demo.cryptoexchange-software.us/


RE: Free Crypto Exchange PHP [Github] Contribute Now or Simply use it! - turbosoggy - Nov 4, 2018

The design is really stunning. One thing i found is that the main page dosent 404 properly, for example demo.cryptoexchange-software.us/riuwahriuya just displays the main page instead of a 404


RE: Free Crypto Exchange PHP [Github] Contribute Now or Simply use it! - Dr.Exploit - Nov 4, 2018

(Nov 4, 2018 08:36 AM)turbosoggy Wrote:  The design is really stunning. One thing i found is that the main page dosent 404 properly, for example demo.cryptoexchange-software.us/riuwahriuya just displays the main page instead of a 404

Thanks alot.
Yes instead of using the error 404 i used index page to display so that it does not have broken pages, but i can submit a fix to it today or tomorrow !


RE: Free Crypto Exchange PHP [Github] Contribute Now or Simply use it! - Dr.Exploit - Nov 6, 2018

Looking for more input on this guys !


RE: Free Crypto Exchange PHP [Github] Contribute Now or Simply use it! - SIM-3327349 - Nov 6, 2018

Thank you for sharing the source with us


RE: Free Crypto Exchange PHP [Github] Contribute Now or Simply use it! - Abruptum - Nov 6, 2018

Just wanted to say that there is a potential vulnerability in your code for the php version <5.3.4 due the handling of null bytes in the file_exists function.
https://github.com/GMX9/Crypto-Exchange-PHP/blob/master/lib/controllers.php#L34
The result would be a remote file inclusion attack against line :
https://github.com/GMX9/Crypto-Exchange-PHP/blob/master/lib/controllers.php#L36
if possible you should check your directory "modules" and then check if the name is contained in the directory over scandir(http://php.net/manual/de/function.scandir.php) if not then not even check the if the files exists.

or you can create a runtime check if the current php version is higher than >5.3.4 .

A small little patch should be done here also :
https://github.com/GMX9/Crypto-Exchange-PHP/blob/master/lib/userconnect.php#L152
sha1 is far to uncomplex, a 1-6 digit sha1 hash can be cracked within 49 minutes or less, so use sha256.


RE: Free Crypto Exchange PHP [Github] Contribute Now or Simply use it! - TCP - Nov 6, 2018

(Nov 6, 2018 03:37 PM)Abruptum Wrote:  The result would be a remote file inclusion attack against line :
https://github.com/GMX9/Crypto-Exchange-PHP/blob/master/lib/controllers.php#L36

To allow remote inclusion allow_url_include must be set to On in php.ini

But yeah, this is a bad approach, you should never use unfiltered external input in file inclusion


RE: Free Crypto Exchange PHP [Github] Contribute Now or Simply use it! - Dr.Exploit - Nov 7, 2018

(Nov 6, 2018 03:37 PM)Abruptum Wrote:  Just wanted to say that there is a potential vulnerability in your code for the php version <5.3.4 due the handling of null bytes in the file_exists function.
https://github.com/GMX9/Crypto-Exchange-PHP/blob/master/lib/controllers.php#L34
The result would be a remote file inclusion attack against line :
https://github.com/GMX9/Crypto-Exchange-PHP/blob/master/lib/controllers.php#L36
if possible you should check your  directory "modules" and then check if the name is contained in the directory over scandir(http://php.net/manual/de/function.scandir.php) if not then not even check the if the files exists.

or you can create a runtime check if the current php version is higher than >5.3.4 .

A small little patch should be done here also :
https://github.com/GMX9/Crypto-Exchange-PHP/blob/master/lib/userconnect.php#L152
sha1 is far to uncomplex, a 1-6 digit sha1 hash can be cracked within 49 minutes or less, so use sha256.

Thanks alot for your input mate !
Submited a fix related the path, check it out if you can.

Regarding the sha1 ill update it later today

Check this out :
https://github.com/GMX9/Crypto-Exchange-PHP/commit/ce3b670c6a53b65312300902d175b639e62f0f22


(Nov 6, 2018 08:15 PM)Exp500 Wrote:  To allow remote inclusion allow_url_include must be set to On in php.ini

But yeah, this is a bad approach, you should never use unfiltered external input in file inclusion

Yes was really bad of me, i let it pass completly unaware, i already sanitized the param and submited a fix with scandir


RE: Free Crypto Exchange PHP [Github] Contribute Now or Simply use it! - Abruptum - Nov 7, 2018

(Nov 7, 2018 03:51 AM)AMX6 Wrote:  Thanks alot for your input mate !
Submited a fix related the path, check it out if you can.

Regarding the sha1 ill update it later today

Check this out :
https://github.com/GMX9/Crypto-Exchange-PHP/commit/ce3b670c6a53b65312300902d175b639e62f0f22



Yes was really bad of me, i let it pass completly unaware, i already sanitized the param and submited a fix with scandir

I meaned that you could implement it in a way like this :

PHP Code

<?php 
$dirs 
= scandir("modules/");
$found = false;
foreach (
$dirs as $dir){
 
   if($name == $dir && is_dir("modules/$dir")){
 
       $found = true;
 
       break;
 
   }
}
if(
$found && file_exists("modules/$name/controller/$name.php")){
 
   require_once("modules/$name/controller/$name.php");
 
   $module->index();
}else{
 
   require_once("modules/index/controller/index.php");
 
   $module->index();
} 

You should not use htmlentities or $connect->real_escape_string to secure when you want to search for a file it can lead to several problems regarding special characters which could be allowed.


RE: Free Crypto Exchange PHP [Github] Contribute Now or Simply use it! - Dr.Exploit - Nov 7, 2018

(Nov 7, 2018 04:07 AM)Abruptum Wrote:  I meaned that you could implement it in a way like this :

PHP Code

<?php 
$dirs 
= scandir("modules/");
$found = false;
foreach (
$dirs as $dir){
 
   if($name == $dir && is_dir("modules/$dir")){
 
       $found = true;
 
       break;
 
   }
}
if(
$found && file_exists("modules/$name/controller/$name.php")){
 
   require_once("modules/$name/controller/$name.php");
 
   $module->index();
}else{
 
   require_once("modules/index/controller/index.php");
 
   $module->index();
} 

You should not use htmlentities or $connect->real_escape_string to secure when you want to search for a file it can lead to several problems regarding special characters which could be allowed.

Thanks again ! I already submited your edit to the main repo !
https://github.com/GMX9/Crypto-Exchange-PHP/commit/ce3b670c6a53b65312300902d175b639e62f0f22

What do you think generally of the organization and my mvc ?


RE: [FREE]CRYPTO EXCHANGE | BUILT WITH PHP [GITHUB] Contribute Now or Simply use! - Abruptum - Nov 7, 2018

(Nov 7, 2018 04:42 AM)AMX6 Wrote:  Thanks again ! I already submited your edit to the main repo !
https://github.com/GMX9/Crypto-Exchange-PHP/commit/ce3b670c6a53b65312300902d175b639e62f0f22

What do you think generally of the organization and my mvc ?

The organisation is done quite nice, sometimes even a bit overkill :D


RE: [FREE]CRYPTO EXCHANGE | BUILT WITH PHP [GITHUB] Contribute Now or Simply use! - Dr.Exploit - Nov 7, 2018

(Nov 7, 2018 05:47 AM)Abruptum Wrote:  The organisation is done quite nice, sometimes even a bit overkill :D

:D thanks alot bud ! Let me know if ur interested in making something with me, you seem like a very good programmer , if u want just drop me a pm 🤝


RE: [FREE]CRYPTO EXCHANGE | BUILT WITH PHP [GITHUB] Contribute Now or Simply use! - Abruptum - Nov 7, 2018

(Nov 7, 2018 07:39 AM)AMX6 Wrote:  :D thanks alot bud ! Let me know if ur interested in making something with me, you seem like a very good programmer , if u want just drop me a pm 🤝

Sure :) you can hit me up aswell when you want to do something.


RE: [FREE]CRYPTO EXCHANGE | BUILT WITH PHP [GITHUB] Contribute Now or Simply use! - Dr.Exploit - Mar 3, 2019

New Update Released:
Website : cryptoexchange-software.us
[Image: 9mvkwpc.jpg]


RE: [FREE]CRYPTO EXCHANGE | BUILT WITH PHP [GITHUB] Contribute Now or Simply use! - Pink Floyd - Mar 3, 2019

(Mar 3, 2019 05:01 AM)GMX9 Wrote:  New Update Released:
Website : cryptoexchange-software.us
[Image: 9mvkwpc.jpg]

I am gonna use this now for my currency exchange software bud.
Can you reply to me on TG please you lost 👹