Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

[FREE]CRYPTO EXCHANGE | BUILT WITH PHP [GITHUB] Contribute Now or Simply use!

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/
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
(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 !
Looking for more input on this guys !
Thank you for sharing the source with us
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-...rs.php#L34
The result would be a remote file inclusion attack against line :
https://github.com/GMX9/Crypto-Exchange-...rs.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-...t.php#L152
sha1 is far to uncomplex, a 1-6 digit sha1 hash can be cracked within 49 minutes or less, so use sha256.
(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-...rs.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
(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-...rs.php#L34
The result would be a remote file inclusion attack against line :
https://github.com/GMX9/Crypto-Exchange-...rs.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-...t.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-...39e62f0f22


(Nov 6, 2018 08:15 PM)TCP 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
(Nov 7, 2018 03:51 AM)Dr.Exploit 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-...39e62f0f22



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.
(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-...39e62f0f22

What do you think generally of the organization and my mvc ?
(Nov 7, 2018 04:42 AM)Dr.Exploit Wrote:  Thanks again ! I already submited your edit to the main repo !
https://github.com/GMX9/Crypto-Exchange-...39e62f0f22

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

The organisation is done quite nice, sometimes even a bit overkill :D
(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 🤝
(Nov 7, 2018 07:39 AM)Dr.Exploit 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.
New Update Released:
Website : cryptoexchange-software.us
[Image: 9mvkwpc.jpg]
(Mar 3, 2019 05:01 AM)Dr.Exploit 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 👹


Possibly Related Threads...
Thread / Author Replies Views Last Post
by ✅Congoes✅Nov 22, 2016 12:32 PM 8 326 Nov 22, 2016 12:32 PM
Last Post: ✅Congoes✅
by siurMar 21, 2016 07:04 AM 40 966 Mar 21, 2016 07:04 AM
Last Post: siur
by Rolex™Jul 23, 2013 10:08 PM 0 53 Jul 23, 2013 10:08 PM
Last Post: Rolex™