JWT: weak HS256 key
The security of a JWT signed with HS256 completely depends on the private key. If the key is a weak password (present in a dictionary), an attacker can try every password, recalculate the HMAC-SHA256 signature, and compare it with the token's signature — the matching one is the real key. This is an offline dictionary attack.
The attached jwt.txt file contains an HS256 token and the encrypted flag (hex). parollar.txt — a dictionary of candidate passwords. Find the key, then decrypt the flag:
flag = shifrlangan_flag XOR SHA-256(topilgan_kalit)
The SHA-256 key is 32 bytes, and the flag is longer than that — therefore, the key is used repeatedly (cyclically): ct[i] ^ kalit[i % 32].
Signature part: base64url(HMAC_SHA256(kalit, header_b64 + '.' + payload_b64)).