Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Security Threat : Devnet Node all Amount goes to miscellaneous address #0x071aAd74A52f76aeC4a4b4fecfc910dbC8fe03F4 #24018

Closed
devSpeqto opened this issue Nov 29, 2021 · 15 comments
Labels

Comments

@devSpeqto
Copy link

System information

Geth version: 1.10.8-stable
OS & Version: Ubuntu 20.04.3 LTS

Expected behaviour

We have run a private blockchain node on our Ubuntu server with a single node, all details running on a single node only such as rpc, mining, signer, boot node etc. Should be working as a normal node but we found a very high-risk factor there and all amount goes to an unknown address.

Actual behaviour

Node is running fine and mining also happening properly, all other operations are normal but all amount has been disappeared after some weeks. we found that address is not belong to anywhere in our apps, Keystore, and other platforms

Steps to reproduce the behavior

We have attached all transaction screenshots and other information for the same address.

Screenshot from 2021-11-29 19-11-24
Screenshot from 2021-11-29 19-11-36

Transaction Details:

Transaction Details 1:
Transaction Hash
0x55c17e5d54362ab13fc4566bf99fbdd65f2401303d464a232d7c84df8afc7ae7
Result
Success
Status
Confirmed Confirmed by 129,911
Block
25073
Timestamp
a month ago | October-21-2021 03:20:42 PM +5.5 UTC | Confirmed within 2.0 seconds
From
0x30de4e6222d647a22b9543e2e959ef0889e521f5
To
0x071aad74a52f76aec4a4b4fecfc910dbc8fe03f4
Value
1E+14 STAX
Transaction Fee
0.00042 STAX
Gas Price
20 Gwei
Gas Limit
21,000
Gas Used by Transaction
21,000 | 100%
NoncePosition
80

Transaction Details 2:
Transaction Details
Transaction Hash
0xca6c9e9b6370bc2e0c89cddcf3cbaa91cd4f1fecb6c6d86898399f9afe06a7bc
Result
Success
Status
Confirmed Confirmed by 124,784
Block
30200
Timestamp
a month ago | October-30-2021 03:50:19 PM +5.5 UTC | Confirmed within 6 milliseconds
From
0x30de4e6222d647a22b9543e2e959ef0889e521f5
To
0x071aad74a52f76aec4a4b4fecfc910dbc8fe03f4
Value
1E+14 STAX
Transaction Fee
0.00042 STAX
Gas Price
20 Gwei
Gas Limit
21,000
Gas Used by Transaction
21,000 | 100%
NoncePosition
80

Transaction Details 3:

Transaction Details
Transaction Hash
0xf3768c21a4ae2d18a339b239a33b88779e4989a8717f3921e920451f21e98281
Result
Success
Status
Confirmed Confirmed by 9,018
Block
145966
Timestamp
3 days ago | November-26-2021 07:09:14 PM +5.5 UTC | Confirmed within 21.8 seconds
From
0x30de4e6222d647a22b9543e2e959ef0889e521f5
To
0x071aad74a52f76aec4a4b4fecfc910dbc8fe03f4
Value
231,516.000083999998345216 STAX
Transaction Fee
0.00042 STAX
Gas Price
20 Gwei
Gas Limit
21,000
Gas Used by Transaction
21,000 | 100%
NoncePosition
130

When submitting logs: please submit them as text and not screenshots.

@holiman
Copy link
Contributor

holiman commented Nov 29, 2021

Please provide exact details on what parameters you are using to run the node. As you haven't, I'll make a guess:

  • For mining/sealing, you have used unlock and --allow-insecure-unlock,
  • You have probably also exposed all rpc apis, e.g. personal and eth?
  • You probably also allow http on 8545?
  • You made it bind to 0.0.0.0?

Thus, someone (most likely a bot) found your open node, and (regardless of it being a private chain), the bot then proceeded to make transactions to steal the funds.

@ghost
Copy link

ghost commented Nov 29, 2021

System information

Geth version: 1.10.8-stable

OS & Version: Ubuntu 20.04.3 LTS

Expected behaviour

We have run a private blockchain node on our Ubuntu server with a single node, all details running on a single node only such as rpc, mining, signer, boot node etc. Should be working as a normal node but we found a very high-risk factor there and all amount goes to an unknown address.

Actual behaviour

Node is running fine and mining also happening properly, all other operations are normal but all amount has been disappeared after some weeks. we found that address is not belong to anywhere in our apps, Keystore, and other platforms

Steps to reproduce the behavior

We have attached all transaction screenshots and other information for the same address.

Screenshot from 2021-11-29 19-11-24

Screenshot from 2021-11-29 19-11-36

Transaction Details:

Transaction Details 1:

Transaction Hash

0x55c17e5d54362ab13fc4566bf99fbdd65f2401303d464a232d7c84df8afc7ae7

Result

Success

Status

Confirmed Confirmed by 129,911

Block

25073

Timestamp

a month ago | October-21-2021 03:20:42 PM +5.5 UTC | Confirmed within 2.0 seconds

From

0x30de4e6222d647a22b9543e2e959ef0889e521f5

To

0x071aad74a52f76aec4a4b4fecfc910dbc8fe03f4

Value

1E+14 STAX

Transaction Fee

0.00042 STAX

Gas Price

20 Gwei

Gas Limit

21,000

Gas Used by Transaction

21,000 | 100%

NoncePosition

80

Transaction Details 2:

Transaction Details

Transaction Hash

0xca6c9e9b6370bc2e0c89cddcf3cbaa91cd4f1fecb6c6d86898399f9afe06a7bc

Result

Success

Status

Confirmed Confirmed by 124,784

Block

30200

Timestamp

a month ago | October-30-2021 03:50:19 PM +5.5 UTC | Confirmed within 6 milliseconds

From

0x30de4e6222d647a22b9543e2e959ef0889e521f5

To

0x071aad74a52f76aec4a4b4fecfc910dbc8fe03f4

Value

1E+14 STAX

Transaction Fee

0.00042 STAX

Gas Price

20 Gwei

Gas Limit

21,000

Gas Used by Transaction

21,000 | 100%

NoncePosition

80

Transaction Details 3:

Transaction Details

Transaction Hash

0xf3768c21a4ae2d18a339b239a33b88779e4989a8717f3921e920451f21e98281

Result

Success

Status

Confirmed Confirmed by 9,018

Block

145966

Timestamp

3 days ago | November-26-2021 07:09:14 PM +5.5 UTC | Confirmed within 21.8 seconds

From

0x30de4e6222d647a22b9543e2e959ef0889e521f5

To

0x071aad74a52f76aec4a4b4fecfc910dbc8fe03f4

Value

231,516.000083999998345216 STAX

Transaction Fee

0.00042 STAX

Gas Price

20 Gwei

Gas Limit

21,000

Gas Used by Transaction

21,000 | 100%

NoncePosition

130

When submitting logs: please submit them as text and not screenshots.

Has this issue been resolved yet

@devSpeqto
Copy link
Author

Please provide exact details on what parameters you are using to run the node. As you haven't, I'll make a guess:

  • For mining/sealing, you have used unlock and --allow-insecure-unlock,
  • You have probably also exposed all rpc apis, e.g. personal and eth?
  • You probably also allow http on 8545?
  • You made it bind to 0.0.0.0?

Thus, someone (most likely a bot) found your open node, and (regardless of it being a private chain), the bot then proceeded to make transactions to steal the funds.

Hi @holiman

Yes, your guess is correct and we have below command and flags for running the same.

geth --datadir /gethDataDir/bootstax --networkid 20211 --port 30303 --maxpeers=3 --http.addr 0.0.0.0 --ws --ws.addr 0.0.0.0 --ws.port 8546 --ws.origins '' --http --http.port 8545 --http.corsdomain '' --nat any --http.api eth,net,web3,admin,debug,personal,net,txpool,shh --ws.api eth,net,web3,network,debug,txpool --ipcpath gethDataDir/geth.ipc --allow-insecure-unlock --mine --miner.threads=1 --http.vhosts=*"

As this is Devnet node so we were testing multiple things at the same time, could you please help us to share for the testnet and mainet process to follow for different nodes and flags?

Many thanks in advance.

@holiman
Copy link
Contributor

holiman commented Nov 30, 2021

Well, if you set the node up so that it's exposed to the internet, and anyone who happens to find it can send transactions from it without any form of authentication, it's hardly surprising that someone found it and is sending transactions from it.
My recommendation is to stick with the defaults, and if you need to open it up, you have to figure out how you can do so without ruining the security model. Solutions can include persistent ssh tunnels, VPN, or simply let the sealer seal (and nothing else) but not expose any rpc interface.

@holiman holiman closed this as completed Nov 30, 2021
@Sourabhshail
Copy link

Sourabhshail commented Oct 8, 2022

0x071aAd74A52f76aeC4a4b4fecfc910dbC8fe03F4
this address stealing my validator amount . please help me how i can stop this. please tell me appropriate details.

please see blow details
https://fufiscan.com/address/0x071aad74a52f76aec4a4b4fecfc910dbc8fe03f4/transactions?block_number=2004664&index=0&items_count=50

@ghost
Copy link

ghost commented Oct 9, 2022 via email

@Sourabhshail
Copy link

Hi Brymex
i am facing this issue from last 6 months.
i still didn't submit ticket please help me how i can resolve this problem?

@ghost
Copy link

ghost commented Oct 18, 2022 via email

@MariusVanDerWijden
Copy link
Member

Don't use --allow-insecure-unlock!

@Sourabhshail
Copy link

geth --datadir /gethDataDir/bootstax --networkid 20211 --port 30303 --maxpeers=3 --http.addr 0.0.0.0 --ws --ws.addr 0.0.0.0 --ws.port 8546 --ws.origins '' --http --http.port 8545 --http.corsdomain '' --nat any --http.api eth,net,web3,admin,debug,personal,net,txpool,shh --ws.api eth,net,web3,network,debug,txpool --ipcpath gethDataDir/geth.ipc --allow-insecure-unlock --mine --miner.threads=1 --http.vhosts=*"

I am using above command can you please correct this.
if i will not use --allow-insecure-unlock than how i will make transaction.
Please send me correct command

@MariusVanDerWijden
Copy link
Member

You can send transactions by using signing them with your wallet and sending them via eth_sendRawTransaction. If your private network is sealing with clique you can use the following tutorial to use clef for signing: https://geth.ethereum.org/docs/clef/cliquesigning

@loveFeynman
Copy link

I ran into the same problem. What I don't understand is how the bot knows the private key of the wallet.

@Francesreid

This comment was marked as off-topic.

@Francesreid

This comment was marked as off-topic.

@Francesreid

This comment was marked as off-topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants