Submitted by juancito, also found by glcanvas, Yanchuan, and volodya
https://github.com/code-423n4/2023-08-dopex/blob/main/contracts/decaying-bonds/RdpxDecayingBonds.sol#L36-L44 
https://github.com/code-423n4/2023-08-dopex/blob/main/contracts/decaying-bonds/RdpxDecayingBonds.sol#L122
The RdpxDecayingBonds contract keeps track of a bonds mapping with bonds information including the bond token owner. When the token is transfered, the bonds[bondId].owner value should be updated, but it isnt.
The owner value will be bricked when a token is transfered, as it cant be changed by any means.
Any integration relying on this value will make wrong trusted assumptions related to the bond token owner, potentially leading to critical issues as loss of funds, because of the importance of the owner attribute has.
Ranking it as Medium, as there is no direct loss of funds within the current scope, but bricks the contract functionality, as there is no way to fix it.
The owner attribute of the bonds mapping is set on each mint(), but its value is never updated:
RdpxDecayingBonds.sol#L36-L44
RdpxDecayingBonds.sol#L122
This test shows how the owner remains the same on the bonds transfer after performing a transfer.
Add this test to the tests/RdpxDecayingBondsTest.t.sol file, and run forge test --mt "testSameOwnerOnTransfer":
Either update the owner value on each token transfer, or remove it, as the owner of the token is already tracked via the OZ ERC721 contract.
psytama (Dopex) confirmed
Alex the Entreprenerd (Judge) commented:
