Skip to content

Silent refresh event listener does not check messages for origin #1138

@R3ZL

Description

@R3ZL

Describe the bug
Event listener process login operation without checking the origin of message. It is potential vulnerability issue.

Code location: oauth-service.ts —> setupSilentRefreshEventListener

image

Expected behavior
setupSilentRefreshEventListener should check the message origin and do try login only if message origin is expected origin.

Explanation
https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage#security_concerns

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugFor tagging faulty or unexpected behavior.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions