CORIONplatform / solidity

GNU General Public License v3.0
12 stars 9 forks source link

publisher: opposition implementation allows a certain exploit #94

Closed gundas closed 7 years ago

gundas commented 7 years ago

The way opposition is implemented in 'publisher' contract:

This allows a certain exploit - a malicious person could create multiple accounts, transfer all his CORION to one account and call 'oppositeAnnouncement', transfer all the money to another account and call 'oppositeAnnouncement' etc. As a result, his CORIONs could be counted multiple times in oppositionWeight.

gundas commented 7 years ago

OK, I get it - there is transferEvent callback which is supposed to take care of this.