Bitcoin Forum
June 16, 2024, 04:34:55 PM *
News: Voting for pizza day contest
 
   Home   Help Search Login Register More  
Pages: [1] 2 3 4 5 »  All
  Print  
Author Topic: [ADMT] Coin has an exploitive hidden premine  (Read 8608 times)
earlz (OP)
Sr. Member
****
Offline Offline

Activity: 439
Merit: 250


mmmmmm


View Profile WWW
October 23, 2014, 03:02:45 AM
Last edit: October 23, 2014, 03:34:26 AM by earlz
 #1

The ADMT thread is moderated and I assume my post will get deleted immediately. So, I'm posting with a new topic.

Anyway, here is my review including the exploit. Summary is, the dev made a hidden premine of 20M or so, and hid it in such a way that not even traditional block explorers could reveal it

My review follows

Code:
adamantiumcoin https://bitcointalk.org/index.php?topic=829498.0

Heritage: HACK, DRM

Problems:

* CRITICAL: Reward for block 22 can be any amount that is desired
** The block explorer is compromised or the coin is serrepticious enough that it causes the block explorer to lie
** http://104.131.48.111:7200/block/00000283b17dbaa7445d64c988dcb7e58227ba49b686e029bbaf81bf67224993

review stopped at this point and early notice given to exchanges and miners.

Notes:

node:     {"108.170.2.13", "108.170.2.13"},

this is where the dev allows a block with non-standard reward to be mined
@@ -1582,7 +1583,7 @@ bool CBlock::ConnectBlock(CTxDB& txdb, CBlockIndex* pindex, bool fJustCheck)
     {
         int64_t nReward = GetProofOfWorkReward(nFees);
         // Check coinbase reward
-        if (vtx[0].GetValueOut() > nReward)
+        if (vtx[0].GetValueOut() > nReward && pindexBest->nHeight+1!=22)
             return DoS(50, error("ConnectBlock() : coinbase reward exceeded (actual=%"PRId64" vs calculated=%"PRId64")",
                    vtx[0].GetValueOut(),
                    nReward));

a variable used
@@ -330,6 +332,7 @@ bool CTransaction::IsStandard() const
 // expensive-to-check-upon-redemption script like:
 //   DUP CHECKSIG DROP ... repeated 100 times... OP_1
 //
+int64_t nvout=2000000000000000;

here is where the dev hides the amount in supply for RPC calls
@@ -1618,6 +1620,10 @@ bool CBlock::ConnectBlock(CTxDB& txdb, CBlockIndex* pindex, bool fJustCheck)
 
     // Update block index on disk without changing it in memory.
     // The memory index structure will be changed after the db commits.
+    if(pindexBest->nHeight+1 == 22) {
+    pindex->nMint = nValueOut - nValueIn + nFees - nvout;
+    pindex->nMoneySupply = (pindex->pprev? pindex->pprev->nMoneySupply : 0) + nValueOut - nValueIn - nvout;
+    }  

here is where he hides the amount mined with the generation transaction causing both my own block explorer, and Abe to report it wrongly
+++ b/rpcrawtransaction.cpp
@@ -74,7 +74,12 @@ void TxToJSON(const CTransaction& tx, const uint256 hashBlock, Object& entry)
     {
         const CTxOut& txout = tx.vout[i];
         Object out;
+        if(tx.GetHash().GetHex() == "f48435e7305419f3fb4db67de5eca21bdd92a44babe7f056dfbeb1b7600d4c4e") {
+            out.push_back(Pair("value",0.00000000));
+        }
+        else {
         out.push_back(Pair("value", ValueFromAmount(txout.nValue)));
+    }

Here is block 22 when these transaction hiding bits are removed:
[earlz@li67-111 src]$ ./AdamantiumCoind getblockbynumber 22 true
{
    "hash" : "00000283b17dbaa7445d64c988dcb7e58227ba49b686e029bbaf81bf67224993",
    "confirmations" : 596,
    "size" : 175,
    "height" : 22,
    "version" : 6,
    "merkleroot" : "f48435e7305419f3fb4db67de5eca21bdd92a44babe7f056dfbeb1b7600d4c4e",
    "mint" : 0.00000000,
    "time" : 1413949218,
    "nonce" : 7462376,
    "bits" : "1e02bf73",
    "difficulty" : 0.00142155,
    "blocktrust" : "5d29ee",
    "chaintrust" : "3b4a09d",
    "previousblockhash" : "000001f2f69d68be7ec69dd877f801963a823bf31691d69c5180c564d9d21d2f",
    "nextblockhash" : "000000bc54ac049a0c01fd2d3be098b08247bc16df20f1101a9b631a85f7f2fa",
    "flags" : "proof-of-work",
    "proofhash" : "00000283b17dbaa7445d64c988dcb7e58227ba49b686e029bbaf81bf67224993",
    "entropybit" : 1,
    "modifier" : "00000000001cb4ed",
    "modifierchecksum" : "8cbc4017",
    "tx" : [
        {
            "txid" : "f48435e7305419f3fb4db67de5eca21bdd92a44babe7f056dfbeb1b7600d4c4e",
            "txid" : "f48435e7305419f3fb4db67de5eca21bdd92a44babe7f056dfbeb1b7600d4c4e",
            "version" : 1,
            "time" : 1413949218,
            "locktime" : 0,
            "vin" : [
                {
                    "coinbase" : "01160101",
                    "sequence" : 4294967295
                }
            ],
            "vout" : [
                {
                    "value" : 20000000.00000000,
                    "n" : 0,
                    "scriptPubKey" : {
                        "asm" : "OP_DUP OP_HASH160 e829b472157a48cf939a76e66ac710c8d3898d95 OP_EQUALVERIFY OP_CHECKSIG",
                        "reqSigs" : 1,
                        "type" : "pubkeyhash",
                        "addresses" : [
                            "AcwSNi1VZ41WLErCguXiTh9d9Q9CjEQ1rB"
                        ]
                    }
                }
            ]
        }
    ]
}



Watermarks: uint64_t, pos, drm-like


Btw, if anyone would like to request a code review. I try to review popular and new coins automatically. However, if you want to request a coin reviewed quickly (24-72 hours), you can PM me. I require a modest payment though to skip the line since my time is at a premium.

Check out my full list of Coin Reviews
Currently working on the Qtum Project
My Skype account earlzdotnet has been compromised. Please report to me any usage seen from it, or from the email earlz@earlz.biz.tm
inspirone1
Full Member
***
Offline Offline

Activity: 327
Merit: 100


Open and Transparent Science Powered By Blockchain


View Profile
October 23, 2014, 03:09:35 AM
 #2

I doubt the dev will delete anything as I bet he never post under that name again. Earlz Thanks for catching it before it went to far.

ORVIUM          Open and Transparent Science Powered By Blockchain          ORVIUM
█      Whitepaper         Telegram         Twitter         Facebook         Reddit         Blog     
▇▆▅▃▃▃▃▃▃▃   Token Generation Event: Coming Soon   ▃▃▃▃▃▃▃▅▆▇
Nagger06
Newbie
*
Offline Offline

Activity: 25
Merit: 0


View Profile
October 23, 2014, 03:11:26 AM
 #3

Im assuming the dev will read this and since the thread is locked i cant call him a cocksucker there so here:


 DEV: You are a cocksucker.
inspirone1
Full Member
***
Offline Offline

Activity: 327
Merit: 100


Open and Transparent Science Powered By Blockchain


View Profile
October 23, 2014, 03:17:06 AM
 #4

Im assuming the dev will read this and since the thread is locked i cant call him a cocksucker there so here:


 DEV: You are a cocksucker.
double that
 He already deleted and now locked the thread. I was hoping to at least get some kind of story out of him on it.

ORVIUM          Open and Transparent Science Powered By Blockchain          ORVIUM
█      Whitepaper         Telegram         Twitter         Facebook         Reddit         Blog     
▇▆▅▃▃▃▃▃▃▃   Token Generation Event: Coming Soon   ▃▃▃▃▃▃▃▅▆▇
Pride-C-CEX
Full Member
***
Offline Offline

Activity: 133
Merit: 100


View Profile
October 23, 2014, 03:17:18 AM
 #5

We greatly appreciate your swift contact regarding this, you are a class act!

Crypto Trade at C-CEX: https://c-cex.com/
tylerderden
Copper Member
Legendary
*
Offline Offline

Activity: 1162
Merit: 1025



View Profile
October 23, 2014, 03:17:23 AM
Last edit: October 31, 2014, 03:57:21 AM by tylerderden
 #6

this shit sucks
icecube45
Legendary
*
Offline Offline

Activity: 1218
Merit: 1000


View Profile
October 23, 2014, 03:19:07 AM
 #7

Dev just deleted my original comment
adoalli
Hero Member
*****
Offline Offline

Activity: 646
Merit: 500



View Profile
October 23, 2014, 03:21:52 AM
 #8

>:(SCAMCOIN

inspirone1
Full Member
***
Offline Offline

Activity: 327
Merit: 100


Open and Transparent Science Powered By Blockchain


View Profile
October 23, 2014, 03:22:37 AM
 #9

Theres still 13ghz of hash on this.

ORVIUM          Open and Transparent Science Powered By Blockchain          ORVIUM
█      Whitepaper         Telegram         Twitter         Facebook         Reddit         Blog     
▇▆▅▃▃▃▃▃▃▃   Token Generation Event: Coming Soon   ▃▃▃▃▃▃▃▅▆▇
adoalli
Hero Member
*****
Offline Offline

Activity: 646
Merit: 500



View Profile
October 23, 2014, 03:26:25 AM
 #10

Theres still 13ghz of hash on this.

don't waste your hashpower Roll Eyes im quit

forzendiablo
Legendary
*
Offline Offline

Activity: 1526
Merit: 1000


the grandpa of cryptos


View Profile
October 23, 2014, 03:28:56 AM
 #11

im not a coder but bumping this

yolo
Adamantium
Newbie
*
Offline Offline

Activity: 14
Merit: 0


View Profile
October 23, 2014, 03:29:58 AM
 #12

First of my coins that failed..

Well! I guess I will have to hide everything in another way! I'll be back!  Cool

PS: This is actually a good thing. Everyone should learn to take a look at the code before mining/hosting a pool/exchange/etc.

EDIT:
When that happens with every coin, only good ones will survive!
bathrobehero
Legendary
*
Offline Offline

Activity: 2002
Merit: 1051


ICO? Not even once.


View Profile
October 23, 2014, 03:31:39 AM
 #13

earlz, you're awesome!

Not your keys, not your coins!
kozmos
Sr. Member
****
Offline Offline

Activity: 381
Merit: 250


View Profile
October 23, 2014, 03:32:11 AM
 #14

Thanks a lot earlz for the warning.

and add this to the list of the dev's fiasco attempt lol:




earlz (OP)
Sr. Member
****
Offline Offline

Activity: 439
Merit: 250


mmmmmm


View Profile WWW
October 23, 2014, 03:35:06 AM
 #15

Btw, if anyone would like to request a code review. I try to review popular and new coins automatically. However, if you want to request a coin reviewed quickly (24-72 hours), you can PM me. I require a modest payment though to skip the line since my time is at a premium.

Check out my full list of Coin Reviews
Currently working on the Qtum Project
My Skype account earlzdotnet has been compromised. Please report to me any usage seen from it, or from the email earlz@earlz.biz.tm
TheClownSong
Sr. Member
****
Offline Offline

Activity: 1428
Merit: 251


solidtradebank.com | 5%-15% Welcome Bonus


View Profile
October 23, 2014, 03:35:12 AM
 #16

>:(SCAMCOIN

You think? looks like we have a genius in here..

Qi.Blockchain|The only blockchain the
world will ever need
|Eco-friendly
Decentralized
Secure, Fast
|
▄▄████████▄▄
▄████████████████▄
▄████████████████████▄
███████████████▀▀  █████
████████████▀▀      ██████
▐████████▀▀   ▄▄     ██████▌
▐████▀▀    ▄█▀▀     ███████▌
▐████████ █▀        ███████▌
████████ █ ▄███▄   ███████
████████████████▄▄██████
▀████████████████████▀
▀████████████████▀
▀▀████████▀▀
|
inspirone1
Full Member
***
Offline Offline

Activity: 327
Merit: 100


Open and Transparent Science Powered By Blockchain


View Profile
October 23, 2014, 03:36:22 AM
 #17

First of my coins that failed..

Well! I guess I will have to hide everything in another way! I'll be back!  Cool

PS: This is actually a good thing. Everyone should learn to take a look at the code before mining/hosting a pool/exchange/etc.

EDIT:
When that happens with every coin, only good ones will survive!

You piece of shit!

ORVIUM          Open and Transparent Science Powered By Blockchain          ORVIUM
█      Whitepaper         Telegram         Twitter         Facebook         Reddit         Blog     
▇▆▅▃▃▃▃▃▃▃   Token Generation Event: Coming Soon   ▃▃▃▃▃▃▃▅▆▇
adoalli
Hero Member
*****
Offline Offline

Activity: 646
Merit: 500



View Profile
October 23, 2014, 03:37:18 AM
 #18

First of my coins that failed..

Well! I guess I will have to hide everything in another way! I'll be back!  Cool

PS: This is actually a good thing. Everyone should learn to take a look at the code before mining/hosting a pool/exchange/etc.

EDIT:
When that happens with every coin, only good ones will survive!


shit man

shojayxt
Legendary
*
Offline Offline

Activity: 896
Merit: 1001



View Profile
October 23, 2014, 03:37:34 AM
 #19

First of my coins that failed..

Well! I guess I will have to hide everything in another way! I'll be back!  Cool

PS: This is actually a good thing. Everyone should learn to take a look at the code before mining/hosting a pool/exchange/etc.

EDIT:
When that happens with every coin, only good ones will survive!



All your coins fail you pathetic loser  or should I say carsen cocksucker.

And no I didn't mine this shit.  But apparently there are plenty of fools in altcoin land more than willing to help it implode by supporting obvious shitcoins.
inspirone1
Full Member
***
Offline Offline

Activity: 327
Merit: 100


Open and Transparent Science Powered By Blockchain


View Profile
October 23, 2014, 03:37:57 AM
 #20

Btw, if anyone would like to request a code review. I try to review popular and new coins automatically. However, if you want to request a coin reviewed quickly (24-72 hours), you can PM me. I require a modest payment though to skip the line since my time is at a premium.
You should team up with POD (cryptoasian) do it as a add on paid service.

ORVIUM          Open and Transparent Science Powered By Blockchain          ORVIUM
█      Whitepaper         Telegram         Twitter         Facebook         Reddit         Blog     
▇▆▅▃▃▃▃▃▃▃   Token Generation Event: Coming Soon   ▃▃▃▃▃▃▃▅▆▇
Pages: [1] 2 3 4 5 »  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!