Bitcoin Forum
May 08, 2024, 08:04:02 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1] 2 »  All
  Print  
Author Topic: Ledger omitting one character from a Doge address  (Read 317 times)
LoyceV (OP)
Legendary
*
Offline Offline

Activity: 3304
Merit: 16620


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
April 16, 2021, 01:32:07 PM
Merited by Foxpup (3), o_e_l_e_o (2)
 #1

When trying to send some Doge from my Ledger using Ledger Live, it missed one character on the display when comparing the address. Let's say the address was xxxxNyyyyzzzz. The address is split over several screens because it's too large, and looks like this on the Ledger:
Code:
Address (1/3)
xxxxx
Code:
Address (2/3)
yyyyy
The character in between xxxxNyyyy didn't show up! I tried a small amount, and set a low fee. It didn't show up on a block explorer, and didn't confirm.
Ledger Live shows the correct address, but the Ledger device doesn't!

After a while the funds returned to Ledger, and I made a new transaction to another address. Everything worked as expected.

I'm just posting here for latere reference.

Make sure you back up your wallet regularly! Unlike a bank account, nobody can help you if you lose access to your BTC.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715198642
Hero Member
*
Offline Offline

Posts: 1715198642

View Profile Personal Message (Offline)

Ignore
1715198642
Reply with quote  #2

1715198642
Report to moderator
suchmoon
Legendary
*
Offline Offline

Activity: 3654
Merit: 8922


https://bpip.org


View Profile WWW
April 16, 2021, 02:25:14 PM
 #2

Probably not an issue, at least not with the type of attack I'm thinking of - like clipboard malware. It would have to match all other characters, which is pretty much impossible. Perhaps I'm not evil enough though, maybe there is some other way to exploit this.
LoyceV (OP)
Legendary
*
Offline Offline

Activity: 3304
Merit: 16620


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
April 16, 2021, 02:28:23 PM
 #3

Perhaps I'm not evil enough though, maybe there is some other way to exploit this.
I don't think it's caused by an exploit, and I expect a missing character to result in an invalid address. My hope is that it's just a display bug on the Ledger, my fear is it's creating an incorrect (and invalid) transaction.

My clipboard was correct Smiley

suchmoon
Legendary
*
Offline Offline

Activity: 3654
Merit: 8922


https://bpip.org


View Profile WWW
April 16, 2021, 02:34:53 PM
 #4

Perhaps I'm not evil enough though, maybe there is some other way to exploit this.
I don't think it's caused by an exploit, and I expect a missing character to result in an invalid address. My hope is that it's just a display bug on the Ledger.

My clipboard was correct Smiley

I'm assuming it's a display issue, and I was thinking if/how it could be exploited, not that it's caused by an exploit.

If it's not a display issue and it really cuts one character out and puts that mangled hash in the TX that'd be quite nasty.
PrimeNumber7
Copper Member
Legendary
*
Offline Offline

Activity: 1624
Merit: 1899

Amazon Prime Member #7


View Profile
April 16, 2021, 02:50:56 PM
 #5

Do Doge addresses contain a checksum as bitcoin addresses do? If so, it shouldn't be necessary to worry about a single omitted address, as the transaction would be invalid if incorrect.

If you are concerned about an attacker creating a vanity address that matches the entire 1st page displayed on your Ledger device, remember that creating vanity addresses get exponentially more difficult with each additional character you want.
o_e_l_e_o
In memoriam
Legendary
*
Offline Offline

Activity: 2268
Merit: 18510


View Profile
April 16, 2021, 07:32:23 PM
 #6

Do Doge addresses contain a checksum as bitcoin addresses do?
As far as I am aware, the only difference between a Dogecoin address and a legacy Bitcoin address is that the Dogecoin address uses a 0x1E version byte instead of a 0x00 version byte, meaning the first character of the address is "D" rather than "1". So yes, they contain the same double SHA256 checksum.
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4316

<insert witty quote here>


View Profile
April 17, 2021, 04:17:21 AM
 #7

I'm just posting here for latere reference.
Is it a repeatable bug? Huh Or does it only do it with particular address? Kinda seems like the sort of thing that should be highlighted to Ledger support and/or logged on their issue register.

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
Lucius
Legendary
*
Offline Offline

Activity: 3234
Merit: 5643


Blackjack.fun🎲


View Profile WWW
April 17, 2021, 01:16:06 PM
Merited by suchmoon (9), LoyceV (4)
 #8

Ledger has announced that there are difficulties with Doge transactions in Ledger Live, perhaps this is the reason that the addresses in Ledger Live and Ledger devices are not identical.

We are currently experiencing some difficulties with DOGE transactions in Ledger Live. As far as we know, there isn't a third-party compatible wallet that you could use in the meantime.

More info here - > Send DOGE with ledger live to exchange but does not get sent.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
LoyceV (OP)
Legendary
*
Offline Offline

Activity: 3304
Merit: 16620


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
April 17, 2021, 01:36:50 PM
 #9

Is it a repeatable bug?
I can repeat it, but only with 1 out of the 2 addresses I've tried. This is the address:
Code:
DMv1UW6d2vXUqNGw7YZyXjPEx959wM2FEN
               ↑
This is what it looks like on the Ledger:
Image loading...
If you can verify the bug by creating a test-transaction (no need to broadcast it, just reject it on the Ledger), that would be much appreciated.
There's a firmware update waiting, but I haven't installed it yet.

Quote
Kinda seems like the sort of thing that should be highlighted to Ledger support and/or logged on their issue register.
Unless it's fixed already in the latest firmware, but I'm always afraid to upgrade those.

Ledger has announced that there are difficulties with Doge transactions in Ledger Live, perhaps this is the reason that the addresses in Ledger Live and Ledger devices are not identical.
I did upgrade Ledger Live recently. That would mean Ledger Live omits a character when sending the address to the Ledger device.

Lucius
Legendary
*
Offline Offline

Activity: 3234
Merit: 5643


Blackjack.fun🎲


View Profile WWW
April 17, 2021, 02:23:49 PM
Merited by LoyceV (2)
 #10

If you can verify the bug by creating a test-transaction (no need to broadcast it, just reject it on the Ledger), that would be much appreciated.

I tried it on my Nano X, and the address you have a problem with is displayed correctly on my device - The Nano X at least has a larger screen so the entire address can be displayed at once.



Unless it's fixed already in the latest firmware, but I'm always afraid to upgrade those.

In the worst case, it can happen that you brick your hardware wallet - but I think that happens very rarely. Yet those initial problems that have occurred with Ledger firmware should be a thing of the past - this process is now much more painless and faster - unless you are using some old OS like Windows 7.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
suchmoon
Legendary
*
Offline Offline

Activity: 3654
Merit: 8922


https://bpip.org


View Profile WWW
April 17, 2021, 03:00:05 PM
 #11

I did upgrade Ledger Live recently. That would mean Ledger Live omits a character when sending the address to the Ledger device.

I tried it on my Nano X, and the address you have a problem with is displayed correctly on my device - The Nano X at least has a larger screen so the entire address can be displayed at once.

I'm still confused by this. If it's a Ledger Live bug, wouldn't the address be wrong on any device? Or do you two use different Live versions?

Which part (Live or the device) is splitting the address into multiple lines for display? I was assuming it was the device doing this, and dropping one character - seemed like too much of a coincidence that this specific character position on the boundary of two lines is missing.
dkbit98
Legendary
*
Offline Offline

Activity: 2226
Merit: 7141



View Profile WWW
April 17, 2021, 03:16:37 PM
 #12

I don't think it's caused by an exploit, and I expect a missing character to result in an invalid address. My hope is that it's just a display bug on the Ledger, my fear is it's creating an incorrect (and invalid) transaction.

I heard about similar problem with Bitcoin addresses on ledger that was cause by some malicious program that was changing only last four characters on bitcoin address to steal funds, but right now I can't find the source of this information.

Ledger reddit page is full of posts with people complaining and asking where are their coins, but have you seen this doge page on ledger wallet website?

Quote
We are currently experiencing some difficulties with DOGE transactions in Ledger Live. As far as we know, there isn't a third-party compatible wallet that you could use in the meantime. Besides, when you make DOGE transactions, make sure to not mistake your Dogecoin (DOGE) address for your DigiByte (DGB) address. DOGE addresses start with a capital D whereas DGB addresses start with a capital S.
https://support.ledger.com/hc/en-us/articles/115005174025


.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
Lucius
Legendary
*
Offline Offline

Activity: 3234
Merit: 5643


Blackjack.fun🎲


View Profile WWW
April 17, 2021, 03:29:24 PM
Last edit: April 17, 2021, 03:49:26 PM by Lucius
Merited by LoyceV (4), o_e_l_e_o (2)
 #13

I'm still confused by this. If it's a Ledger Live bug, wouldn't the address be wrong on any device? Or do you two use different Live versions?

I have the latest version available (2.25.1), and LoyceV claims to have also made an update recently, so I guess we use the same Ledger Live version, but a different device.

Which part (Live or the device) is splitting the address into multiple lines for display? I was assuming it was the device doing this, and dropping one character - seemed like too much of a coincidence that this specific character position on the boundary of two lines is missing.

When it comes to Nano S, due to the size of the screen, it is not possible to display the address at once, but what exactly causes the address not to be displayed correctly at this time we cannot say. Maybe LoyceV has problematic (old) firmware that is combined with current Ledger Live and problems that Ledger has currently with Doge.

Edit:

I found my Nano S and tried to reproduce the same error when displaying the address, and I can confirm that the (w) character is really missing. Since I couldn’t reproduce the same thing on the Nano X, we can conclude that something is wrong with the Nano S combined with the current Ledger Live.




.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
Pmalek
Legendary
*
Offline Offline

Activity: 2758
Merit: 7136



View Profile
April 17, 2021, 10:18:12 PM
 #14

In all my years with a Ledger wallet, I have never seen such a thing. I don't have Dogecoins on my Ledger device, but I thought I would be able to create a 0-value transaction and get to the confirmation screen to have the address displayed on the device. After installing the app and adding a Doge account, it unfortunately didn't work. The continue button is only clickable with a valid balance.

All I could try was to generate a new receiving address and compare the one in Ledger Live to the one displayed on the screen of my Nano. Both were identical, there were no missing characters. Can you recreate the bug when you generate new receiving addresses or when you try to send to any random Doge address found on the blockchain?

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
LoyceV (OP)
Legendary
*
Offline Offline

Activity: 3304
Merit: 16620


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
April 18, 2021, 08:35:34 AM
 #15

Can you recreate the bug when you generate new receiving addresses or when you try to send to any random Doge address found on the blockchain?
Probably. I expect it to take some trial and error, but haven't tested other addresses.

I've sent Ledger an email, now we wait Cheesy

dkbit98
Legendary
*
Offline Offline

Activity: 2226
Merit: 7141



View Profile WWW
April 18, 2021, 09:24:37 AM
 #16

I've sent Ledger an email, now we wait Cheesy

Oh...good luck with that, it's time to pop a champagne bottle.
You should expect to receive stupid generic automatic machine answer and experience their terrible customer support. Smiley

Just now reading on their reddit page that other altcoins like Vertcoin also have some issues with ledger.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
LoyceV (OP)
Legendary
*
Offline Offline

Activity: 3304
Merit: 16620


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
April 19, 2021, 09:51:49 AM
Last edit: April 19, 2021, 10:24:27 AM by LoyceV
Merited by Foxpup (1), Lucius (1), LeGaulois (1)
 #17

Oh...good luck with that, it's time to pop a champagne bottle.
You should expect to receive stupid generic automatic machine answer and experience their terrible customer support. Smiley
They responded (as promised within 24 hours):
Quote
Hello Loyce,

Thanks for the bug report. After internal discussion with the firmware team, it appears this issue was already reported through several customer support tickets.

For technical details, the address to be displayed is split in a number of pages depending on the maximum character width. The bug occurs only on some addresses, when the sum of each character width is larger than a threshold. This width used to be hardcoded in the UX library and there was a bug in the related algorithm.

A fix is ready and will be made available in the next version of the SDK, which will happen during the next Nano S firmware release (the Nano X isn't affected because the UX internals are slightly different).

Best,
The Ledger Security Team

suchmoon
Legendary
*
Offline Offline

Activity: 3654
Merit: 8922


https://bpip.org


View Profile WWW
April 19, 2021, 12:40:30 PM
 #18

They responded (as promised within 24 hours):

So... it's a display bug in their "UX library" but apparently it results in an invalid transaction. That sounds a bit contrary to how I thought a hardware wallet is supposed to work.

I thought it goes like this - you build a TX (e.g on a phone or a PC), send it to the device, it shows the receiving address, you confirm it, the device signs the TX. Why is the device allowed to change the output script?
LoyceV (OP)
Legendary
*
Offline Offline

Activity: 3304
Merit: 16620


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
April 19, 2021, 02:22:07 PM
 #19

So... it's a display bug in their "UX library" but apparently it results in an invalid transaction.
It could have been rejected due to my the low fee, I have no idea what the minimum is for Doge. Ledger surprised me with a default fee of more than 2 Doge for one input and 2 outputs.

suchmoon
Legendary
*
Offline Offline

Activity: 3654
Merit: 8922


https://bpip.org


View Profile WWW
April 19, 2021, 02:34:54 PM
 #20

So... it's a display bug in their "UX library" but apparently it results in an invalid transaction.
It could have been rejected due to my the low fee, I have no idea what the minimum is for Doge. Ledger surprised me with a default fee of more than 2 Doge for one input and 2 outputs.

Reading some of the comments on Reddit it sounded like people were complaining about not being able to send coins, and not so much about the address showing up incorrectly on the device.

But who knows, what with Ledger trying so hard to avoid explaining what the issue is and what to do (or not to do) to prevent it.
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!