Skip to content

Login may require 2FA code #56

@Tosox

Description

@Tosox

The content of the response login in utils.generate_login_cookies contained this HTML response

grafik

I haven't changed any account settings on the account I used for this login, and when I tested my main account I didn't need to enter a 2FA code.

Entering a (in this case wrong) code will send this POST request:

Headers:

POST /members/login2fa/ HTTP/3
Host: www.moddb.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:133.0) Gecko/20100101 Firefox/133.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate, br, zstd
Referer: https://www.moddb.com/
Content-Type: application/x-www-form-urlencoded
Content-Length: 131
Origin: https://www.moddb.com
DNT: 1
Sec-GPC: 1
Connection: keep-alive
Cookie: masterchief=568825b7c7f8d8c6f5b75ab1d6acf543; dukenukem=ba4a5efafeee61fa3a0ae0f9afad4718; CookieScriptConsent={...}
Upgrade-Insecure-Requests: 1
Sec-Fetch-Dest: document
Sec-Fetch-Mode: navigate
Sec-Fetch-Site: same-origin
Sec-Fetch-User: ?1
Priority: u=0, i
TE: trailers

Body:

referer: ""
rememberme: "1"
2faemaildomain: "@lisoren.com"
2faemailhash: "a0b619bfaf11e25171c9267e0d6e287b"
2faemailcode: "12345"
members: "Verify"

Information for the body can be found here in the HTML:

grafik

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions