Lucene search

K
code423n4Code4renaCODE423N4:2022-02-NESTED-FINDINGS-ISSUES-78
HistoryMar 03, 2022 - 12:00 a.m.

Wrong implementation of OperatorResolver::areOperatorsImported

2022-03-0300:00:00
Code4rena
github.com
6

This issue has been created to upgrade a QA report submission to a medium severity finding. From kenzo:

Wrong implementation of OperatorResolver::areOperatorsImported
The function as implemented will return true if the operators have same implementation but different selector,
or different implementation but same selector.
This might cause users/admins to think an upgrade has happened successfully when it fact it was not.
Code ref:

        if (
            operators[names[i]].implementation != destinations[i].implementation &&
            operators[names[i]].selector != destinations[i].selector
        ) {
            return false;
        }

The condition should be ||, not &&.


The text was updated successfully, but these errors were encountered:

All reactions