Bitcoin Forum
April 26, 2024, 09:29:09 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Point of Attack: Miners can steal from retail  (Read 1245 times)
LurbQBurdock (OP)
Newbie
*
Offline Offline

Activity: 24
Merit: 0



View Profile
April 18, 2013, 01:16:24 AM
 #1

Is there a solution to the following method of stealing something from retail (groceries, coffee, a TV, etc)?

The owner of BTCGuild walks into a store and selects something.  He goes to the cashier who accepts bitcoin.  He hits send, the cashier sees the transaction (the "spend transaction") and says "thank you", and the miner walks away.

Now, there have been no confirmations on that transaction yet.  As this is retail, the cashier can't have the customer waiting around for a block or 3 to get written.

The miner kept a log of the spend transaction and knows exactly which bitcoin he spent at the store.  When he logs into the pool operating software, he attempts to write a different transaction (the "steal transaction") to send this bitcoin instead to a different address (a double spend).  Since this is the owner of BTCGuild, he's able to write the next block 30% of the time and successfully steal from the store.

The best part about this is that in the 70% of the times when some other miner writes a block, and the spend transaction is written to the blockchain before the steal transaction can be written, no one knows that a theft was attempted.  The steal transaction never gets propagated on the network until it gets written to the blockchain.

Someone knowledgeable please tell me there is a solution to this.  How could retail trust bitcoin if miners could sometimes steal from them?
1714123749
Hero Member
*
Offline Offline

Posts: 1714123749

View Profile Personal Message (Offline)

Ignore
1714123749
Reply with quote  #2

1714123749
Report to moderator
1714123749
Hero Member
*
Offline Offline

Posts: 1714123749

View Profile Personal Message (Offline)

Ignore
1714123749
Reply with quote  #2

1714123749
Report to moderator
1714123749
Hero Member
*
Offline Offline

Posts: 1714123749

View Profile Personal Message (Offline)

Ignore
1714123749
Reply with quote  #2

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

Activity: 854
Merit: 500



View Profile
April 18, 2013, 01:37:55 AM
 #2

From when he starts the transaction to when it shows up instantly in the POS machine, is this information relayed by miners or by anyone who has the bitcoin client open?

              ▄███▄   ▄███▄
              █████   █████
      ▄███▄    ▀▀▀     ▀▀▀    ▄███▄
      █████     ▄██▄ ▄██▄     █████
       ▀▀▀ ▄██▄ ▀██▀ ▀██▀ ▄██▄ ▀▀▀
 ▄███▄     ▀██▀           ▀██▀     ▄███▄
 █████ ▄██▄                   ▄██▄ █████
  ▀▀▀  ▀██▀                   ▀██▀  ▀▀▀
                       ▄█
▄███▄ ▄██▄            ███ ███  ▄██▄ ▄███▄
█████ ▀██▀  ████      █████    ▀██▀ █████
 ▀▀▀         ▀███▄    ████           ▀▀▀
       ▄██▄    ████   ███     ▄██▄
 ▄███▄ ▀██▀     ▀███  ███     ▀██▀ ▄███▄
 █████            ███▄██           █████
  ▀▀▀              ▀████            ▀▀▀
                     ███
                     ███
                     ██
                   ███

████    ██
  ████    ██
    ████    ██
      ████    ██
        ████    ██
          ████    ██
          ████    ██
        ████    ██
      ████    ██
    ████    ██
  ████    ██
████    ██










White Paper
Yellow Paper
Pitch Deck
Telegram
LinkedIn
Twitter
LurbQBurdock (OP)
Newbie
*
Offline Offline

Activity: 24
Merit: 0



View Profile
April 18, 2013, 01:43:59 AM
 #3

Yes.  The spend transaction is relayed through the nodes, but it is not yet included in the blockchain.
LeTanque
Member
**
Offline Offline

Activity: 85
Merit: 10


Fortune favors the bold and brave


View Profile
April 18, 2013, 01:52:58 AM
 #4

Isn't this a classic double-spend scenario and not isolated to miners?

This is one of the current bitcoin flaws for retail purchases, correct?  Confirmations are essential and they take time.

"It is a mistake to suppose that any technological innovation has a one-sided effect. Every technology is both a burden and a blessing; not either-or, but this-and-that." -Neil Postman Technopoly
1FooDLuTYk782GQNrY7zY1obTc4ceUfj5t
LurbQBurdock (OP)
Newbie
*
Offline Offline

Activity: 24
Merit: 0



View Profile
April 18, 2013, 01:59:03 AM
 #5

It's a slight variant.  A non-miner could be caught by the store because his double spend would be broadcast on the network.  The miner doesn't need to broadcast his double spend.
LeTanque
Member
**
Offline Offline

Activity: 85
Merit: 10


Fortune favors the bold and brave


View Profile
April 18, 2013, 02:00:01 AM
 #6

But eventually it will hit the blockchain, right?

I'm sorry, I'm probably missing something here.

"It is a mistake to suppose that any technological innovation has a one-sided effect. Every technology is both a burden and a blessing; not either-or, but this-and-that." -Neil Postman Technopoly
1FooDLuTYk782GQNrY7zY1obTc4ceUfj5t
Maged
Legendary
*
Offline Offline

Activity: 1204
Merit: 1015


View Profile
April 18, 2013, 05:50:15 AM
 #7

Someone knowledgeable please tell me there is a solution to this.
 
First off, let me give you the name we call this attack. We call this attack the "Finney Attack". Feel free to Google it for more discussion of it.

How could retail trust bitcoin if miners could sometimes steal from them?
Well, let's start out with the simple answer: they just have to. However, that's not as big of a deal as you think, since most retail already accept a form of payment that can be reversed by a determined attacker 100% of the time: credit cards. Therefore, 0-confirmation transactions are, in many ways, actually safer than one of the most common ways people already transact.

As far as preventing it, once we are in a world with no block subsidy, merchants can chain the fees for currently unconfirmed transactions in such a way that the longer it takes the attacker to find a block, the more fees they would be forced to give up because the fees were dependent on the transaction that was double-spent.

kjj
Legendary
*
Offline Offline

Activity: 1302
Merit: 1024



View Profile
April 18, 2013, 12:52:19 PM
Last edit: April 18, 2013, 03:36:30 PM by kjj
 #8

If only there were third parties that were willing to handle these transactions for us...  Perhaps they could collect a fee for assuming the risk inherent in retail.

How about this?  The customer walks in, picks stuff out, goes to checkout.  They swipe a small magnetic card through a sensor to authenticate.  The POS terminal then checks online to see if a third party is willing to take on the risk based on that customer and the purchase amount.  The purchase amount is then either deducted to the customer's pre-paid balance with that third party, or added to a debt owed to that third party by the customer.

Any of this sounding familiar?

edit: added the word "retail" in the first paragraph.  Damn tablet browser.

17Np17BSrpnHCZ2pgtiMNnhjnsWJ2TMqq8
I routinely ignore posters with paid advertising in their sigs.  You should too.
astor
Newbie
*
Offline Offline

Activity: 39
Merit: 0


View Profile
April 18, 2013, 04:25:59 PM
 #9

Someone knowledgeable please tell me there is a solution to this.
 
First off, let me give you the name we call this attack. We call this attack the "Finney Attack". Feel free to Google it for more discussion of it.

How could retail trust bitcoin if miners could sometimes steal from them?
Well, let's start out with the simple answer: they just have to. However, that's not as big of a deal as you think, since most retail already accept a form of payment that can be reversed by a determined attacker 100% of the time: credit cards. Therefore, 0-confirmation transactions are, in many ways, actually safer than one of the most common ways people already transact.

As far as preventing it, once we are in a world with no block subsidy, merchants can chain the fees for currently unconfirmed transactions in such a way that the longer it takes the attacker to find a block, the more fees they would be forced to give up because the fees were dependent on the transaction that was double-spent.

Credit card reversals aren't such a big problem.  They affect your trust and you can only reverse so much until you lose your card and the ability to reverse.  A reversable transaction that is not tied to trust is completely different issue.
wheatstone
Member
**
Offline Offline

Activity: 82
Merit: 10


View Profile
April 18, 2013, 04:48:38 PM
 #10

Credit card reversals aren't such a big problem.  They affect your trust and you can only reverse so much until you lose your card and the ability to reverse.  A reversable transaction that is not tied to trust is completely different issue.

I would argue that in-store purchases are very much tied to trust. At least if you value your identity.

The problem is much greater in the case of online spends where there is no camera pointing at your face.
justusranvier
Legendary
*
Offline Offline

Activity: 1400
Merit: 1009



View Profile
April 18, 2013, 11:11:19 PM
 #11

As far as preventing it, once we are in a world with no block subsidy, merchants can chain the fees for currently unconfirmed transactions in such a way that the longer it takes the attacker to find a block, the more fees they would be forced to give up because the fees were dependent on the transaction that was double-spent.
For that matter, mining pools could offer double spending protection on a subscription basis.

All a merchant needs is to positive confirmation from a large enough fraction of the hashing power that a conflicting transaction will not be included in a block. The size of the fraction needed is just enough that it would be uneconomical for an attacker to attempt a double spend for the size of a given transaction.
Anon136
Legendary
*
Offline Offline

Activity: 1722
Merit: 1217



View Profile
April 18, 2013, 11:14:56 PM
 #12

one way this problem could be solved is by asking to see the persons id and then calling the cops

Rep Thread: https://bitcointalk.org/index.php?topic=381041
If one can not confer upon another a right which he does not himself first possess, by what means does the state derive the right to engage in behaviors from which the public is prohibited?
Mylon
Full Member
***
Offline Offline

Activity: 140
Merit: 100

Mining FTW


View Profile
April 18, 2013, 11:30:34 PM
 #13

Satoshi already predicted that Merchants would setup their own mining clusters, purely for this reason.

My expectation is also that by the time we will be able to widely pay with bitcoins in stores, that the cluster of miners will be so big, that it will be hard for anyone to get a big share. (10%+)

Lastly, don't underestimate a merchant that is getting robbed, they will find something to reduce the risk to minimal proportions.

"All Your Base Are Belong To Us" by CATS
TimJBenham
Sr. Member
****
Offline Offline

Activity: 280
Merit: 250


View Profile
April 18, 2013, 11:33:22 PM
 #14

Credit card reversals aren't such a big problem.  They affect your trust and you can only reverse so much until you lose your card and the ability to reverse.  A reversable transaction that is not tied to trust is completely different issue.

I would argue that in-store purchases are very much tied to trust. At least if you value your identity.

And yet in-store carding happens. So long as the goods aren't too valuable the cops don't do much about it, AFAIK.

The problem is much greater in the case of online spends where there is no camera pointing at your face.

Only for digital goods. Physical goods have to be shipped, which takes time and provides the opportunity to wait for confirmations.

You are a warlord in the outskirts of the known world struggling to establish a kingdom in the wild lands.
Maged
Legendary
*
Offline Offline

Activity: 1204
Merit: 1015


View Profile
April 19, 2013, 02:34:52 AM
 #15

Credit card reversals aren't such a big problem.  They affect your trust and you can only reverse so much until you lose your card and the ability to reverse.  A reversable transaction that is not tied to trust is completely different issue.
And that's why I said "determined attacker". A determined attacker would use stolen credit cards.

However, you're correct about casual attackers. Fortunately, since casual attackers wouldn't have a mining farm, they'd succeed so rarely that it's barely worth mentioning.

oakpacific
Hero Member
*****
Offline Offline

Activity: 784
Merit: 1000


View Profile
April 19, 2013, 06:29:33 AM
 #16

I am fairly sure the chance of a steal transaction becoming valid is not 30% even if the thieve controls 30% of the hashpower/nodes, the real probability has to depend on the time passed(how many blocks are found) between the two transactions.

https://tlsnotary.org/ Fraud proofing decentralized fiat-Bitcoin trading.
morningtime
Full Member
***
Offline Offline

Activity: 160
Merit: 100


View Profile
April 19, 2013, 07:07:17 AM
 #17

Well I assume retail will simply tell customer to "wait for confirmations" before handing over good. This delay can be mitigated by faster confirmations i.e. paying a reasonable transaction fee of 0.01 BTC per kb. CreditCard payments also take some seconds to confirm.

For now, retailers simply have to tell Bitcoin customers to "wait for confirmations" before shipping/handing over goods.
warpio
Member
**
Offline Offline

Activity: 110
Merit: 10



View Profile
April 19, 2013, 03:15:40 PM
 #18

A retailer accepting bitcoin would probably have to have its own copy of the blockchain, so it can verify transactions on its own local trusted node without having to wait for the network to confirm it.
Pages: [1]
  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!