Department Of DOGE Efficiency retweeted
⚠️Dogecoin, a cryptocurrency project with a market capitalization of over $58 billion, was recently attacked with an exploit that heavily affected its node structure. The exploit, dubbed "Dogereaper," allowed Sequentia developer Andreas Kohl to crash 69% of all the Dogecoin nodes using only an old laptop from El Salvador.
While the attack heavily affected dogecoin nodes, it could have been worse: the vulnerability had already been disclosed by Tobias Ruck, an ecash developer, and Roqqit, another developer. Talking to news.bitcoin.com, Ruck stated that he first discovered this vulnerability while developing doged, an alternative to Dogecoin Core. Ruck explained that while doing tests for the ported code for their alternative software, he found a segmentation fault that had not been fixed in the original code.
Rusk explained:
"We don't condone crashing nodes, we put a lot of effort into keeping the network secure. The attack could've been much more severe. All the important stakeholders like miners, exchanges etc. have been patched long before the attack, and it shows how important it was that we treaded carefully."⚠️
Department Of DOGE Efficiency retweeted
The important lesson from the Doge vulnerability is that there are too many developers who think it is OK to just fix bugs after they get reported, without any preventive maintenance.
And so there are multi-billion $ chains that are one malicious actor away from being shut down.
Rough Timeline of Events
DogeReaper vulnerability
Nov 19: Tobias is working on doged. While writing some tests to ensure compatibility with dogecoin, his code segfaults. No big deal, he fixes it but then realizes the fix doesn’t exist in the original dogecoin code. At 17:43 UTC, Tobias immediately messages Roqqit. “Someone could cause a remote segfault” he says. Roqqit confirms the vulnerability with a 3-character change to dogecoin’s functional tests. At 18:36, Roqqit and Tobias lock in to handle this vulnerability responsibly. Contacts are collected and Roqqit drafts the responsible disclosure.
Department Of DOGE Efficiency retweeted
DogeD almost done!
We think alternative nodes is a good idea, why settle for the same fork everytime? It's time for a change in our eyes!
Shout out to @eCashCommunity and @TobiasRuck for this awesome development!
RT @Dogepay_DRC20: Thank you @TobiasRuck ! We are spinning up a DogeD node very shortly! We will yall know how it goes!!!
Heres the repo…
This quoted post is unavailable.
Department Of DOGE Efficiency retweeted
I was the developer who originally discovered the vulnerability.
@roqqitdev and I responsibly handled this, which is why "only" 69% of the network was affected.
If it would've been exploited by a malicious actor, it could've brought down the network, with no blocks or transactions for a few days.
Thanks to @roqqitdev for helping me handling it like a gigachad and avoid disaster 🙌
Department Of DOGE Efficiency retweeted
$DOGE exploited?!
Not our beloved meme coin!
🚨 BREAKING: Hacker exploits $DOGE flaw, crashing 69% of nodes and exposing a vulnerability that could have taken down the entire network.
Readers added context they thought people might want to know
The Dogecoin network has more than 14,000 active nodes
what-is-dogecoin.com/nodes/
The flaw mentioned in the post was fixed as of the latest Dogecoin Core release 1.14.9 on 12/1/2024
github.com/dogecoin/dogec…
Department Of DOGE Efficiency retweeted
After tireless effort from @EfficiencyDOGE and many eCashers, the vulnerability went unnoticed until someone took the advantage to shutdown more than 2/3 of the nodes and then everyone started to notice.
THIS COULD HAPPEN TO ANY UNMAINTAINED CHAINS!
nitter.cf/i/trending/18672027034…
Department Of DOGE Efficiency retweeted
Lmao
Public Disclosure of "DogeReaper", a critical vulnerability in Dogecoin
DogeReaper is a critical vulnerability on Dogecoin, allowing anyone to crash any Dogecoin node remotely.
See the video below for a demonstration.
It works similarly to the Japanese manga series "Death Note", where you write down the name of a person and that person immediately dies of a heart attack.
DogeReaper is similar, where you write down the address of any Dogecoin node, and that node instantly dies of a Segmentation Fault.
Since the addresses of the Dogecoin nodes are known publicly, anyone could crash the entire Dogecoin network in an instant.
If a malicious actor would’ve found this bug instead of us, he could have stopped the Dogecoin network for at least a few days, with no transactions or blocks.
This would’ve caused a lot of FUD, and the $DOGE price surely would have been closer to $0 than to $1.
Luckily though, we discovered this bug before all this could happen, and DOGE is safe.
We've privately disclosed this vulnerability to the parties most affected by this (miners, exchanges), and most systems have been patched.
NB: @Coinbase considers the severity of this as “Low” and “informative”.
A fix has already been deployed as part of Dogecoin Core 1.14.9. Any version below that is affected by this vulnerability, which according to Blockchair are around 90% of nodes.
Our implementation "doged" is not affected (previously called "Dogecash"). Link in the replies if you want to run your own instance.
If you're running any of the versions 1.14.8 and below, you MUST update your node. Otherwise, anyone can crash it remotely with minimal effort, as shown in the video demonstration.
A signed SHA-256 commitment to prove authorship has been made on Nov 22 on this Twitter account, and in this Dogecoin transaction: c0316b81038bb3c45f50f9cfa929afebcbb17770f95e5cabd133581a147e26e8
So here it is, the DogeReaper vulnerability:
Summary: Malformed AuxPow Coinbase Causes Segmentation Fault in Dogecoin
Responsible Disclosure By:
Tobias Ruck <[email protected]>
Roqqit <[email protected]>
Bounties: DCJDfXGLWBy5psR5QkiTTq62dK1VmGKTtn
dogecoind Versions Affected: v1.14-rc-1 (released 2019) and later
dogecoin developer branch 1.21-dev is also affected.
Who is impacted? Potentially all dogecoind node operators (miners, exchanges, businesses).
Impact if exploited: Potential to remotely crash dogecoind and halt the Dogecoin network. User funds are not at risk.
Public Disclosure: We anticipate publishing the public disclosure on or after December 4th, 2024. We encourage you to patch
and test your systems before this date.
Suggested Remedy:
Immediately apply the following patch to dogecoind:
```
diff --git a/src/auxpow.cpp b/src/auxpow.cpp
index 56b919d3b..dfc378abb 100644
--- a/src/auxpow.cpp
+++ b/src/auxpow.cpp
@@ -101,6 +101,10 @@ CAuxPow::check(const uint256& hashAuxBlock, int nChainId,
!= parentBlock.hashMerkleRoot)
return error("Aux POW merkle root incorrect");
+ if (tx->vin.empty()) {
+ return error("Aux POW coinbase has no inputs");
+ }
+
const CScript script = tx->vin[0].scriptSig;
// Check that the same work is not submitted twice to our chain.
```
Alternative Remedy:
Replace dogecoind with the Dogecash node implementation. See github.com/dogecash-io/dogec… and read more details
about it in the Dogecash section at the bottom of this disclosure.
Details:
Commit bc8cca48968dfa3f60b5eae6a2b92bdd2870eee3 introduced AuxPow support into dogecoind. AuxPow is a feature that allows
Dogecoin and other blockchain networks to share proof of work. While the AuxPow data is not validated in entirety (since
dogecoind has no way to know the consensus rules of other blockchains), there is verification of the proof of work of the
AuxPow payload. This is done in AuxPow::check() in src/auxpow.cpp. The vulnerability in question relates to this line:
const CScript script = tx->vin[0].scriptSig;
Note the assumption that tx->vin is not empty. No validation is done to ensure tx->vin contains one or more entries.
We verified the impact of this vulnerability by applying the following patch which tests AuxPow with no inputs in tx-vin:
```
diff --git a/qa/rpc-tests/test_framework/scrypt_auxpow.py b/qa/rpc-tests/test_framework/scrypt_auxpow.py
index 3beefa057..c2f999947 100644
--- a/qa/rpc-tests/test_framework/scrypt_auxpow.py
+++ b/qa/rpc-tests/test_framework/scrypt_auxpow.py
@@ -36,7 +36,7 @@ def computeAuxpowWithChainId (block, target, chainid, ok):
# Build up the full coinbase transaction. It consists only
# of the input and has no outputs.
- tx = "01000000" + vin + "00" + ("00" * 4)
+ tx = "01000000" + "00" + "00" + ("00" * 4)
txHash = doubleHashHex (tx)
# Construct the parent block header. It need not be valid, just good
```
And then running the AuxPow functional test:
make && ./qa/pull-tester/rpc-tests.py auxpow.py
Note that the test fails with error code -11 SIGSEGV, indicating the node segfaulted during the test.
Because of the nature of this functional test, we believe this is a reasonable approximation of the
behavior we would see if this were exploited in the wild. The cost to an attacker to exploit this is
extremely low and the complexity of such an attack is also extremely low.
With the patch applied from the Suggested Remedy section above, note how the modified test no longer
reports a segfault and instead reports only the expected test failure.
We also discovered that the AuxPow implementation was backported from Namecoin (github.com/namecoin/namecoin…),
however this vulnerability has already been patched as of May 15, 2019:
github.com/namecoin/namecoin…
so no attempt to contact the Namecoin developers or businesses has been made.
We have not yet identified other software forks that may be affected. We encourage recipients of this disclosure report
to share it with trusted individuals related to projects forked from either Namecoin or Dogecoin. Please note that time
is of the essence, and sharing this days prior to the public disclosure date is encouraged.
Dogecash as Alternate Remedy:
Over the last 5 months, we have been developing a high performance Dogecoin node implementation that we call Dogecash.
Dogecash is not a new blockchain. It is an alternative node implementation that is 100% compatible with Dogecoin.
In addition to various improvements in performance, usability, and test coverage, you may notice Dogecash does not
suffer from the same vulnerability. You may also notice that Dogecash's modern RPC suite more similarly matches the
ones you are already familiar with on Bitcoin (BTC) and eCash (XEC). Our RPC suite is significantly faster than
dogecoind, has better test coverage, faster sync/IBD, and the code is cleaner and easier to review. It also ships
with a fast blockchain indexer. We humbly invite you try out Dogecash and are welcome to feedback: github.com/dogecash-io/dogec…
If you plan to run Dogecash, please test against your internal systems before deploying on Dogecoin mainnet.
If you encounter any issues, you can email us with your feedback.
Department Of DOGE Efficiency retweeted
Dogecoin Developers Needed
to
Explain Vulnerability
and
What it would mean if my businesses relied on the Dogecoin Blockchain?
Public Disclosure of "DogeReaper", a critical vulnerability in Dogecoin
DogeReaper is a critical vulnerability on Dogecoin, allowing anyone to crash any Dogecoin node remotely.
See the video below for a demonstration.
It works similarly to the Japanese manga series "Death Note", where you write down the name of a person and that person immediately dies of a heart attack.
DogeReaper is similar, where you write down the address of any Dogecoin node, and that node instantly dies of a Segmentation Fault.
Since the addresses of the Dogecoin nodes are known publicly, anyone could crash the entire Dogecoin network in an instant.
If a malicious actor would’ve found this bug instead of us, he could have stopped the Dogecoin network for at least a few days, with no transactions or blocks.
This would’ve caused a lot of FUD, and the $DOGE price surely would have been closer to $0 than to $1.
Luckily though, we discovered this bug before all this could happen, and DOGE is safe.
We've privately disclosed this vulnerability to the parties most affected by this (miners, exchanges), and most systems have been patched.
NB: @Coinbase considers the severity of this as “Low” and “informative”.
A fix has already been deployed as part of Dogecoin Core 1.14.9. Any version below that is affected by this vulnerability, which according to Blockchair are around 90% of nodes.
Our implementation "doged" is not affected (previously called "Dogecash"). Link in the replies if you want to run your own instance.
If you're running any of the versions 1.14.8 and below, you MUST update your node. Otherwise, anyone can crash it remotely with minimal effort, as shown in the video demonstration.
A signed SHA-256 commitment to prove authorship has been made on Nov 22 on this Twitter account, and in this Dogecoin transaction: c0316b81038bb3c45f50f9cfa929afebcbb17770f95e5cabd133581a147e26e8
So here it is, the DogeReaper vulnerability:
Summary: Malformed AuxPow Coinbase Causes Segmentation Fault in Dogecoin
Responsible Disclosure By:
Tobias Ruck <[email protected]>
Roqqit <[email protected]>
Bounties: DCJDfXGLWBy5psR5QkiTTq62dK1VmGKTtn
dogecoind Versions Affected: v1.14-rc-1 (released 2019) and later
dogecoin developer branch 1.21-dev is also affected.
Who is impacted? Potentially all dogecoind node operators (miners, exchanges, businesses).
Impact if exploited: Potential to remotely crash dogecoind and halt the Dogecoin network. User funds are not at risk.
Public Disclosure: We anticipate publishing the public disclosure on or after December 4th, 2024. We encourage you to patch
and test your systems before this date.
Suggested Remedy:
Immediately apply the following patch to dogecoind:
```
diff --git a/src/auxpow.cpp b/src/auxpow.cpp
index 56b919d3b..dfc378abb 100644
--- a/src/auxpow.cpp
+++ b/src/auxpow.cpp
@@ -101,6 +101,10 @@ CAuxPow::check(const uint256& hashAuxBlock, int nChainId,
!= parentBlock.hashMerkleRoot)
return error("Aux POW merkle root incorrect");
+ if (tx->vin.empty()) {
+ return error("Aux POW coinbase has no inputs");
+ }
+
const CScript script = tx->vin[0].scriptSig;
// Check that the same work is not submitted twice to our chain.
```
Alternative Remedy:
Replace dogecoind with the Dogecash node implementation. See github.com/dogecash-io/dogec… and read more details
about it in the Dogecash section at the bottom of this disclosure.
Details:
Commit bc8cca48968dfa3f60b5eae6a2b92bdd2870eee3 introduced AuxPow support into dogecoind. AuxPow is a feature that allows
Dogecoin and other blockchain networks to share proof of work. While the AuxPow data is not validated in entirety (since
dogecoind has no way to know the consensus rules of other blockchains), there is verification of the proof of work of the
AuxPow payload. This is done in AuxPow::check() in src/auxpow.cpp. The vulnerability in question relates to this line:
const CScript script = tx->vin[0].scriptSig;
Note the assumption that tx->vin is not empty. No validation is done to ensure tx->vin contains one or more entries.
We verified the impact of this vulnerability by applying the following patch which tests AuxPow with no inputs in tx-vin:
```
diff --git a/qa/rpc-tests/test_framework/scrypt_auxpow.py b/qa/rpc-tests/test_framework/scrypt_auxpow.py
index 3beefa057..c2f999947 100644
--- a/qa/rpc-tests/test_framework/scrypt_auxpow.py
+++ b/qa/rpc-tests/test_framework/scrypt_auxpow.py
@@ -36,7 +36,7 @@ def computeAuxpowWithChainId (block, target, chainid, ok):
# Build up the full coinbase transaction. It consists only
# of the input and has no outputs.
- tx = "01000000" + vin + "00" + ("00" * 4)
+ tx = "01000000" + "00" + "00" + ("00" * 4)
txHash = doubleHashHex (tx)
# Construct the parent block header. It need not be valid, just good
```
And then running the AuxPow functional test:
make && ./qa/pull-tester/rpc-tests.py auxpow.py
Note that the test fails with error code -11 SIGSEGV, indicating the node segfaulted during the test.
Because of the nature of this functional test, we believe this is a reasonable approximation of the
behavior we would see if this were exploited in the wild. The cost to an attacker to exploit this is
extremely low and the complexity of such an attack is also extremely low.
With the patch applied from the Suggested Remedy section above, note how the modified test no longer
reports a segfault and instead reports only the expected test failure.
We also discovered that the AuxPow implementation was backported from Namecoin (github.com/namecoin/namecoin…),
however this vulnerability has already been patched as of May 15, 2019:
github.com/namecoin/namecoin…
so no attempt to contact the Namecoin developers or businesses has been made.
We have not yet identified other software forks that may be affected. We encourage recipients of this disclosure report
to share it with trusted individuals related to projects forked from either Namecoin or Dogecoin. Please note that time
is of the essence, and sharing this days prior to the public disclosure date is encouraged.
Dogecash as Alternate Remedy:
Over the last 5 months, we have been developing a high performance Dogecoin node implementation that we call Dogecash.
Dogecash is not a new blockchain. It is an alternative node implementation that is 100% compatible with Dogecoin.
In addition to various improvements in performance, usability, and test coverage, you may notice Dogecash does not
suffer from the same vulnerability. You may also notice that Dogecash's modern RPC suite more similarly matches the
ones you are already familiar with on Bitcoin (BTC) and eCash (XEC). Our RPC suite is significantly faster than
dogecoind, has better test coverage, faster sync/IBD, and the code is cleaner and easier to review. It also ships
with a fast blockchain indexer. We humbly invite you try out Dogecash and are welcome to feedback: github.com/dogecash-io/dogec…
If you plan to run Dogecash, please test against your internal systems before deploying on Dogecoin mainnet.
If you encounter any issues, you can email us with your feedback.
Department Of DOGE Efficiency retweeted
🚨 Hacker exploits $DOGE
They took down 69% of the nodes in the network, exposing a vulnerable flaw.
Apparently it could’ve taken down the entire network.
Department Of DOGE Efficiency retweeted
🚨 BREAKING: Hacker exploits $DOGE flaw, crashing 69% of nodes and exposing a vulnerability that could have taken down the entire network.
Readers added context they thought people might want to know
The Dogecoin network has more than 14,000 active nodes
what-is-dogecoin.com/nodes/
The flaw mentioned in the post was fixed as of the latest Dogecoin Core release 1.14.9 on 12/1/2024
github.com/dogecoin/dogec…
Department Of DOGE Efficiency retweeted
Classic case of FAFO. $DOGE
Department Of DOGE Efficiency retweeted
People sometimes forget $DOGE has a whole blockchain behind it and the 2nd largest mining network
The infra is a little neglected (case in point thread below) but it's probably the leader as Bitcoin's backup if God forbid something catastrophic happened
Public Disclosure of "DogeReaper", a critical vulnerability in Dogecoin
DogeReaper is a critical vulnerability on Dogecoin, allowing anyone to crash any Dogecoin node remotely.
See the video below for a demonstration.
It works similarly to the Japanese manga series "Death Note", where you write down the name of a person and that person immediately dies of a heart attack.
DogeReaper is similar, where you write down the address of any Dogecoin node, and that node instantly dies of a Segmentation Fault.
Since the addresses of the Dogecoin nodes are known publicly, anyone could crash the entire Dogecoin network in an instant.
If a malicious actor would’ve found this bug instead of us, he could have stopped the Dogecoin network for at least a few days, with no transactions or blocks.
This would’ve caused a lot of FUD, and the $DOGE price surely would have been closer to $0 than to $1.
Luckily though, we discovered this bug before all this could happen, and DOGE is safe.
We've privately disclosed this vulnerability to the parties most affected by this (miners, exchanges), and most systems have been patched.
NB: @Coinbase considers the severity of this as “Low” and “informative”.
A fix has already been deployed as part of Dogecoin Core 1.14.9. Any version below that is affected by this vulnerability, which according to Blockchair are around 90% of nodes.
Our implementation "doged" is not affected (previously called "Dogecash"). Link in the replies if you want to run your own instance.
If you're running any of the versions 1.14.8 and below, you MUST update your node. Otherwise, anyone can crash it remotely with minimal effort, as shown in the video demonstration.
A signed SHA-256 commitment to prove authorship has been made on Nov 22 on this Twitter account, and in this Dogecoin transaction: c0316b81038bb3c45f50f9cfa929afebcbb17770f95e5cabd133581a147e26e8
So here it is, the DogeReaper vulnerability:
Summary: Malformed AuxPow Coinbase Causes Segmentation Fault in Dogecoin
Responsible Disclosure By:
Tobias Ruck <[email protected]>
Roqqit <[email protected]>
Bounties: DCJDfXGLWBy5psR5QkiTTq62dK1VmGKTtn
dogecoind Versions Affected: v1.14-rc-1 (released 2019) and later
dogecoin developer branch 1.21-dev is also affected.
Who is impacted? Potentially all dogecoind node operators (miners, exchanges, businesses).
Impact if exploited: Potential to remotely crash dogecoind and halt the Dogecoin network. User funds are not at risk.
Public Disclosure: We anticipate publishing the public disclosure on or after December 4th, 2024. We encourage you to patch
and test your systems before this date.
Suggested Remedy:
Immediately apply the following patch to dogecoind:
```
diff --git a/src/auxpow.cpp b/src/auxpow.cpp
index 56b919d3b..dfc378abb 100644
--- a/src/auxpow.cpp
+++ b/src/auxpow.cpp
@@ -101,6 +101,10 @@ CAuxPow::check(const uint256& hashAuxBlock, int nChainId,
!= parentBlock.hashMerkleRoot)
return error("Aux POW merkle root incorrect");
+ if (tx->vin.empty()) {
+ return error("Aux POW coinbase has no inputs");
+ }
+
const CScript script = tx->vin[0].scriptSig;
// Check that the same work is not submitted twice to our chain.
```
Alternative Remedy:
Replace dogecoind with the Dogecash node implementation. See github.com/dogecash-io/dogec… and read more details
about it in the Dogecash section at the bottom of this disclosure.
Details:
Commit bc8cca48968dfa3f60b5eae6a2b92bdd2870eee3 introduced AuxPow support into dogecoind. AuxPow is a feature that allows
Dogecoin and other blockchain networks to share proof of work. While the AuxPow data is not validated in entirety (since
dogecoind has no way to know the consensus rules of other blockchains), there is verification of the proof of work of the
AuxPow payload. This is done in AuxPow::check() in src/auxpow.cpp. The vulnerability in question relates to this line:
const CScript script = tx->vin[0].scriptSig;
Note the assumption that tx->vin is not empty. No validation is done to ensure tx->vin contains one or more entries.
We verified the impact of this vulnerability by applying the following patch which tests AuxPow with no inputs in tx-vin:
```
diff --git a/qa/rpc-tests/test_framework/scrypt_auxpow.py b/qa/rpc-tests/test_framework/scrypt_auxpow.py
index 3beefa057..c2f999947 100644
--- a/qa/rpc-tests/test_framework/scrypt_auxpow.py
+++ b/qa/rpc-tests/test_framework/scrypt_auxpow.py
@@ -36,7 +36,7 @@ def computeAuxpowWithChainId (block, target, chainid, ok):
# Build up the full coinbase transaction. It consists only
# of the input and has no outputs.
- tx = "01000000" + vin + "00" + ("00" * 4)
+ tx = "01000000" + "00" + "00" + ("00" * 4)
txHash = doubleHashHex (tx)
# Construct the parent block header. It need not be valid, just good
```
And then running the AuxPow functional test:
make && ./qa/pull-tester/rpc-tests.py auxpow.py
Note that the test fails with error code -11 SIGSEGV, indicating the node segfaulted during the test.
Because of the nature of this functional test, we believe this is a reasonable approximation of the
behavior we would see if this were exploited in the wild. The cost to an attacker to exploit this is
extremely low and the complexity of such an attack is also extremely low.
With the patch applied from the Suggested Remedy section above, note how the modified test no longer
reports a segfault and instead reports only the expected test failure.
We also discovered that the AuxPow implementation was backported from Namecoin (github.com/namecoin/namecoin…),
however this vulnerability has already been patched as of May 15, 2019:
github.com/namecoin/namecoin…
so no attempt to contact the Namecoin developers or businesses has been made.
We have not yet identified other software forks that may be affected. We encourage recipients of this disclosure report
to share it with trusted individuals related to projects forked from either Namecoin or Dogecoin. Please note that time
is of the essence, and sharing this days prior to the public disclosure date is encouraged.
Dogecash as Alternate Remedy:
Over the last 5 months, we have been developing a high performance Dogecoin node implementation that we call Dogecash.
Dogecash is not a new blockchain. It is an alternative node implementation that is 100% compatible with Dogecoin.
In addition to various improvements in performance, usability, and test coverage, you may notice Dogecash does not
suffer from the same vulnerability. You may also notice that Dogecash's modern RPC suite more similarly matches the
ones you are already familiar with on Bitcoin (BTC) and eCash (XEC). Our RPC suite is significantly faster than
dogecoind, has better test coverage, faster sync/IBD, and the code is cleaner and easier to review. It also ships
with a fast blockchain indexer. We humbly invite you try out Dogecash and are welcome to feedback: github.com/dogecash-io/dogec…
If you plan to run Dogecash, please test against your internal systems before deploying on Dogecoin mainnet.
If you encounter any issues, you can email us with your feedback.
Department Of DOGE Efficiency retweeted
Reading something like this, I can’t help but be disappointed in @coinbase. Two talented engineers found a bug in the doge client that could take down the entire network, carefully reported it to the community, but Coinbase had no interest in dealing with it. @TobiasRuck and @roqqitdev had already done all the heavy lifting and all they needed to do was leverage their work. Between this and the recent repeated stories of people on ct getting locked out of their Coinbase accounts, aaaaand the fact that they seem to struggle with handling forked coins like eCash $XEC, you have to wonder if they don’t care about, or are incapable of, technical excellence.
Hey @pmarca @brian_armstrong, we understand that businesses like @coinbase don't like to get involved in open source when there isn't a direct impact on your bottom line, but in this case a vulnerability DOES have a direct impact on your transaction revenues when traders cannot move coins to/from the exchange. By our estimate, Dogecoin drives something to the tune of 7% of that revenue. So why does a vulnerability like this get the lowest amount of attention? Coinbase was handed the tools to fix it for free and still hasn't take action.
Department Of DOGE Efficiency retweeted
$DOGE node operators should update asap to Dogecoin Core 1.14.9 or doged
Public Disclosure of "DogeReaper", a critical vulnerability in Dogecoin
DogeReaper is a critical vulnerability on Dogecoin, allowing anyone to crash any Dogecoin node remotely.
See the video below for a demonstration.
It works similarly to the Japanese manga series "Death Note", where you write down the name of a person and that person immediately dies of a heart attack.
DogeReaper is similar, where you write down the address of any Dogecoin node, and that node instantly dies of a Segmentation Fault.
Since the addresses of the Dogecoin nodes are known publicly, anyone could crash the entire Dogecoin network in an instant.
If a malicious actor would’ve found this bug instead of us, he could have stopped the Dogecoin network for at least a few days, with no transactions or blocks.
This would’ve caused a lot of FUD, and the $DOGE price surely would have been closer to $0 than to $1.
Luckily though, we discovered this bug before all this could happen, and DOGE is safe.
We've privately disclosed this vulnerability to the parties most affected by this (miners, exchanges), and most systems have been patched.
NB: @Coinbase considers the severity of this as “Low” and “informative”.
A fix has already been deployed as part of Dogecoin Core 1.14.9. Any version below that is affected by this vulnerability, which according to Blockchair are around 90% of nodes.
Our implementation "doged" is not affected (previously called "Dogecash"). Link in the replies if you want to run your own instance.
If you're running any of the versions 1.14.8 and below, you MUST update your node. Otherwise, anyone can crash it remotely with minimal effort, as shown in the video demonstration.
A signed SHA-256 commitment to prove authorship has been made on Nov 22 on this Twitter account, and in this Dogecoin transaction: c0316b81038bb3c45f50f9cfa929afebcbb17770f95e5cabd133581a147e26e8
So here it is, the DogeReaper vulnerability:
Summary: Malformed AuxPow Coinbase Causes Segmentation Fault in Dogecoin
Responsible Disclosure By:
Tobias Ruck <[email protected]>
Roqqit <[email protected]>
Bounties: DCJDfXGLWBy5psR5QkiTTq62dK1VmGKTtn
dogecoind Versions Affected: v1.14-rc-1 (released 2019) and later
dogecoin developer branch 1.21-dev is also affected.
Who is impacted? Potentially all dogecoind node operators (miners, exchanges, businesses).
Impact if exploited: Potential to remotely crash dogecoind and halt the Dogecoin network. User funds are not at risk.
Public Disclosure: We anticipate publishing the public disclosure on or after December 4th, 2024. We encourage you to patch
and test your systems before this date.
Suggested Remedy:
Immediately apply the following patch to dogecoind:
```
diff --git a/src/auxpow.cpp b/src/auxpow.cpp
index 56b919d3b..dfc378abb 100644
--- a/src/auxpow.cpp
+++ b/src/auxpow.cpp
@@ -101,6 +101,10 @@ CAuxPow::check(const uint256& hashAuxBlock, int nChainId,
!= parentBlock.hashMerkleRoot)
return error("Aux POW merkle root incorrect");
+ if (tx->vin.empty()) {
+ return error("Aux POW coinbase has no inputs");
+ }
+
const CScript script = tx->vin[0].scriptSig;
// Check that the same work is not submitted twice to our chain.
```
Alternative Remedy:
Replace dogecoind with the Dogecash node implementation. See github.com/dogecash-io/dogec… and read more details
about it in the Dogecash section at the bottom of this disclosure.
Details:
Commit bc8cca48968dfa3f60b5eae6a2b92bdd2870eee3 introduced AuxPow support into dogecoind. AuxPow is a feature that allows
Dogecoin and other blockchain networks to share proof of work. While the AuxPow data is not validated in entirety (since
dogecoind has no way to know the consensus rules of other blockchains), there is verification of the proof of work of the
AuxPow payload. This is done in AuxPow::check() in src/auxpow.cpp. The vulnerability in question relates to this line:
const CScript script = tx->vin[0].scriptSig;
Note the assumption that tx->vin is not empty. No validation is done to ensure tx->vin contains one or more entries.
We verified the impact of this vulnerability by applying the following patch which tests AuxPow with no inputs in tx-vin:
```
diff --git a/qa/rpc-tests/test_framework/scrypt_auxpow.py b/qa/rpc-tests/test_framework/scrypt_auxpow.py
index 3beefa057..c2f999947 100644
--- a/qa/rpc-tests/test_framework/scrypt_auxpow.py
+++ b/qa/rpc-tests/test_framework/scrypt_auxpow.py
@@ -36,7 +36,7 @@ def computeAuxpowWithChainId (block, target, chainid, ok):
# Build up the full coinbase transaction. It consists only
# of the input and has no outputs.
- tx = "01000000" + vin + "00" + ("00" * 4)
+ tx = "01000000" + "00" + "00" + ("00" * 4)
txHash = doubleHashHex (tx)
# Construct the parent block header. It need not be valid, just good
```
And then running the AuxPow functional test:
make && ./qa/pull-tester/rpc-tests.py auxpow.py
Note that the test fails with error code -11 SIGSEGV, indicating the node segfaulted during the test.
Because of the nature of this functional test, we believe this is a reasonable approximation of the
behavior we would see if this were exploited in the wild. The cost to an attacker to exploit this is
extremely low and the complexity of such an attack is also extremely low.
With the patch applied from the Suggested Remedy section above, note how the modified test no longer
reports a segfault and instead reports only the expected test failure.
We also discovered that the AuxPow implementation was backported from Namecoin (github.com/namecoin/namecoin…),
however this vulnerability has already been patched as of May 15, 2019:
github.com/namecoin/namecoin…
so no attempt to contact the Namecoin developers or businesses has been made.
We have not yet identified other software forks that may be affected. We encourage recipients of this disclosure report
to share it with trusted individuals related to projects forked from either Namecoin or Dogecoin. Please note that time
is of the essence, and sharing this days prior to the public disclosure date is encouraged.
Dogecash as Alternate Remedy:
Over the last 5 months, we have been developing a high performance Dogecoin node implementation that we call Dogecash.
Dogecash is not a new blockchain. It is an alternative node implementation that is 100% compatible with Dogecoin.
In addition to various improvements in performance, usability, and test coverage, you may notice Dogecash does not
suffer from the same vulnerability. You may also notice that Dogecash's modern RPC suite more similarly matches the
ones you are already familiar with on Bitcoin (BTC) and eCash (XEC). Our RPC suite is significantly faster than
dogecoind, has better test coverage, faster sync/IBD, and the code is cleaner and easier to review. It also ships
with a fast blockchain indexer. We humbly invite you try out Dogecash and are welcome to feedback: github.com/dogecash-io/dogec…
If you plan to run Dogecash, please test against your internal systems before deploying on Dogecoin mainnet.
If you encounter any issues, you can email us with your feedback.
Department Of DOGE Efficiency retweeted
Replying to @elonmusk
@elonmusk It was fortunate to find that Tesla was unaffected by this vulnerability. But it appears the reason for this is Tesla doesn't accept Dogecoin anymore. Why?
Replying to @EfficiencyDOGE
Nov 21: Tobias and Roqqit send private disclosures far and wide. Near the end of the day, doged is ready for its first release, going public with version 0.1.0.
Nov 22 - 27: A mix of serious, sad, and hilarious responses come in:
CoinEx rejects our “business proposal” and closes the ticket.
Coinbase declares the issue is not related to their systems and closes the ticket.
Dogecoin developers investigate. A plan is in place by Nov 23.
BitPay replies that they are aware.
Mining Dutch and Litecoinpool.org patch promptly.
Tesla says they are unaffected.
ViaBTC and F2Pool patch shortly after.
Antpool, Binance, and BTCCom are still investigating.
Tobias writes dogereaper.py, confirming the vulnerability is trivially exploitable.
Department Of DOGE Efficiency retweeted
How much revenue impact does it take until a board member of a public company takes notice of something like this?
If we take a look at @coinbase's latest shareholder letter, Q3 total revenue was $1.2B. Transaction revenue was $573M, almost 48% of the total. I don't see a breakdown for Dogecoin, but if the 7% estimate is right, that's $40M per quarter, or 3.3% total revenue. Even if this estimate was exaggerated that seems like enough to take note of, right?
Hey @pmarca @brian_armstrong, we understand that businesses like @coinbase don't like to get involved in open source when there isn't a direct impact on your bottom line, but in this case a vulnerability DOES have a direct impact on your transaction revenues when traders cannot move coins to/from the exchange. By our estimate, Dogecoin drives something to the tune of 7% of that revenue. So why does a vulnerability like this get the lowest amount of attention? Coinbase was handed the tools to fix it for free and still hasn't take action.
Department Of DOGE Efficiency retweeted
Major security vulnerability in DOGE discovered.
Update if you haven't yet.
Public Disclosure of "DogeReaper", a critical vulnerability in Dogecoin
DogeReaper is a critical vulnerability on Dogecoin, allowing anyone to crash any Dogecoin node remotely.
See the video below for a demonstration.
It works similarly to the Japanese manga series "Death Note", where you write down the name of a person and that person immediately dies of a heart attack.
DogeReaper is similar, where you write down the address of any Dogecoin node, and that node instantly dies of a Segmentation Fault.
Since the addresses of the Dogecoin nodes are known publicly, anyone could crash the entire Dogecoin network in an instant.
If a malicious actor would’ve found this bug instead of us, he could have stopped the Dogecoin network for at least a few days, with no transactions or blocks.
This would’ve caused a lot of FUD, and the $DOGE price surely would have been closer to $0 than to $1.
Luckily though, we discovered this bug before all this could happen, and DOGE is safe.
We've privately disclosed this vulnerability to the parties most affected by this (miners, exchanges), and most systems have been patched.
NB: @Coinbase considers the severity of this as “Low” and “informative”.
A fix has already been deployed as part of Dogecoin Core 1.14.9. Any version below that is affected by this vulnerability, which according to Blockchair are around 90% of nodes.
Our implementation "doged" is not affected (previously called "Dogecash"). Link in the replies if you want to run your own instance.
If you're running any of the versions 1.14.8 and below, you MUST update your node. Otherwise, anyone can crash it remotely with minimal effort, as shown in the video demonstration.
A signed SHA-256 commitment to prove authorship has been made on Nov 22 on this Twitter account, and in this Dogecoin transaction: c0316b81038bb3c45f50f9cfa929afebcbb17770f95e5cabd133581a147e26e8
So here it is, the DogeReaper vulnerability:
Summary: Malformed AuxPow Coinbase Causes Segmentation Fault in Dogecoin
Responsible Disclosure By:
Tobias Ruck <[email protected]>
Roqqit <[email protected]>
Bounties: DCJDfXGLWBy5psR5QkiTTq62dK1VmGKTtn
dogecoind Versions Affected: v1.14-rc-1 (released 2019) and later
dogecoin developer branch 1.21-dev is also affected.
Who is impacted? Potentially all dogecoind node operators (miners, exchanges, businesses).
Impact if exploited: Potential to remotely crash dogecoind and halt the Dogecoin network. User funds are not at risk.
Public Disclosure: We anticipate publishing the public disclosure on or after December 4th, 2024. We encourage you to patch
and test your systems before this date.
Suggested Remedy:
Immediately apply the following patch to dogecoind:
```
diff --git a/src/auxpow.cpp b/src/auxpow.cpp
index 56b919d3b..dfc378abb 100644
--- a/src/auxpow.cpp
+++ b/src/auxpow.cpp
@@ -101,6 +101,10 @@ CAuxPow::check(const uint256& hashAuxBlock, int nChainId,
!= parentBlock.hashMerkleRoot)
return error("Aux POW merkle root incorrect");
+ if (tx->vin.empty()) {
+ return error("Aux POW coinbase has no inputs");
+ }
+
const CScript script = tx->vin[0].scriptSig;
// Check that the same work is not submitted twice to our chain.
```
Alternative Remedy:
Replace dogecoind with the Dogecash node implementation. See github.com/dogecash-io/dogec… and read more details
about it in the Dogecash section at the bottom of this disclosure.
Details:
Commit bc8cca48968dfa3f60b5eae6a2b92bdd2870eee3 introduced AuxPow support into dogecoind. AuxPow is a feature that allows
Dogecoin and other blockchain networks to share proof of work. While the AuxPow data is not validated in entirety (since
dogecoind has no way to know the consensus rules of other blockchains), there is verification of the proof of work of the
AuxPow payload. This is done in AuxPow::check() in src/auxpow.cpp. The vulnerability in question relates to this line:
const CScript script = tx->vin[0].scriptSig;
Note the assumption that tx->vin is not empty. No validation is done to ensure tx->vin contains one or more entries.
We verified the impact of this vulnerability by applying the following patch which tests AuxPow with no inputs in tx-vin:
```
diff --git a/qa/rpc-tests/test_framework/scrypt_auxpow.py b/qa/rpc-tests/test_framework/scrypt_auxpow.py
index 3beefa057..c2f999947 100644
--- a/qa/rpc-tests/test_framework/scrypt_auxpow.py
+++ b/qa/rpc-tests/test_framework/scrypt_auxpow.py
@@ -36,7 +36,7 @@ def computeAuxpowWithChainId (block, target, chainid, ok):
# Build up the full coinbase transaction. It consists only
# of the input and has no outputs.
- tx = "01000000" + vin + "00" + ("00" * 4)
+ tx = "01000000" + "00" + "00" + ("00" * 4)
txHash = doubleHashHex (tx)
# Construct the parent block header. It need not be valid, just good
```
And then running the AuxPow functional test:
make && ./qa/pull-tester/rpc-tests.py auxpow.py
Note that the test fails with error code -11 SIGSEGV, indicating the node segfaulted during the test.
Because of the nature of this functional test, we believe this is a reasonable approximation of the
behavior we would see if this were exploited in the wild. The cost to an attacker to exploit this is
extremely low and the complexity of such an attack is also extremely low.
With the patch applied from the Suggested Remedy section above, note how the modified test no longer
reports a segfault and instead reports only the expected test failure.
We also discovered that the AuxPow implementation was backported from Namecoin (github.com/namecoin/namecoin…),
however this vulnerability has already been patched as of May 15, 2019:
github.com/namecoin/namecoin…
so no attempt to contact the Namecoin developers or businesses has been made.
We have not yet identified other software forks that may be affected. We encourage recipients of this disclosure report
to share it with trusted individuals related to projects forked from either Namecoin or Dogecoin. Please note that time
is of the essence, and sharing this days prior to the public disclosure date is encouraged.
Dogecash as Alternate Remedy:
Over the last 5 months, we have been developing a high performance Dogecoin node implementation that we call Dogecash.
Dogecash is not a new blockchain. It is an alternative node implementation that is 100% compatible with Dogecoin.
In addition to various improvements in performance, usability, and test coverage, you may notice Dogecash does not
suffer from the same vulnerability. You may also notice that Dogecash's modern RPC suite more similarly matches the
ones you are already familiar with on Bitcoin (BTC) and eCash (XEC). Our RPC suite is significantly faster than
dogecoind, has better test coverage, faster sync/IBD, and the code is cleaner and easier to review. It also ships
with a fast blockchain indexer. We humbly invite you try out Dogecash and are welcome to feedback: github.com/dogecash-io/dogec…
If you plan to run Dogecash, please test against your internal systems before deploying on Dogecoin mainnet.
If you encounter any issues, you can email us with your feedback.
Department Of DOGE Efficiency retweeted
Forks of @Bitcoin_ABC so far (excluding scam coins):
@bitcoincashnode ($BCH)
ergon.moe ($XRG)
@givelotus ($XPI)
github.com/PayButton/bchc ($BCH indexer)
@EfficiencyDOGE ($DOGE)






























