Unable to login nor change OAuth token. #12

Closed
opened 2025-10-14 16:35:27 -06:00 by navan · 0 comments
Owner

Originally created by @SZanekinokusarinoko on 3/2/2025

Describe the bug
Any attempt at logging in crashes the program.

To Reproduce
Steps to reproduce the behavior:

  1. $ ghunt login
  2. Traceback (most recent call last): File "/home/lc/.local/bin/ghunt", line 8, in <module> sys.exit(main()) ^^^^^^ File "/home/lc/.local/pipx/venvs/ghunt/lib/python3.11/site-packages/ghunt/ghunt.py", line 18, in main parse_and_run() File "/home/lc/.local/pipx/venvs/ghunt/lib/python3.11/site-packages/ghunt/cli.py", line 63, in parse_and_run process_args(args) File "/home/lc/.local/pipx/venvs/ghunt/lib/python3.11/site-packages/ghunt/cli.py", line 70, in process_args asyncio.run(login.check_and_login(None, args.clean)) File "/usr/lib/python3.11/asyncio/runners.py", line 190, in run return runner.run(main) ^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/asyncio/runners.py", line 118, in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete return future.result() ^^^^^^^^^^^^^^^ File "/home/lc/.local/pipx/venvs/ghunt/lib/python3.11/site-packages/ghunt/modules/login.py", line 32, in check_and_login ghunt_creds = await auth.load_and_auth(as_client, help=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/lc/.local/pipx/venvs/ghunt/lib/python3.11/site-packages/ghunt/helpers/auth.py", line 213, in load_and_auth await check_and_gen(as_client, creds) File "/home/lc/.local/pipx/venvs/ghunt/lib/python3.11/site-packages/ghunt/helpers/auth.py", line 160, in check_and_gen await gen_cookies_and_osids(as_client, ghunt_creds) File "/home/lc/.local/pipx/venvs/ghunt/lib/python3.11/site-packages/ghunt/helpers/auth.py", line 140, in gen_cookies_and_osids is_logged_in, uber_auth = await accounts_api.OAuthLogin(as_client) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/lc/.local/pipx/venvs/ghunt/lib/python3.11/site-packages/ghunt/apis/accounts.py", line 55, in OAuthLogin req = await self._query(endpoint.name, as_client, base_url, params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/lc/.local/pipx/venvs/ghunt/lib/python3.11/site-packages/ghunt/objects/apis.py", line 131, in _query token = await self._check_and_gen_authorization_token(as_client, self.creds) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/lc/.local/pipx/venvs/ghunt/lib/python3.11/site-packages/ghunt/objects/apis.py", line 118, in _check_and_gen_authorization_token token, _, expiry_timestamp = await android_oauth_app(as_client, creds.android.master_token, self.package_name, self.scopes) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/lc/.local/pipx/venvs/ghunt/lib/python3.11/site-packages/ghunt/helpers/auth.py", line 63, in android_oauth_app raise GHuntAndroidAppOAuth2Error(f'Expected "{keyword}" in the response of the Android App OAuth2 Authentication.\nThe master token may be revoked.') ghunt.errors.GHuntAndroidAppOAuth2Error: Expected "Expiry" in the response of the Android App OAuth2 Authentication. The master token may be revoked.

Expected behavior
Allow me to paste a new OAuth token.

System:

  • OS = Debian 12
  • Python version = 3.11.2
  • GHunt version = 2.3.3

Additional context
GHunt has been reinstalled via pipx.

*Originally created by @SZanekinokusarinoko on 3/2/2025* **Describe the bug** Any attempt at logging in crashes the program. **To Reproduce** Steps to reproduce the behavior: 1. $ ghunt login 2. `Traceback (most recent call last): File "/home/lc/.local/bin/ghunt", line 8, in <module> sys.exit(main()) ^^^^^^ File "/home/lc/.local/pipx/venvs/ghunt/lib/python3.11/site-packages/ghunt/ghunt.py", line 18, in main parse_and_run() File "/home/lc/.local/pipx/venvs/ghunt/lib/python3.11/site-packages/ghunt/cli.py", line 63, in parse_and_run process_args(args) File "/home/lc/.local/pipx/venvs/ghunt/lib/python3.11/site-packages/ghunt/cli.py", line 70, in process_args asyncio.run(login.check_and_login(None, args.clean)) File "/usr/lib/python3.11/asyncio/runners.py", line 190, in run return runner.run(main) ^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/asyncio/runners.py", line 118, in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete return future.result() ^^^^^^^^^^^^^^^ File "/home/lc/.local/pipx/venvs/ghunt/lib/python3.11/site-packages/ghunt/modules/login.py", line 32, in check_and_login ghunt_creds = await auth.load_and_auth(as_client, help=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/lc/.local/pipx/venvs/ghunt/lib/python3.11/site-packages/ghunt/helpers/auth.py", line 213, in load_and_auth await check_and_gen(as_client, creds) File "/home/lc/.local/pipx/venvs/ghunt/lib/python3.11/site-packages/ghunt/helpers/auth.py", line 160, in check_and_gen await gen_cookies_and_osids(as_client, ghunt_creds) File "/home/lc/.local/pipx/venvs/ghunt/lib/python3.11/site-packages/ghunt/helpers/auth.py", line 140, in gen_cookies_and_osids is_logged_in, uber_auth = await accounts_api.OAuthLogin(as_client) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/lc/.local/pipx/venvs/ghunt/lib/python3.11/site-packages/ghunt/apis/accounts.py", line 55, in OAuthLogin req = await self._query(endpoint.name, as_client, base_url, params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/lc/.local/pipx/venvs/ghunt/lib/python3.11/site-packages/ghunt/objects/apis.py", line 131, in _query token = await self._check_and_gen_authorization_token(as_client, self.creds) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/lc/.local/pipx/venvs/ghunt/lib/python3.11/site-packages/ghunt/objects/apis.py", line 118, in _check_and_gen_authorization_token token, _, expiry_timestamp = await android_oauth_app(as_client, creds.android.master_token, self.package_name, self.scopes) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/lc/.local/pipx/venvs/ghunt/lib/python3.11/site-packages/ghunt/helpers/auth.py", line 63, in android_oauth_app raise GHuntAndroidAppOAuth2Error(f'Expected "{keyword}" in the response of the Android App OAuth2 Authentication.\nThe master token may be revoked.') ghunt.errors.GHuntAndroidAppOAuth2Error: Expected "Expiry" in the response of the Android App OAuth2 Authentication. The master token may be revoked. ` **Expected behavior** Allow me to paste a new OAuth token. **System:** - OS = Debian 12 - Python version = 3.11.2 - GHunt version = 2.3.3 **Additional context** GHunt has been reinstalled via pipx.
navan closed this issue 2025-10-14 16:35:32 -06:00
Sign in to join this conversation.
No labels
backdoor-try
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
can't read
can't read
can't read
can't read
duplicate
duplicate
duplicate
duplicate
duplicate
duplicate
duplicate
duplicate
duplicate
duplicate
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
good first issue
google-patch
google-patch
hacktoberfest-accepted
hacktoberfest-accepted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
invalid
invalid
invalid
invalid
invalid
invalid
invalid
invalid
invalid
invalid
invalid
invalid
invalid
knowledge-enrichment
known bug
question
question
question
question
question
spam
spam
spam
spam
spam
spam
spam
spam
spam
spam
spam
spam
spam
spam
spam
spam
spam
spam
spam
spam
spam
spam
spam
spam
spam
spam
spam
spam
stale
stale
stale
stale
stale
stale
stale
stale
stale
stale
stale
stale
stale
stale
stale
stale
stale
stale
stale
stale
stale
stale
stale
stale
stale
stale
stale
stale
third party bug
third party bug
third party bug
third party bug
third party bug
third party bug
third party bug
third party bug
third party bug
third party bug
third party bug
third party bug
third party bug
third party bug
third party bug
third party bug
third party bug
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github/GHunt#12
No description provided.