# Permissionless trigger after price move

Public stabilize/refinance/redeem callable after a price move or shutdown, letting the caller pick profitable state

_Area: DeFi oracles, liquidations and flash loans. Seen in 3 disclosed reports; latest 2025-07-05. Updated 2026-11-13._

## How it works
A function meant to restore health — stabilize a peg, refinance a loan, redeem a trove — is left callable by anyone, and it acts on state the caller can influence or choose. The broken assumption is that callers of these paths are aligned with the protocol. When the trigger is permissionless and its inputs (price, trove ID, loan terms) are attacker-influenced, the caller can arrange the state so the function pays them instead of the protocol [E1](https://bugbountylibrary.com/r/dhl%3A20250705-activepoolscrvusdurgentredemption.md)[E2](https://bugbountylibrary.com/r/c4%3A2023-01-astaria%3AH-07.md)[E3](https://bugbountylibrary.com/r/c4%3A2021-11-malt%3AM-16.md).

## Where it shows up
- Public `stabilize`, `refinance`, `redeem`, `urgentRedemption`-style functions with no role check [E1](https://bugbountylibrary.com/r/dhl%3A20250705-activepoolscrvusdurgentredemption.md)[E3](https://bugbountylibrary.com/r/c4%3A2021-11-malt%3AM-16.md)
- Functions taking a caller-supplied ID or list (trove IDs, lien IDs) so the caller picks which position to act on [E1](https://bugbountylibrary.com/r/dhl%3A20250705-activepoolscrvusdurgentredemption.md)
- Refinance/buyout validation that checks some loan parameters but not all the ones the borrower relied on [E2](https://bugbountylibrary.com/r/c4%3A2023-01-astaria%3AH-07.md)
- Shutdown/emergency branches that disable normal flows but leave redemption paths open [E1](https://bugbountylibrary.com/r/dhl%3A20250705-activepoolscrvusdurgentredemption.md)
- Profit or bonus paid out inside the trigger, funded from pool collateral or LP value [E1](https://bugbountylibrary.com/r/dhl%3A20250705-activepoolscrvusdurgentredemption.md)[E3](https://bugbountylibrary.com/r/c4%3A2021-11-malt%3AM-16.md)
- Trigger callable in the same block as a large swap or immediately before liquidation [E2](https://bugbountylibrary.com/r/c4%3A2023-01-astaria%3AH-07.md)[E3](https://bugbountylibrary.com/r/c4%3A2021-11-malt%3AM-16.md)

## How to review
For every permissionless state-changing entry point, ask: who benefits, and can the caller set the inputs? The invariant: a caller who does not hold the position must not be able to choose which position is acted on, nor move the price the function reads, and still come out ahead. Check that refinance/redeem validation covers every parameter the original party depended on — enumerate them at origination and confirm a third party cannot change any [E2](https://bugbountylibrary.com/r/c4%3A2023-01-astaria%3AH-07.md). After shutdown, confirm privileged redemption is gated or that caller-chosen IDs cannot select only profitable positions [E1](https://bugbountylibrary.com/r/dhl%3A20250705-activepoolscrvusdurgentredemption.md). For stabilizers, confirm profit accrues to holders/LPs, not to whoever calls first [E3](https://bugbountylibrary.com/r/c4%3A2021-11-malt%3AM-16.md).

## How finders spotted it
- Read the refinance validation and noticed `liquidationInitialAsk` was missing from the checked parameters, then reasoned that permissionless refinancing near liquidation leaves the borrower no time to react [E2](https://bugbountylibrary.com/r/c4%3A2023-01-astaria%3AH-07.md)
- Reasoned that system profit from stabilize should belong to holders, so any permissionless path letting a non-holder capture it is a flaw, then built a sandwich around the call [E3](https://bugbountylibrary.com/r/c4%3A2021-11-malt%3AM-16.md)
- Noticed that after branch shutdown `urgentRedemption` stayed callable and allowed selecting specific trove IDs, making undercollateralized troves profitable to redeem [E1](https://bugbountylibrary.com/r/dhl%3A20250705-activepoolscrvusdurgentredemption.md)

## Variants seen
- Post-shutdown redemption of caller-chosen undercollateralized troves for bonus collateral [E1](https://bugbountylibrary.com/r/dhl%3A20250705-activepoolscrvusdurgentredemption.md)
- Permissionless refinance resetting auction start price just before liquidation [E2](https://bugbountylibrary.com/r/c4%3A2023-01-astaria%3AH-07.md)
- Sandwich around a permissionless stabilize call to capture system profit [E3](https://bugbountylibrary.com/r/c4%3A2021-11-malt%3AM-16.md)

## Impact and severity
Direct loss of pool collateral or LP profit to the caller: ~$4.2k netted via flash loan in one case [E1](https://bugbountylibrary.com/r/dhl%3A20250705-activepoolscrvusdurgentredemption.md), suboptimal NFT sale far below fair value in another [E2](https://bugbountylibrary.com/r/c4%3A2023-01-astaria%3AH-07.md), and theft of system profit in the third [E3](https://bugbountylibrary.com/r/c4%3A2021-11-malt%3AM-16.md). Impact rises when the trigger pays a bonus [E1](https://bugbountylibrary.com/r/dhl%3A20250705-activepoolscrvusdurgentredemption.md), when it runs immediately before liquidation so the borrower cannot respond [E2](https://bugbountylibrary.com/r/c4%3A2023-01-astaria%3AH-07.md), and when flash loans remove the attacker's capital cost [E1](https://bugbountylibrary.com/r/dhl%3A20250705-activepoolscrvusdurgentredemption.md)[E3](https://bugbountylibrary.com/r/c4%3A2021-11-malt%3AM-16.md).

## Evidence
- E1: https://bugbountylibrary.com/r/dhl%3A20250705-activepoolscrvusdurgentredemption.md
- E2: https://bugbountylibrary.com/r/c4%3A2023-01-astaria%3AH-07.md
- E3: https://bugbountylibrary.com/r/c4%3A2021-11-malt%3AM-16.md
