Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rbx_cookie references out of date credential schema #197

Closed
hello-42 opened this issue Oct 29, 2023 · 2 comments
Closed

rbx_cookie references out of date credential schema #197

hello-42 opened this issue Oct 29, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@hello-42
Copy link

Issue:

Roblox no longer adds/overwrites the generic credential to the address:
https://www.roblox.com:RobloxStudioAuth.ROBLOSECURITY.

But does so in a nearly identical fashion:
https://www.roblox.com:RobloxStudioAuth.ROBLOSECURITY{userId}
- where 'userId' is the account id of the player.

Background:

I found this out after recently installing Windows 11 on two systems, only to attempt to run a Lune script that uses it's built-in roblox library and that library's getAuthCookie() function, returning a .ROBLOSECURITY cookie to make HTTP calls with. getAuthCookie() returned nil as my cookie, and I'm unable to use any services provided by Roblox that require the security cookie.

Under the hood, Lune's roblox library uses rbx_cookie to retrieve the auth cookie. rbx_cookie itself appears to specifically reference the first address in this issue in how it concatenates a credential's address.

This does not support Roblox's new methodology, where they suffix the userId of an associated account to the credential key. A change should be made to alleviate this issue in the future.

I asked open source community members for aid on this issue, and it was noted that everyone has a generic credential to the first address in this post, last modified in May 2023, and that I do not. I attempted to shutdown both systems, my phone, and as well, re-install the Roblox app and Roblox Studio, and re-log into my account on all platforms and devices. None of these actions solved the issue.

@hello-42 hello-42 added the bug Something isn't working label Oct 29, 2023
@funwolf7
Copy link

Adding to this, the UserId you are logged into seems to be stored at https://www.roblox.com:RobloxStudioAuthuserid, which should allow us to then get the ROBLOSECURITY token using that UserId. Windows Credential Manager shows it as last updated today, so it is still in use, and I was able to decode it and verify that it stores my UserId (it is a big-endian UTF-8 string of your UserId).

@blake-mealey
Copy link
Owner

This is fixed in the latest versions of all the packages this repo maintains. Thanks for the report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants