Bitcoin Forum
September 13, 2024, 03:10:06 PM *
News: Latest Bitcoin Core release: 27.1 [Torrent]
 
   Home   Help Search Login Register More  
Warning: One or more bitcointalk.org users have reported that they believe that the creator of this topic displays some red flags which make them high-risk. (Login to see the detailed trust ratings.) While the bitcointalk.org administration does not verify such claims, you should proceed with extreme caution.
Pages: « 1 ... 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 [61] 62 63 64 65 »
  Print  
Author Topic: Nxt source code flaw reports  (Read 113343 times)
Come-from-Beyond (OP)
Legendary
*
Offline Offline

Activity: 2142
Merit: 1010

Newbie


View Profile
February 24, 2014, 04:28:35 PM
 #1201

Could you please elaborate on how its a feature and not a flaw.

I prefer to wait until someone explains why it's a flaw.
goingDeaf
Newbie
*
Offline Offline

Activity: 26
Merit: 0


View Profile
February 27, 2014, 10:37:18 PM
 #1202


Building on previous posts.

The previous block is always read from the lastBlock ala getBaseTarget.

If a malicious person were to re-write the client at pushBlock so that previous block was offset by 1 at generation time so then verifyGenerationSignature would honour this previous block and skip the actual previous block, meaning that there would be a block with missing transactions making double spending possible.

gimre
Legendary
*
Offline Offline

Activity: 866
Merit: 1002



View Profile WWW
March 02, 2014, 08:15:04 PM
 #1203


Building on previous posts.

The previous block is always read from the lastBlock ala getBaseTarget.

If a malicious person were to re-write the client at pushBlock so that previous block was offset by 1 at generation time so then verifyGenerationSignature would honour this previous block and skip the actual previous block, meaning that there would be a block with missing transactions making double spending possible.

And what makes you think, any other peer in network would accept such block...

NemusExMāchinā
Catapult docs: https://docs.symbol.dev
github: https://github.com/symbol
jkoil
Hero Member
*****
Offline Offline

Activity: 834
Merit: 524


Nxt NEM


View Profile
March 08, 2014, 02:21:50 PM
 #1204


Is the 3rd flaw still running free out there?
...though NXT source is public? Smiley

  https://bitbucket.org/JeanLucPicard  

Come-from-Beyond (OP)
Legendary
*
Offline Offline

Activity: 2142
Merit: 1010

Newbie


View Profile
March 08, 2014, 02:44:11 PM
 #1205


Is the 3rd flaw still running free out there?
...though NXT source is public? Smiley

  https://bitbucket.org/JeanLucPicard  



U still have time to find it and get 100K reward.
jkoil
Hero Member
*****
Offline Offline

Activity: 834
Merit: 524


Nxt NEM


View Profile
March 08, 2014, 03:33:15 PM
 #1206


Is the 3rd flaw still running free out there?
...though NXT source is public? Smiley

  https://bitbucket.org/JeanLucPicard  



U still have time to find it and get 100K reward.

absolutely great.
In that case I start focusing on that flaw, coz I just got my first java code working Smiley
and therefore I'm qualified java dev now -  I shall have a date with that flaw Smiley  :
We shall meet in the place where there is no darkness


Evil-Knievel
Legendary
*
Offline Offline

Activity: 1260
Merit: 1168



View Profile
March 12, 2014, 07:26:20 PM
Last edit: April 17, 2016, 10:45:20 PM by Evil-Knievel
 #1207

This message was too old and has been purged
Come-from-Beyond (OP)
Legendary
*
Offline Offline

Activity: 2142
Merit: 1010

Newbie


View Profile
March 12, 2014, 08:00:33 PM
 #1208

Could you make this clearer?

Only after 3rd of April.
jkoil
Hero Member
*****
Offline Offline

Activity: 834
Merit: 524


Nxt NEM


View Profile
March 14, 2014, 08:52:13 PM
 #1209

Is this "getLastBlock().height > 303" a flaw?

Code:
for (i = 0; i < block.numberOfTransactions; i++) {

Transaction transaction = blockTransactions.get(block.transactions[i]);

if (
  transaction.timestamp > curTime + 15 ||
transaction.deadline < 1 ||
(transaction.timestamp + transaction.deadline * 60 < blockTimestamp &&
getLastBlock().height > 303)
||
transaction.fee <= 0 ||
!transaction.validateAttachment() || Nxt.transactions.get(block.transactions[i]) != null ||
(transaction.referencedTransaction != 0 &&
Nxt.transactions.get(transaction.referencedTransaction) == null &&
blockTransactions.get(transaction.referencedTransaction) == null) ||
(unconfirmedTransactions.get(block.transactions[i]) == null && !transaction.verify())
)
{

break;

}



condition with "303" :  when block height is 1 - 302, transactions' timestamp can be > blockTimestamp.



opticalcarrier
Full Member
***
Offline Offline

Activity: 238
Merit: 100



View Profile
March 14, 2014, 09:08:52 PM
 #1210

Is this "getLastBlock().height > 303" a flaw?

Code:
for (i = 0; i < block.numberOfTransactions; i++) {

Transaction transaction = blockTransactions.get(block.transactions[i]);

if (
  transaction.timestamp > curTime + 15 ||
transaction.deadline < 1 ||
(transaction.timestamp + transaction.deadline * 60 < blockTimestamp &&
getLastBlock().height > 303)
||
transaction.fee <= 0 ||
!transaction.validateAttachment() || Nxt.transactions.get(block.transactions[i]) != null ||
(transaction.referencedTransaction != 0 &&
Nxt.transactions.get(transaction.referencedTransaction) == null &&
blockTransactions.get(transaction.referencedTransaction) == null) ||
(unconfirmedTransactions.get(block.transactions[i]) == null && !transaction.verify())
)
{

break;

}



condition with "303" :  when block height is 1 - 302, transactions' timestamp can be > blockTimestamp.





hmmm 302 blocks is less than 1 day
Come-from-Beyond (OP)
Legendary
*
Offline Offline

Activity: 2142
Merit: 1010

Newbie


View Profile
March 14, 2014, 09:18:53 PM
 #1211

Is this "getLastBlock().height > 303" a flaw?

Code:
for (i = 0; i < block.numberOfTransactions; i++) {

Transaction transaction = blockTransactions.get(block.transactions[i]);

if (
  transaction.timestamp > curTime + 15 ||
transaction.deadline < 1 ||
(transaction.timestamp + transaction.deadline * 60 < blockTimestamp &&
getLastBlock().height > 303)
||
transaction.fee <= 0 ||
!transaction.validateAttachment() || Nxt.transactions.get(block.transactions[i]) != null ||
(transaction.referencedTransaction != 0 &&
Nxt.transactions.get(transaction.referencedTransaction) == null &&
blockTransactions.get(transaction.referencedTransaction) == null) ||
(unconfirmedTransactions.get(block.transactions[i]) == null && !transaction.verify())
)
{

break;

}



condition with "303" :  when block height is 1 - 302, transactions' timestamp can be > blockTimestamp.





It's not the flaw. The block contains a transaction that expired before the block timestamp. The corresponding check was added later.
jkoil
Hero Member
*****
Offline Offline

Activity: 834
Merit: 524


Nxt NEM


View Profile
March 14, 2014, 10:07:34 PM
 #1212

Is this "getLastBlock().height > 303" a flaw?

/code]


condition with "303" :  when block height is 1 - 302, transactions' timestamp can be > blockTimestamp.





It's not the flaw. The block contains a transaction that expired before the block timestamp. The corresponding check was added later.

If NXT-copycoin starts from its genesis block, that condition is not causing any problem or risk?
Come-from-Beyond (OP)
Legendary
*
Offline Offline

Activity: 2142
Merit: 1010

Newbie


View Profile
March 14, 2014, 10:08:26 PM
 #1213

If NXT-copycoin starts from its genesis block, that condition is not causing any problem or risk?

No, don't worry. Smiley
jkoil
Hero Member
*****
Offline Offline

Activity: 834
Merit: 524


Nxt NEM


View Profile
March 14, 2014, 10:19:22 PM
 #1214

If NXT-copycoin starts from its genesis block, that condition is not causing any problem or risk?

No, don't worry. Smiley

ok Smiley

*sigh ... the flaw-candidates are running out. Interesting to see the revelation of 3rd of April ...
Eadeqa
Hero Member
*****
Offline Offline

Activity: 644
Merit: 500


View Profile
March 19, 2014, 05:31:59 PM
 #1215

Could you make this clearer?

Only after 3rd of April.

Don't reveal the flaw on 3rd of April, please

Let someone find it.


Nomi, Shan, Adnan, Noshi, Nxt, Adn Khn
NXT-GZYP-FMRT-FQ9K-3YQGS
https://github.com/Lafihh/encryptiontest
Lohoris
Hero Member
*****
Offline Offline

Activity: 630
Merit: 500


Bitgoblin


View Profile
March 19, 2014, 06:29:01 PM
 #1216

Don't reveal the flaw on 3rd of April, please

Let someone find it.
Are you seriously suggesting to break a promise?

1LohorisJie8bGGG7X4dCS9MAVsTEbzrhu
DefaultTrust is very BAD.
Eadeqa
Hero Member
*****
Offline Offline

Activity: 644
Merit: 500


View Profile
March 19, 2014, 06:37:59 PM
 #1217

Don't reveal the flaw on 3rd of April, please

Let someone find it.
Are you seriously suggesting to break a promise?


Where is the promise that the flaw will be revealed on the 3rd? All I see is the promise of reward before that date. 

Nomi, Shan, Adnan, Noshi, Nxt, Adn Khn
NXT-GZYP-FMRT-FQ9K-3YQGS
https://github.com/Lafihh/encryptiontest
etlase3
Newbie
*
Offline Offline

Activity: 28
Merit: 0


View Profile
March 19, 2014, 07:43:45 PM
 #1218

Don't reveal the flaw on 3rd of April, please

Let someone find it.
Are you seriously suggesting to break a promise?


Like releasing the full source on Jan 3rd?
Come-from-Beyond (OP)
Legendary
*
Offline Offline

Activity: 2142
Merit: 1010

Newbie


View Profile
March 19, 2014, 08:44:19 PM
 #1219

Like releasing the full source on Jan 3rd?

It was never promised to release full source on Jan 3rd. Why r u still there, all ur posts r troll posts.
gimre
Legendary
*
Offline Offline

Activity: 866
Merit: 1002



View Profile WWW
March 20, 2014, 07:00:27 AM
 #1220

Like releasing the full source on Jan 3rd?

It was never promised to release full source on Jan 3rd. Why r u still there, all ur posts r troll posts.

+1, there was never such promise.

actually I thought source code will be published in April, so it's way ahead of that

NemusExMāchinā
Catapult docs: https://docs.symbol.dev
github: https://github.com/symbol
Pages: « 1 ... 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 [61] 62 63 64 65 »
  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!