Motoko Exploit Report
  • Introduction
  • Incident A
  • Incident B
  • Incident C
  • Verification
  • Bounty
Powered by GitBook
On this page

Incident B

Inactive Wallet Tampering

PreviousIncident ANextIncident C

Last updated 1 month ago

On January 11th 2024, 9:14:08 PM, the controller "ufwij-jggzv-owfkb-cs26m-p7j3y-awpqg-3oa33-x4ciu-vadlo-2jb7f-gae", hereon referred to as "ufwij", upgraded the Motoko Ghost Canister, "oeee4-qaaaa-aaaak-qaaeq-cai".

This was followed, 17 seconds later, on January 11th 2024, 9:14:25 PM, by 54 transfers from the wallet "c82b98eea65962e61ba3b28ef2e7d35bbfd5b373348b19e90c4d2b6f04a3157c" (Notably, this is the largest initially allocated wallet, of 293 NFTs, although having already sold 239) to "0576f2501fbda64f2b3d9bb85a01552d704eba9898707dc6eaa45e4cec49efcd" until 9:15:47 PM, 1 minute and 22 seconds later, which has been inactive since it's last transaction: 2022-05-05, 9:30:07 PM:

"0576f2501fbda64f2b3d9bb85a01552d704eba9898707dc6eaa45e4cec49efcd" proceeded to sell the 54 Motoko Ghosts over the course of 8 days, for a total sum of 4017.77 ICP, which was sent to a centralized exchange (indicated by the abundant transactions and large transaction quantities) in the following transactions:

The next day, on January 12th 2024, 7:17:22 AM, the controller "ufwij" once again upgraded the Motoko Ghost Canister.

This was followed, 17 seconds later, on January 12th 2024, 7:17:39 AM, by 20 transfers to the wallet "04cfda0917212904f8896fe8408e8eec31e6515755330151da6196114b9c6aaa" until 7:18:00 PM, 21 seconds later.

"04cfda0917212904f8896fe8408e8eec31e6515755330151da6196114b9c6aaa" proceeded to sell these Motoko Ghosts for a total of 1497.3 ICP - 1400 ICP of which was sent to a centralized exchange (indicated by the abundant transactions and large transaction quantities) in the following transactions:

On January 12th 2024, 7:18:02 AM, 2 seconds later, 20 transfers were made to the wallet "11f26f1b8da7e3b1aed9dfc8c597a973d510edb5c6c40574099cd53d3acbd59c", until 7:18:33AM, 21 seconds later.

"11f26f1b8da7e3b1aed9dfc8c597a973d510edb5c6c40574099cd53d3acbd59c" proceeded to sell these Motoko Ghosts for a total of 1528 ICP - 1474.5141 ICP of which was sent to a centralized exchange (indicated by the abundant transactions and large transaction quantities) in the following transaction:

On January 12th 2024, 7:18:35 AM, 2 seconds later, 19 transfers were made to the wallet "8630e7f8795eb6aedcc79e11f096f8d317c9c5c3213b66600ea926596eff6d45", until 7:19:07AM, 32 seconds later.

"8630e7f8795eb6aedcc79e11f096f8d317c9c5c3213b66600ea926596eff6d45" proceeded to sell these Motoko Ghosts for a total of 1471 ICP - 1418 ICP of which was sent to a centralized exchange (indicated by the abundant transactions and large transaction quantities) in the following transaction:

It can be observed that a total of 4 upgrades were made to the canister by "ufwij" before the 5th upgrade on October 8th 2024, being the source code and reproducible build provided by Toniq Labs.

The reproducible build was then overwritten in a canister upgrade on November 11th 2024, which was followed by another 6 canister upgrades, concluding with the final on January 16th 2025, 3:18:22AM before the Motoko DAO was made the controller of the canister on January 16th 2025, 11:58:53PM, and previous controllers had their access revoked.

Logohttps://dgdg.app/nfts/collections/motokos/activity?accountId=c82b98eea65962e61ba3b28ef2e7d35bbfd5b373348b19e90c4d2b6f04a3157c
Logohttps://dgdg.app/nfts/collections/motokos/activity?accountId=0576f2501fbda64f2b3d9bb85a01552d704eba9898707dc6eaa45e4cec49efcd
LogoTransaction: 705011bab3878abdaaa493e5f0cf14591cd646edfe60c28ba87c2e508d1aa705Internet Computer Dashboard
LogoTransaction: 9c422f16bcf0e2ef4add1943db1fce174720ef42301f0aef98c0562411c2b6d4Internet Computer Dashboard
LogoTransaction: 5d42d9bd70138d338f4d4f4739d1086ab13670170db639c360b883db37b7afdfInternet Computer Dashboard
LogoTransaction: 46363bf74da503baf13f50e7aba605ee52121a9a48b524928626987ee03d8925Internet Computer Dashboard
Logohttps://dgdg.app/nfts/collections/motokos/activity?accountId=04cfda0917212904f8896fe8408e8eec31e6515755330151da6196114b9c6aaa
LogoTransaction: 52f769b15a7d322c738d6bcfb85f90abaa2bb9cebee0fd2334ef84ea04d7b82dInternet Computer Dashboard
LogoTransaction: c1e223611d6e34ad692e1775a33022b3927488dbbc6785487527a0f7a14bf229Internet Computer Dashboard
Logohttps://dgdg.app/nfts/collections/motokos/activity?accountId=11f26f1b8da7e3b1aed9dfc8c597a973d510edb5c6c40574099cd53d3acbd59c
LogoTransaction: 5850b84512effedc50619baf7abe092ca4120683b88dac5b6069aa3959a6974cInternet Computer Dashboard
Logohttps://dgdg.app/nfts/collections/motokos/activity?accountId=8630e7f8795eb6aedcc79e11f096f8d317c9c5c3213b66600ea926596eff6d45
LogoTransaction: be37bebb90598273c66b3852054efecfb9db6f77fc666f4ca5c582df8cc2bed9Internet Computer Dashboard
LogoTransaction: a26c033b7305179a7b08bd1ba7e1fd3a1b6229d7a3596ba3467ec4b073d26796Internet Computer Dashboard
LogoAccount: c82b98eea65962e61ba3b28ef2e7d35bbfd5b373348b19e90c4d2b6f04a3157cInternet Computer Dashboard