-
Notifications
You must be signed in to change notification settings - Fork 3
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
Anyone can send cross-chain transactions without paying fees to Decent #51
Comments
raymondfam marked the issue as sufficient quality report |
Fee dodging via the router. |
raymondfam marked the issue as duplicate of #15 |
raymondfam marked the issue as not a duplicate |
raymondfam marked the issue as primary issue |
Bridge dodging that should have access restrictions. |
wkantaros (sponsor) confirmed |
alex-ppg marked issue #647 as primary and marked this issue as a duplicate of 647 |
alex-ppg marked the issue as satisfactory |
Lines of code
https://github.com/decentxyz/decent-bridge/blob/7f90fd4489551b69c20d11eeecb17a3f564afb18/src/DecentEthRouter.sol#L197-L234
Vulnerability details
Impact
In https://github.com/decentxyz/decent-bridge/blob/7f90fd4489551b69c20d11eeecb17a3f564afb18/src/DecentEthRouter.sol#L197-L234, anyone can call
bridge
andbridgeWithPayload
These functions are meant to be called by the bridge adapter only which is called by UTB which takes a fee, but they can called by anyone as they have no modifiers set.
Therefore, a user can send a cross-chain transaction without paying fees to Decent by directly calling
bridge
andbridgeWithPayload
. A secondary impact is that this will also deplete the ETH / WETH reserves of the router in the destination chain.Tools Used
Manual Review.
Recommended Mitigation Steps
Add access control checks to these functions (only bridge adapter should call these functions)
Assessed type
Access Control
The text was updated successfully, but these errors were encountered: