Jump to content
  • 0

Security disclosure: OAuth redirect_uri issue on appid 17 (proof of concept)


Question

Posted

Hello BC.Game team,

I am reporting a security issue in the forum OAuth login integration (appid 17). The authorization endpoint at oauth2.bc.game/open/oauth2/auth/ does not strictly validate the redirect_uri host: a crafted value that the browser parses as an external host is accepted, and the issued authorization code is delivered to that host instead of the forum callback. A captured code can then be replayed at the forum callback to sign in as the issuing user.

I prepared a non-destructive proof of concept that only demonstrates where the authorization code is delivered. Please open it while signed in to a test account:

Open the OAuth redirect proof of concept

After the redirect you will see that the address bar host is not forum.bc.game while the authorization code is present in the query string. I have not used any captured code against a real account and I am not publishing the details.

Could you please confirm receipt and let me know if you would like the full request/response details and a suggested fix (a strict per-client redirect_uri allowlist)?

@Coco_o @BC_Jack @BCGame_Bob @Bruninxh @Mywoicakiwb @hotbc @Martin_community @999awara99 @BCGame_Muffin @Mkulet @Mat

Thank you.

0 answers to this question

Recommended Posts

There have been no answers to this question yet

You need to be a member in order to leave a comment

Sign up for a new account in our community. It's easy!

Register a new account

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...