Skip to content

Fix a couple of bugs found by LLMs - #3822

Open
Fs00 wants to merge 2 commits into
microg:masterfrom
Fs00:llm-reported-bugs
Open

Fs00 wants to merge 2 commits into
microg:masterfrom
Fs00:llm-reported-bugs

Conversation

@Fs00

@Fs00 Fs00 commented Sep 19, 2026

Copy link
Copy Markdown
Contributor

This PR fixes two small bugs/inconsistencies found by LLMs which incorrectly reported them as "vulnerabilities".

  • 4fb7583: PeopleService.loadOwners lets any app with contacts permission to access Google account details. It is a deliberate choice made in 9d0bb96 to fix Hangouts Meet exiting with "selecting an account is required" #943, though by reading the issue it seems to me that cb5fe55 could have been enough to fix the reported bug.
    This behavior is likely a bit too lenient, and also doesn't match what GMS does. On a device running vanilla Play Services, a test app with READ_CONTACTS permission trying to call loadOwners gets back a java.lang.SecurityException: PackageVerificationRslt: not allowed.
  • e752caa: the if (fallbackUrl in ALLOWED_FALLBACK_PREFIXES) was actually meant to check for the opposite condition, and also used the entire URL instead of matching the prefix only. It doesn't lead to an open redirect vulnerability though, because Google's AccountChooser endpoint returns a 400 error if the fallback URL looks wrong.
    While at it, I slightly refactored the function to make guard conditions more apparent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Hangouts Meet exiting with "selecting an account is required"

1 participant