{"record":{"id":"2a76bd29341f0b47","repo":"sqlmapproject/sqlmap","slug":"unsupported-firebird-wire-crypt-plugin-r","errorCode":null,"errorMessage":"unsupported Firebird wire-crypt plugin %r","messagePattern":"unsupported Firebird wire-crypt plugin %r","errorType":"exception","errorClass":"NotSupportedError","httpStatus":null,"severity":"error","filePath":"extra/dbwire/firebird.py","lineNumber":841,"sourceCode":"    proof, session_key = _srp_client_proof(_normalize_user(user).encode(\"utf-8\"),\n                                           password.encode(\"utf-8\"), salt,\n                                           public_key, server_public, private_key, hash_algo)\n\n    wire.send(_pack_int(_op_cont_auth) + _pack_bytes(_hex(proof)) + _pack_bytes(plugin_name) +\n              _pack_bytes(b\"Srp256,Srp,Legacy_Auth\") + _pack_bytes(b\"\"))\n    buf = _read_response(wire, user, password)\n\n    enc_plugin, nonce = _guess_wire_crypt(buf)\n    if not (enc_plugin and session_key):\n        raise NotSupportedError(\"Firebird server did not offer a supported wire-crypt plugin\")\n    wire.send(_pack_int(_op_crypt) + _pack_bytes(enc_plugin) + _pack_bytes(b\"Symmetric\"))\n    if enc_plugin in (b\"ChaCha\", b\"ChaCha64\"):\n        k = hashlib.sha256(session_key).digest()\n        wire.set_ciphers(_ChaCha20(k, nonce), _ChaCha20(k, nonce))\n    elif enc_plugin == b\"Arc4\":\n        wire.set_ciphers(_ARC4(session_key), _ARC4(session_key))\n    else:\n        raise NotSupportedError(\"unsupported Firebird wire-crypt plugin %r\" % enc_plugin)\n    _read_response(wire, user, password)  # first encrypted message\n    return session_key\n\ndef _read_response(wire, user, password):\n    # a bare op_response reader used during the login handshake (before a Connection exists)\n    op = wire.recv_int()\n    while op == _op_dummy:\n        op = wire.recv_int()\n    if op == _op_cont_auth:\n        raise OperationalError(\"Firebird authentication failed\")\n    if op != _op_response:\n        raise OperationalError(\"unexpected Firebird operation %d during login\" % op)\n    return _parse_response(wire)[2]\n\ndef _attach(connection, wire, user):\n    dpb = bytearray([_isc_dpb_version1])\n    dpb += bytearray([_isc_dpb_lc_ctype, 4]) + bytearray(b\"UTF8\")\n    ub = user.encode(\"utf-8\")","sourceCodeStart":823,"sourceCodeEnd":859,"githubUrl":"https://github.com/sqlmapproject/sqlmap/blob/0a35b20e3953d341be6c7ac75ccb0b3362540c8d/extra/dbwire/firebird.py#L823-L859","documentation":"Error \"unsupported Firebird wire-crypt plugin %r\" thrown in sqlmapproject/sqlmap.","triggerScenarios":"Thrown at extra/dbwire/firebird.py:841 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"0a35b20e3953d341be6c7ac75ccb0b3362540c8d","analyzedAt":"2026-08-26T23:02:52.002Z","schemaVersion":2},"datasetVersion":"2026-08-27T03:17:27.898Z"}