Bitcoin Forum
May 03, 2024, 04:21:44 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 [2]  All
  Print  
Author Topic: [PSA] Attention: Security vulnerability in new alt coins!  (Read 2277 times)
Invest0r
Member
**
Offline Offline

Activity: 112
Merit: 10



View Profile
May 16, 2013, 05:23:21 PM
 #21

BitBar doesn't have this problem!
The coin uses Proof of stake together with proof of work.

Speculating..
1714710104
Hero Member
*
Offline Offline

Posts: 1714710104

View Profile Personal Message (Offline)

Ignore
1714710104
Reply with quote  #2

1714710104
Report to moderator
1714710104
Hero Member
*
Offline Offline

Posts: 1714710104

View Profile Personal Message (Offline)

Ignore
1714710104
Reply with quote  #2

1714710104
Report to moderator
"With e-currency based on cryptographic proof, without the need to trust a third party middleman, money can be secure and transactions effortless." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
TheSwede75
Full Member
***
Offline Offline

Activity: 224
Merit: 100



View Profile
May 16, 2013, 05:33:44 PM
 #22

Please do not start at zero difficulty (0.00024414 to be precise, which is the default start difficulty of litecoin). I know you're hoping to get rich quick but here's why you should not do this: 51% attack.

All someone has to do is build a tool that will mine valid blocks using GPUs as quickly as possible without asking the network if the blocks are valid or not (except the first one). Then you periodically broadcast your attack chain to the network without caring at all about the longest chain seen by your client from the network. As long as the chain is valid this will work.

With the difficulty at the default of 0.00024414, all you need is 0.00024414 * 2^23 * 10 = 10.5 MHash/s to be able to mine 10 blocks per second (the equation is difficulty * 2^32 * blocks_per_second = hashrate_required). I have noticed usually the network is only able to go 2-5 blocks per second because of network latency, and nearly everyone is getting 95%+ orphans thus wasting their hashing power. So at 10 blocks per second an attacker would have absolutely no problem mining faster than a network that's having a laggy orphan-fest. And 10.5 MHash/s is cheap... quite a lot of people have that or more. You might even be able to pull off this attack with just 5 MHash/s as long as you can build your chain faster than the legit network can.

If your new or upcoming coin uses scrypt the above tool will be able to attack your coin! I don't even think there's any need for the tool to be modified for new coins in order to work, it just needs to grab your genesis block and then go nuts producing blocks as fast as it can, periodically broadcasting its chain to ensure if you use checkpoints there's a high chance you'll checkpoint the chain it's produced. It might need some tweaking knobs for commonly changed parameters like the difficulty retarget period, number of coins per block, etc. It's also quite possible this tool could be made by using a simple proxy wrapper around the *coind server to censor data coming in to ensure it's not aware of other chains but the attacker's chain. This ensures the attacker will be able to jump on your new coin an hijack the chain as soon as you launch.

If anyone can prove that the above tool cannot be created, I am all ears. Please quote source code or something as proof. But as far as I know I am correct and it's possible to perform this attack provided the difficulty is low enough.

TL;DR New altcoin authors, please stop using the default litecoin starting difficulty. Please use a sane value such as 0.25 or 1.0 as the starting difficulty. Otherwise a 51% attack can easily steal all your and your early adopter's coins! Checkpoints will not foil this attack!

Obviously this has been going on a LOT the last few days. Sorry people, those 'disappearing' coins are not orphans or invalid. They are just someone else's coins now!
thekidcoin
Sr. Member
****
Offline Offline

Activity: 308
Merit: 250

FlutterCoin Developer


View Profile
May 16, 2013, 08:01:46 PM
 #23

While this is probably true, if they started at a difficulty of 1, or .25, and the coin became popular, very quickly, it would be impossible to get coins, and if it was traded, the coin would be unprofitable to mine.  So that means basically anyone without 10 - 30 MH's rigs (for litecoin variants) would get scraps, where as currently with some of the new coins, anyone who sees a release quick enough,m even with minimal hashing power, can scoop up a few thousand coins and possible a nice profit if its traded.  I say something like .025 would be a better start than .25 or 1.

What was Bitcoin's original starting difficulty, anyone know?

What are you talking about...? At difficulty 0.25 with 350 KH/s you should find a block roughly every hour, that is hardly scraps. Coins shouldn't be made with the intention of everyone getting thousands of coins in the first few days so they can hoard them until the coin reaches an exchange and then dump their thousands of coins on the market decreasing the value of the coin instantaneously. Any coin designed to be intentionally pumped and dumped shouldn't bother being released.

Bitcoin's starting difficulty was technically higher than 0.25

Code:
static CBigNum bnProofOfWorkLimit(~uint256(0) >> 30)

that generates a starting scrypt difficulty of ~0.25, every incremental increase doubles the difficulty.

Bitcoin started with:

Code:
static CBigNum bnProofOfWorkLimit(~uint256(0) >> 32)

Please explain how that line of code raises the starting difficulty?

1MYL967PR52xiNtqSP9WphRvPzKZDjBdxn
yacoin
Newbie
*
Offline Offline

Activity: 28
Merit: 0



View Profile
May 16, 2013, 08:13:03 PM
 #24

Well this is good to know!

Do you guys think this might have happened with other coins as well?

If someone does a 51% attack, can it be done without anybody knowing about it ?Smiley
tyrion70
Legendary
*
Offline Offline

Activity: 934
Merit: 1000



View Profile
May 16, 2013, 09:02:48 PM
 #25

The tool u mention already exists.. it's called cgminer.. or cpuminer...

you simply start a few daemons with the -connect option. That ensures it only connects to one node (which is also yours).. then you instruct your rigs to mine on your node.. as soon as you have a height > current blockheight you disconnect one daemon and restart it without the -connect option.. Voilá..

And yacoin, yes I think this has been done..

Hazard
Legendary
*
Offline Offline

Activity: 980
Merit: 1000



View Profile WWW
May 16, 2013, 09:03:31 PM
 #26

While this is probably true, if they started at a difficulty of 1, or .25, and the coin became popular, very quickly, it would be impossible to get coins, and if it was traded, the coin would be unprofitable to mine.  So that means basically anyone without 10 - 30 MH's rigs (for litecoin variants) would get scraps, where as currently with some of the new coins, anyone who sees a release quick enough,m even with minimal hashing power, can scoop up a few thousand coins and possible a nice profit if its traded.  I say something like .025 would be a better start than .25 or 1.

What was Bitcoin's original starting difficulty, anyone know?

What are you talking about...? At difficulty 0.25 with 350 KH/s you should find a block roughly every hour, that is hardly scraps. Coins shouldn't be made with the intention of everyone getting thousands of coins in the first few days so they can hoard them until the coin reaches an exchange and then dump their thousands of coins on the market decreasing the value of the coin instantaneously. Any coin designed to be intentionally pumped and dumped shouldn't bother being released.

Bitcoin's starting difficulty was technically higher than 0.25

Code:
static CBigNum bnProofOfWorkLimit(~uint256(0) >> 30)

that generates a starting scrypt difficulty of ~0.25, every incremental increase doubles the difficulty.

Bitcoin started with:

Code:
static CBigNum bnProofOfWorkLimit(~uint256(0) >> 32)

Please explain how that line of code raises the starting difficulty?
It doesn't.

tyrion70
Legendary
*
Offline Offline

Activity: 934
Merit: 1000



View Profile
May 16, 2013, 09:06:25 PM
 #27

It doesn't.
Please explain..

thekidcoin
Sr. Member
****
Offline Offline

Activity: 308
Merit: 250

FlutterCoin Developer


View Profile
May 16, 2013, 09:43:42 PM
 #28

While this is probably true, if they started at a difficulty of 1, or .25, and the coin became popular, very quickly, it would be impossible to get coins, and if it was traded, the coin would be unprofitable to mine.  So that means basically anyone without 10 - 30 MH's rigs (for litecoin variants) would get scraps, where as currently with some of the new coins, anyone who sees a release quick enough,m even with minimal hashing power, can scoop up a few thousand coins and possible a nice profit if its traded.  I say something like .025 would be a better start than .25 or 1.

What was Bitcoin's original starting difficulty, anyone know?

What are you talking about...? At difficulty 0.25 with 350 KH/s you should find a block roughly every hour, that is hardly scraps. Coins shouldn't be made with the intention of everyone getting thousands of coins in the first few days so they can hoard them until the coin reaches an exchange and then dump their thousands of coins on the market decreasing the value of the coin instantaneously. Any coin designed to be intentionally pumped and dumped shouldn't bother being released.

Bitcoin's starting difficulty was technically higher than 0.25

Code:
static CBigNum bnProofOfWorkLimit(~uint256(0) >> 30)

that generates a starting scrypt difficulty of ~0.25, every incremental increase doubles the difficulty.

Bitcoin started with:

Code:
static CBigNum bnProofOfWorkLimit(~uint256(0) >> 32)

Please explain how that line of code raises the starting difficulty?
It doesn't.

Exactly

1MYL967PR52xiNtqSP9WphRvPzKZDjBdxn
thekidcoin
Sr. Member
****
Offline Offline

Activity: 308
Merit: 250

FlutterCoin Developer


View Profile
May 16, 2013, 09:57:02 PM
 #29

Please don't show anyone where to make the change - if someone can't figure that out, then they have no business releasing code that they have no real clue how it works

1MYL967PR52xiNtqSP9WphRvPzKZDjBdxn
arjay45 (OP)
Newbie
*
Offline Offline

Activity: 28
Merit: 0


View Profile
May 17, 2013, 02:17:04 AM
 #30

Please don't show anyone where to make the change - if someone can't figure that out, then they have no business releasing code that they have no real clue how it works

These people are going to create copy-pasta clones anyway. If we don't educate them they will be forever without this knowledge. So I encourage you to explain how to make this modification. I am sick and tired of all these clones starting at retardedly low difficulty.

The tool u mention already exists.. it's called cgminer.. or cpuminer...

you simply start a few daemons with the -connect option. That ensures it only connects to one node (which is also yours).. then you instruct your rigs to mine on your node.. as soon as you have a height > current blockheight you disconnect one daemon and restart it without the -connect option.. Voilá..

And yacoin, yes I think this has been done..

Hmmmm... If it's that easy then it's absolutely silly that these copy-pasta clones start at such a ridiculously low difficulty.

Again, if you have knowledge of how to set the initial difficulty higher please share it. The recent flood of clones is obviously being done by amateurs that probably won't figure this out, and yet will release their coins anyway. So do everyone a favour and educate them. Maybe they will listen.
pizza
Member
**
Offline Offline

Activity: 112
Merit: 10


View Profile
May 17, 2013, 02:39:58 AM
 #31

Yeah I am mining worldcoin because I am bored. I do not expect it to hit an exchange, nor do I expect to be able to sell it for anything more than pennies if it does.

It would be nice if a coin came along that was a serious distraction from litecoin so litecoin's difficulty would go down though. And these copy-pasta clones are not going to do it.

Not sure if you meant copy-pasta or copy-paste, but I think copy-pasta is brilliant because it really feels like all the new alt's are just trolling us like copy-pasta on 4chan...

"Copy-pasta" clones should be the new official name for coins with nothing new to offer...

yeah nothing new besides credit card like transaction speeds, just like the same old bitcoin and litcoins.
thekidcoin
Sr. Member
****
Offline Offline

Activity: 308
Merit: 250

FlutterCoin Developer


View Profile
May 17, 2013, 01:23:36 PM
 #32

Please don't show anyone where to make the change - if someone can't figure that out, then they have no business releasing code that they have no real clue how it works

These people are going to create copy-pasta clones anyway. If we don't educate them they will be forever without this knowledge. So I encourage you to explain how to make this modification. I am sick and tired of all these clones starting at retardedly low difficulty.

The tool u mention already exists.. it's called cgminer.. or cpuminer...

you simply start a few daemons with the -connect option. That ensures it only connects to one node (which is also yours).. then you instruct your rigs to mine on your node.. as soon as you have a height > current blockheight you disconnect one daemon and restart it without the -connect option.. Voilá..

And yacoin, yes I think this has been done..

Hmmmm... If it's that easy then it's absolutely silly that these copy-pasta clones start at such a ridiculously low difficulty.

Again, if you have knowledge of how to set the initial difficulty higher please share it. The recent flood of clones is obviously being done by amateurs that probably won't figure this out, and yet will release their coins anyway. So do everyone a favour and educate them. Maybe they will listen.

Its not so simple to change the starting difficulty without screwing up the entire difficulty calculation.  Hence not one coin that I have seen on the scrypt side has ever released a coin with a higher starting difficulty.  I should say I can see to quick and clean way to do it.  But there are other ways...

1MYL967PR52xiNtqSP9WphRvPzKZDjBdxn
tyrion70
Legendary
*
Offline Offline

Activity: 934
Merit: 1000



View Profile
May 17, 2013, 06:01:31 PM
 #33

Hmmmm... If it's that easy then it's absolutely silly that these copy-pasta clones start at such a ridiculously low difficulty.

Again, if you have knowledge of how to set the initial difficulty higher please share it. The recent flood of clones is obviously being done by amateurs that probably won't figure this out, and yet will release their coins anyway. So do everyone a favour and educate them. Maybe they will listen.

It is quite easy.. unless a retargeting takes place (which is scheduled in the code every so many blocks) the difficulty for a block is simply the difficulty of the block before..

Hence, the starting difficulty depends on the difficulty of the Genesis block..

All the kids here releasing alt-coins barely know how to generate a Genesis block, let alone change it's difficulty..

The bnProofOfWorkLimit is just that; it's the upper (or lower depending how you look at it) limit of the difficulty.

Edit: To further support the above:

Code:
# litecoind getblockhash 0
12a765e31ffd4059bada1e25190f6e98c99d9714d334efa41a195a7e7e04bfe2
# litecoind getblock 12a765e31ffd4059bada1e25190f6e98c99d9714d334efa41a195a7e7e04bfe2
{
...
    "bits" : "1e0ffff0",
    "difficulty" : 0.00024414,
....
}

thekidcoin
Sr. Member
****
Offline Offline

Activity: 308
Merit: 250

FlutterCoin Developer


View Profile
May 17, 2013, 09:32:44 PM
 #34

So your saying if you change bnProofOfWorkLimit as OP said in he first post, that it will change the starting difficulty?

1MYL967PR52xiNtqSP9WphRvPzKZDjBdxn
tyrion70
Legendary
*
Offline Offline

Activity: 934
Merit: 1000



View Profile
May 17, 2013, 10:31:22 PM
 #35

Nopes.. read my post again..

thekidcoin
Sr. Member
****
Offline Offline

Activity: 308
Merit: 250

FlutterCoin Developer


View Profile
May 17, 2013, 11:21:50 PM
 #36

Nopes.. read my post again..

Ahh gotcha...  I have been trying to modify the starting difficulty for the last few days, and while I've done it, it jacks up everything else LOL.

1MYL967PR52xiNtqSP9WphRvPzKZDjBdxn
arjay45 (OP)
Newbie
*
Offline Offline

Activity: 28
Merit: 0


View Profile
May 18, 2013, 12:07:25 AM
 #37

Yes I figured out what you need to do to set the difficulty of the genesis block. It's in the nBits field of the genesis block. If you set the nBits field to bnProofOfWorkLimit.GetCompact() that should ensure that the genesis block and the blocks after it have the difficulty set by bnProofOfWorkLimit. I think anyway. I am not 100% sure.
CaptEmulation
Full Member
***
Offline Offline

Activity: 134
Merit: 100


View Profile
December 24, 2013, 08:58:12 AM
 #38

Bump for justice.  Dogecoin released with insane low difficulty did it not?  I wonder how many Dogecoin ended up in the wrong hands at the beginning?

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!