Skip to content
This repository has been archived by the owner on Jan 11, 2024. It is now read-only.

Fix reentrancy vulnerabilities #115

Merged
merged 1 commit into from
Jun 23, 2023
Merged

Fix reentrancy vulnerabilities #115

merged 1 commit into from
Jun 23, 2023

Conversation

dnkolegov
Copy link
Contributor

@dnkolegov dnkolegov requested a review from adlrocha June 22, 2023 11:01
Copy link
Contributor

@adlrocha adlrocha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dnkolegov dnkolegov merged commit ead66a9 into main Jun 23, 2023
@dnkolegov dnkolegov deleted the issues102103 branch June 23, 2023 10:57
adlrocha added a commit that referenced this pull request Jun 29, 2023
* support f1 address

* Fix reentrancy vulnerabilities (#115)

Fix reentrancies

* Change intro (#118)

* Minor gas optimisations (#112)

minor gas optimisations

* Use logical if statements (#113)

use logical if statements

* Make gateway address immutable (#110)

Make gateway addr immutable

* Enable basic linting (#116)

* Enable basic linting

* add config for mythrill

* Run tests on Github Actions (#119)

* Run tests

* add info

* triage findings

* rename private vars

* fix if statements

* Fix reentrancy (#114)

* fix reentrancy

* Update src/Gateway.sol

* add a comment

* fix format

---------

Co-authored-by: adlrocha <6717133+adlrocha@users.noreply.github.com>

* Check gateway address (#109)

* check gateway address

* check subnet address

* check actor address

* Optimise loop (#123)

* Optimise loop

* Fix several if stmts

* Rename params to fix slither issues

* Add codespell (#122)

* Remove unused constants and fix Makefile (#121)

* remove unused fvm-related constants

* fix makefile

* Fix bottom-up nonce and new test (#124)

fix bottomup nonce and new tets

* Use the same Solidity version (#111)

use the same Solidity version

* Update contract dependencies (#117)

* Update contract dependencies

* upgrade solidity to 0.8.19

---------

Signed-off-by: Alfonso de la Rocha <adlrocha@tutamail.com>
Co-authored-by: Alfonso de la Rocha <adlrocha@tutamail.com>

* linter for address

* Improved subnet registry (#127)

* improved subnet registry

* Update SubnetRegistry.sol

* Migrate bottom up checkpoints query to subnet actor (#130)

migrate bottom up checkpoints query to subnet actor

---------

Co-authored-by: Denis Kolegov <dnkolegov@gmail.com>
Co-authored-by: cryptoAtwill <108330426+cryptoAtwill@users.noreply.github.com>

---------

Signed-off-by: Alfonso de la Rocha <adlrocha@tutamail.com>
Co-authored-by: Denis Kolegov <dnkolegov@gmail.com>
Co-authored-by: adlrocha <6717133+adlrocha@users.noreply.github.com>
Co-authored-by: Alfonso de la Rocha <adlrocha@tutamail.com>
adlrocha added a commit that referenced this pull request Jun 29, 2023
* fix gateway deployment

* list validator details

* update implementation

* support configuration number

* update logic

* support get subnet struct

* change visibility

* Support f1 address (#107)

* support f1 address

* Fix reentrancy vulnerabilities (#115)

Fix reentrancies

* Change intro (#118)

* Minor gas optimisations (#112)

minor gas optimisations

* Use logical if statements (#113)

use logical if statements

* Make gateway address immutable (#110)

Make gateway addr immutable

* Enable basic linting (#116)

* Enable basic linting

* add config for mythrill

* Run tests on Github Actions (#119)

* Run tests

* add info

* triage findings

* rename private vars

* fix if statements

* Fix reentrancy (#114)

* fix reentrancy

* Update src/Gateway.sol

* add a comment

* fix format

---------

Co-authored-by: adlrocha <6717133+adlrocha@users.noreply.github.com>

* Check gateway address (#109)

* check gateway address

* check subnet address

* check actor address

* Optimise loop (#123)

* Optimise loop

* Fix several if stmts

* Rename params to fix slither issues

* Add codespell (#122)

* Remove unused constants and fix Makefile (#121)

* remove unused fvm-related constants

* fix makefile

* Fix bottom-up nonce and new test (#124)

fix bottomup nonce and new tets

* Use the same Solidity version (#111)

use the same Solidity version

* Update contract dependencies (#117)

* Update contract dependencies

* upgrade solidity to 0.8.19

---------

Signed-off-by: Alfonso de la Rocha <adlrocha@tutamail.com>
Co-authored-by: Alfonso de la Rocha <adlrocha@tutamail.com>

* linter for address

* Improved subnet registry (#127)

* improved subnet registry

* Update SubnetRegistry.sol

* Migrate bottom up checkpoints query to subnet actor (#130)

migrate bottom up checkpoints query to subnet actor

---------

Co-authored-by: Denis Kolegov <dnkolegov@gmail.com>
Co-authored-by: cryptoAtwill <108330426+cryptoAtwill@users.noreply.github.com>

---------

Signed-off-by: Alfonso de la Rocha <adlrocha@tutamail.com>
Co-authored-by: Denis Kolegov <dnkolegov@gmail.com>
Co-authored-by: adlrocha <6717133+adlrocha@users.noreply.github.com>
Co-authored-by: Alfonso de la Rocha <adlrocha@tutamail.com>

---------

Signed-off-by: Alfonso de la Rocha <adlrocha@tutamail.com>
Co-authored-by: Denis Kolegov <dnkolegov@gmail.com>
Co-authored-by: adlrocha <6717133+adlrocha@users.noreply.github.com>
Co-authored-by: Alfonso de la Rocha <adlrocha@tutamail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cross-function reentrancy in leave function
2 participants