The email is encoded before it is sent, the mix_mode encoder
- Target
-
The encoder lives in the login bundle on
sf16-web-login-neutral.capcutstatic.com, under/obj/capcut-web-login-static/ies/lvweb/account_online/static/js/, found from the livewww.capcut.com/forget-passwordpage. - Impact
-
The first test of the block puts a second email next to the first one. On CapCut the email never travels in plain text, the reset request carries it as hex, so a second copy only means something if it is encoded the same way the page encodes the first. That is why the encoder came first.
- Steps
-
Flow chart 1How does the email get to the server? - Start or end
- Action
- Attack path
- Step number
- the page, b7.0c006e311a.js
sendForgetPwdEmailCode(email, next)calls the SDK with{email, extra_params:{type:4, next}} - the SDK, 6.8f633a9191.js
notLoginSendEmailCode Y(params, ["email","type"]), the encoder, exported from the file asMF- the wire
POST /passport/web/email/send_code/
The scheme is three small functions:
Vturns the value into UTF-8 bytesFXORs every byte with 5 and writes it as hex, with no zero paddingYencodes only the keys it is given, hereemailandtype, sonextstays plain, and setsmix_modeandfixed_mix_modeto 1 once any key was encoded
- Evidence
-
POST /passport/web/email/send_code/ mix_mode=1&email=<hex>&type=31&next=<plain>&fixed_mix_mode=1type=31is not a type 31. It istype:4encoded,"4"is 0x34, XOR 5 gives 0x31. The page always sends type 4, and thetype=4in the mailed link is the same value, just not encoded. - Status
-
Done. The console version agrees with the original. See the check under E2.
limits · what the scheme cannot carry
- Control characters encode to one hex digit in the page's scheme, a CRLF is
8fbecause nothing is zero padded, soccDecryptcannot read it back;ccEncryptPadwrites it as080f, which decodes cleanly, but the page itself never sends the padded form - Outside the BMP the two encoders part: the page drops an emoji silently,
TextEncoderwrites its four UTF-8 bytes, and a lone surrogate becomes U+FFFD; every input this block tests is inside the BMP, where the two agree byte for byte
The third limit is an open test. It is in Open items.
- Control characters encode to one hex digit in the page's scheme, a CRLF is