Bitcoin Forum
May 08, 2024, 06:44:41 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: 1 2 [All]
  Print  
Author Topic: Zerocoin implementation bug  (Read 1859 times)
Patatas (OP)
Legendary
*
Offline Offline

Activity: 1750
Merit: 1115

Providing AI/ChatGpt Services - PM!


View Profile
February 18, 2017, 11:28:29 AM
 #1

Woke up to this article today : https://zcoin.io/language/en/important-announcement-zerocoin-implementation-bug/

One more reason for me to stay away.Today's it's a small bug,tomorrow could be my wallet.Attackers gained access anyway.Wake up!
 
1715193881
Hero Member
*
Offline Offline

Posts: 1715193881

View Profile Personal Message (Offline)

Ignore
1715193881
Reply with quote  #2

1715193881
Report to moderator
1715193881
Hero Member
*
Offline Offline

Posts: 1715193881

View Profile Personal Message (Offline)

Ignore
1715193881
Reply with quote  #2

1715193881
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715193881
Hero Member
*
Offline Offline

Posts: 1715193881

View Profile Personal Message (Offline)

Ignore
1715193881
Reply with quote  #2

1715193881
Report to moderator
1715193881
Hero Member
*
Offline Offline

Posts: 1715193881

View Profile Personal Message (Offline)

Ignore
1715193881
Reply with quote  #2

1715193881
Report to moderator
1715193881
Hero Member
*
Offline Offline

Posts: 1715193881

View Profile Personal Message (Offline)

Ignore
1715193881
Reply with quote  #2

1715193881
Report to moderator
JosNekoKopa
Sr. Member
****
Offline Offline

Activity: 476
Merit: 250


View Profile
February 18, 2017, 12:03:38 PM
 #2

What is strange here? This Is probably inside job, small bug to be discovered by some stranger and exploited in this way, this is only dream of every hackers, and those who created this code didn't notice this at debug ..? I really want to be believe.
Come-from-Beyond
Legendary
*
Offline Offline

Activity: 2142
Merit: 1009

Newbie


View Profile
February 18, 2017, 01:18:51 PM
 #3

What is strange here? This Is probably inside job, small bug to be discovered by some stranger and exploited in this way, this is only dream of every hackers, and those who created this code didn't notice this at debug ..? I really want to be believe.

Maybe warnings were off during the compilation and that case didn't appear in "probable bugs" section?
jeremy grol
Hero Member
*****
Offline Offline

Activity: 882
Merit: 500


View Profile
February 18, 2017, 01:20:23 PM
 #4

it was an inside jobs. wake up.
hcbfs
Newbie
*
Offline Offline

Activity: 39
Merit: 0


View Profile
February 18, 2017, 01:29:30 PM
 #5

Woke up to this article today : https://zcoin.io/language/en/important-announcement-zerocoin-implementation-bug/

One more reason for me to stay away.Today's it's a small bug,tomorrow could be my wallet.Attackers gained access anyway.Wake up!
 
I agree with you. this event involves a question of trust, at least, i can't believe it again
Febo
Legendary
*
Offline Offline

Activity: 2730
Merit: 1288



View Profile
February 18, 2017, 01:33:47 PM
 #6

Woke up to this article today : https://zcoin.io/language/en/important-announcement-zerocoin-implementation-bug/

One more reason for me to stay away.Today's it's a small bug,tomorrow could be my wallet.Attackers gained access anyway.Wake up!
 
I agree with you. this event involves a question of trust, at least, i can't believe it again

Trust the math and no one else. It is so simple. There are and will be new experiments. It is totally normal and only way to progress. But there need to be some basic minimum requirements.
pereira4
Legendary
*
Offline Offline

Activity: 1610
Merit: 1183


View Profile
February 18, 2017, 05:00:30 PM
 #7

What is strange here? This Is probably inside job, small bug to be discovered by some stranger and exploited in this way, this is only dream of every hackers, and those who created this code didn't notice this at debug ..? I really want to be believe.

The real big mindfuck is the following one: Since this coin depends on you haven trusted that the developers destroyed the masterkey files (which would give access to the total supply in a total impossible to prove way) some dev could have the key and could access the supply, fuck shit up, then claim its a bug... nobody would know.

The whole concept of this coin seemed so stupid to me since the beginning.
simonbtc
Newbie
*
Offline Offline

Activity: 16
Merit: 0


View Profile
February 18, 2017, 07:05:35 PM
Last edit: February 18, 2017, 07:39:16 PM by simonbtc
 #8

Link:
https://makebitcoingreatagain.wordpress.com/2017/02/18/is-the-zcoin-bug-in-checktransaction/

Summary:
The fix posted (so far) to Github is insufficient
- does not stop the attacker from continuing to create fake Zcoin Spend transactions
- prevents regular users who are holding private funds from moving them to a public address
- does not explain fix the issue of fraudulent Zcoin Spend transactions passing validation checks
JosNekoKopa
Sr. Member
****
Offline Offline

Activity: 476
Merit: 250


View Profile
February 19, 2017, 02:32:17 PM
 #9

Best solution for this, is that this teach, if really working and this code can be fixed, is to be reused in another project. This coin is finished. This team is not to be trusted anymore. Bagholders will try to recover but only to find good exit point. Sad but true!
Loganota
Hero Member
*****
Offline Offline

Activity: 1764
Merit: 881


View Profile
February 19, 2017, 04:11:22 PM
 #10

This is something that ends up killing the coin, we saw the same happen with DAO and now with Zerocoin. This is what differentiates a good project from a bad one, I feel sorry for those who invested and end up losing money on this one.
PovertyByte
Sr. Member
****
Offline Offline

Activity: 420
Merit: 250


View Profile
February 19, 2017, 04:28:47 PM
 #11

This is something that ends up killing the coin, we saw the same happen with DAO and now with Zerocoin. This is what differentiates a good project from a bad one, I feel sorry for those who invested and end up losing money on this one.

The DAO had peoples coins actually stolen from them. This is completely different. For the timeframe that extra ZCoins were being dumped the price was actually going up and it only went down after this became known, and even at that it got fixed in a fair amount of time.

Nobody who bough these extra coins are losing anything
Ayers
Legendary
*
Offline Offline

Activity: 2618
Merit: 1023


Seabet.io | Crypto-Casino


View Profile
February 19, 2017, 06:03:51 PM
 #12

What is strange here? This Is probably inside job, small bug to be discovered by some stranger and exploited in this way, this is only dream of every hackers, and those who created this code didn't notice this at debug ..? I really want to be believe.

The real big mindfuck is the following one: Since this coin depends on you haven trusted that the developers destroyed the masterkey files (which would give access to the total supply in a total impossible to prove way) some dev could have the key and could access the supply, fuck shit up, then claim its a bug... nobody would know.

The whole concept of this coin seemed so stupid to me since the beginning.

how can this be possible? isn't zcoin like all the other coin completely and fully open source? if someone want can expect the code and check exploit/bug/whatever, on a side note, this bug explain why the price tanked by 25% in few days

vlom
Legendary
*
Offline Offline

Activity: 1498
Merit: 1117


View Profile
February 19, 2017, 06:10:16 PM
 #13

so it is time to buy some ZEC. i have placed an other. they will solve the problem and the price will go up again.
PovertyByte
Sr. Member
****
Offline Offline

Activity: 420
Merit: 250


View Profile
February 19, 2017, 06:41:48 PM
 #14

so it is time to buy some ZEC. i have placed an other. they will solve the problem and the price will go up again.

You mean XZC because ZEC has no context to what you just said
SONG GEET
Hero Member
*****
Offline Offline

Activity: 700
Merit: 500

CryptoTalk.Org - Get Paid for every Post!


View Profile
February 19, 2017, 06:43:14 PM
 #15

it was an inside jobs. wake up.

Better to say one of the developer left a back door to exploit this bug later on and get away without being noticed.  Wink

 
                                . ██████████.
                              .████████████████.
                           .██████████████████████.
                        -█████████████████████████████
                     .██████████████████████████████████.
                  -█████████████████████████████████████████
               -███████████████████████████████████████████████
           .-█████████████████████████████████████████████████████.
        .████████████████████████████████████████████████████████████
       .██████████████████████████████████████████████████████████████.
       .██████████████████████████████████████████████████████████████.
       ..████████████████████████████████████████████████████████████..
       .   .██████████████████████████████████████████████████████.
       .      .████████████████████████████████████████████████.

       .       .██████████████████████████████████████████████
       .    ██████████████████████████████████████████████████████
       .█████████████████████████████████████████████████████████████.
        .███████████████████████████████████████████████████████████
           .█████████████████████████████████████████████████████
              .████████████████████████████████████████████████
                   ████████████████████████████████████████
                      ██████████████████████████████████
                          ██████████████████████████
                             ████████████████████
                               ████████████████
                                   █████████
.CryptoTalk.org.|.MAKE POSTS AND EARN BTC!.🏆
PovertyByte
Sr. Member
****
Offline Offline

Activity: 420
Merit: 250


View Profile
February 19, 2017, 07:55:31 PM
 #16

it was an inside jobs. wake up.

Better to say one of the developer left a back door to exploit this bug later on and get away without being noticed.  Wink

This has a 20% dev fee for the first 4 years like ZEC. It's in the devs best interest to keep the coin valuable rather than run an exploit like this early on and dump the coins long before the tokens ever hit their potential in value.

Now the dev fee is going to be burned away for awhile until the double spent coins are leveled.

Does not look like an inside job
pereira4
Legendary
*
Offline Offline

Activity: 1610
Merit: 1183


View Profile
February 20, 2017, 01:04:37 AM
 #17

You could say that the same happened in bitcoin in the early days (that one bug that needed a hard fork to get rid of generated coins). The difference is, it was the early days of bitcoin, and nobody gave a fuck since it was worthless back then.

Mistakes like this in 2017 could be fatal for a crypto. Another strong point of bitcoin is this will not happen again, and new technologies are at risk of such a thing occurring, the difference is, nowadays it would be a disaster.
almightyruler
Legendary
*
Offline Offline

Activity: 2268
Merit: 1092


View Profile
February 20, 2017, 03:09:41 PM
 #18

Some of the code in recent zcoin commits looks to be wandering into undefined behaviour territory...

https://github.com/zcoinofficial/zcoin/commit/ca0bb3cabe300c204749731e3a7c3e7fa1f24c71

- if (pubcoinId < 1 && pubcoinId == INT_MAX) { // IT BEGINS WITH 1
+ if (pubcoinId < 1 || pubcoinId >= INT_MAX) { // IT BEGINS WITH 1


pubcoinId is an int, so it's impossible for it to contain a number greater than INT_MAX. If you add 1 to INT_MAX, you overflow. One of those things that will probably "work fine" in practice (I guess the compiler would internally change >= INT_MAX to == INT_MAX)  but it's still a coding error.

The original code looks quite odd too. How could a signed int contain INT_MAX and also be less than 1? Any modern compiler would probably consider this dead code - the condition can never be satisfied - and ignore the whole code block.
pereira4
Legendary
*
Offline Offline

Activity: 1610
Merit: 1183


View Profile
February 20, 2017, 03:32:54 PM
 #19

Zerocoin is just a collapsing coin at least price wise. Look at the damn all time history. We have a coin with a price on constant downtrend, while ironically the marketcap goes up.

The conclusion is clear: The coin distribution is a mess. The more the marketcap grows, the more the price goes down.
Hueristic
Legendary
*
Offline Offline

Activity: 3808
Merit: 4898


Doomed to see the future and unable to prevent it


View Profile
February 20, 2017, 04:18:54 PM
 #20

This is something that ends up killing the coin, we saw the same happen with DAO and now with Zerocoin. This is what differentiates a good project from a bad one, I feel sorry for those who invested and end up losing money on this one.

I don't they are idiots, I and others have been warning all along that the cornerstone of crypto is a trustless setup. PERIOD, there is no way around it.

So you fools that didn't listen pay the price as your the same ones that do it again and again and keep these thieves going.

Stop supporting poor tech and scam ICO just so you can make a quick buck and this massive fleecing will taper off.

“Bad men need nothing more to compass their ends, than that good men should look on and do nothing.”
John Titor
Full Member
***
Offline Offline

Activity: 129
Merit: 100


View Profile
February 20, 2017, 04:40:26 PM
 #21

https://news.ycombinator.com/item?id=13673214 I came across this post on Hacker News.  ZCash Devs basically claiming that Poramin Ipsom basically just copy/pasted code from the original bitcoin code, and that lazy code work allowed for a double spend.  If true, it's kind of surprising that this kind of bug wasn't caught sooner; along with Poramin being the only dev for ZCoin, and the drama with co-founder Gary Lee, I'd say it might be time to jump ship.

I bought in around 30-70k sats range, and I am very thankful that the price hasn't tanked yet and I was able to liquidate 80% of what I purchased, and get out with a solid profit.  Provided that no new information comes in from Poramin giving a reasonable explanation/defense for this, I'd have to recommend others do the same.
jeremy grol
Hero Member
*****
Offline Offline

Activity: 882
Merit: 500


View Profile
February 20, 2017, 06:10:55 PM
 #22

Poramin and gary: both scammers.

simonbtc
Newbie
*
Offline Offline

Activity: 16
Merit: 0


View Profile
February 20, 2017, 11:16:18 PM
 #23

There's also an equality vs assignment bug which impacts how the wallet tracks (or doesn't correctly track?) serial numbers of spent private coins:

https://makebitcoingreatagain.wordpress.com/2017/02/18/is-the-zcoin-bug-in-checktransaction/#update4
almightyruler
Legendary
*
Offline Offline

Activity: 2268
Merit: 1092


View Profile
February 21, 2017, 12:38:07 AM
 #24

There's also an equality vs assignment bug which impacts how the wallet tracks (or doesn't correctly track?) serial numbers of spent private coins:

https://makebitcoingreatagain.wordpress.com/2017/02/18/is-the-zcoin-bug-in-checktransaction/#update4


zccoinSpend.denomination == libzerocoin::ZQ_LOVELACE;

Ouch. Another bit of dead code that would have been completely ignored by the compiler. I wonder if it emits a warning that the code doesn't actually do anything?
JosNekoKopa
Sr. Member
****
Offline Offline

Activity: 476
Merit: 250


View Profile
February 21, 2017, 12:00:28 PM
 #25

All this has been for expecting, and who know how all this is going to be ended. I don't understand only how Bittrex did not found those code mistakes, they also can be endangered this way. I thought, they checks code before adding it.
Mallyx
Hero Member
*****
Offline Offline

Activity: 1138
Merit: 574



View Profile
February 21, 2017, 02:16:11 PM
 #26

All this has been for expecting, and who know how all this is going to be ended. I don't understand only how Bittrex did not found those code mistakes, they also can be endangered this way. I thought, they checks code before adding it.

They are checking codes only to find malicious, it's not a full review.
JosNekoKopa
Sr. Member
****
Offline Offline

Activity: 476
Merit: 250


View Profile
February 25, 2017, 07:49:01 PM
 #27

They are checking codes only to find malicious, it's not a full review.
What is worse of this, i mean someone created coins from the nothing, and dumped at Bittrex users. In case of malicious code he won't damage only users, he could still and from house, and what we got? House who doesn't care about its users.
almightyruler
Legendary
*
Offline Offline

Activity: 2268
Merit: 1092


View Profile
February 26, 2017, 02:50:36 AM
 #28

They are checking codes only to find malicious, it's not a full review.
What is worse of this, i mean someone created coins from the nothing, and dumped at Bittrex users. In case of malicious code he won't damage only users, he could still and from house, and what we got? House who doesn't care about its users.

Manual code review is labour intensive, and prone to errors. The more the source code deviates from a known reference, the more work it is to review. A cloned shitcoin may only have a small number of changes, but it looks like zcoin has quite a bit of unique code.

There are some programs that can analyze code and help point to potential problems, like undefined behaviour, but they won't catch silly mistakes like using the wrong constant.
JosNekoKopa
Sr. Member
****
Offline Offline

Activity: 476
Merit: 250


View Profile
February 26, 2017, 09:55:43 AM
 #29

#almightyruler
You are right this is very hard work and mistakes can happen, but for coins that actually promoting
 something abstract like zero knowledge or anonymous transactions code must be perfect.
Hueristic
Legendary
*
Offline Offline

Activity: 3808
Merit: 4898


Doomed to see the future and unable to prevent it


View Profile
February 27, 2017, 05:24:48 PM
 #30

It's an inherent bug intentionally put there then exploited to dump on those stupid enough to buy in. Just a scam like all the rest. Really no-one has seen this pattern from this dev? In that case you all deserve to lose from sheer idiocy.

“Bad men need nothing more to compass their ends, than that good men should look on and do nothing.”
playingpoodles
Member
**
Offline Offline

Activity: 107
Merit: 10


View Profile
April 03, 2017, 03:18:48 PM
 #31

Very likely an inside job.

Which is more likely:

(a) a random outsider on the internet targets obscure cryptocurrency worth less than $10 million instead of much more valuable currencies, pores over their code, finds and exploits a bug that escaped developers, and developers do not notice the mismatch between mint and spend until over 20% of total supply has been maliciously created?

(b) developers (or some of them) of Zcoin notice a bug or deliberately create one in the first instance, when Zcoin doesn't take off quickly enough to make them millionaires off of their 20% shared founders reward, they exploit the bug. After they maliciously create over 20% of total supply they decide that is sufficient to help their present financial needs and any more will spook the market. Then they stage-manage a bug announcement stressing that as almost all the 370,000 maliciously created coins are already sold on the market and won't be dumped the market shouldn't worry?

See my Reddit post for more detail https://www.reddit.com/r/CryptoCurrency/comments/6379u9/zcoin_bug_a_deliberate_inside_job/
CorePrime95
Full Member
***
Offline Offline

Activity: 190
Merit: 101


View Profile
April 03, 2017, 06:06:31 PM
 #32

Zoin also had this bug (as it is a Zerocoin fork) but is now fixed: https://bitcointalk.org/index.php?topic=1671060.0
Pages: 1 2 [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!