Post

OAuth 2.0 Browser Swapping Attacks Revisited: Response Mode Fragment

SySS extends their OAuth 2.0 browser swapping attack research to show that using ‘fragment’ response mode (URI hash) does not prevent the attack. While fragments are not transmitted to servers, they survive browser redirects and persist in error page URLs shown to victims. Attackers can still extract authorization codes and state from these error URLs via social engineering, then replay them to their own session. The attack relies on the same mechanism as the original browser swapping technique but is slightly harder to execute since fragments are rarely logged. Recommended mitigations include short authorization code lifetimes (10 seconds) and explicitly clearing fragments on error redirects with a trailing hash.

Read original article

This post is licensed under CC BY 4.0 by the author.