{"record":{"id":"9978e22d05083f0e","repo":"sqlmapproject/sqlmap","slug":"firebird-authentication-failed","errorCode":null,"errorMessage":"Firebird authentication failed","messagePattern":"Firebird authentication failed","errorType":"exception","errorClass":"OperationalError","httpStatus":null,"severity":"error","filePath":"extra/dbwire/firebird.py","lineNumber":851,"sourceCode":"        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\")\n    dpb += bytearray([_isc_dpb_user_name, len(ub)]) + bytearray(ub)\n    dpb += bytearray([_isc_dpb_process_id, 4]) + bytearray(struct.pack(\"<i\", os.getpid() & 0x7fffffff))\n    name = b\"sqlmap\"\n    dpb += bytearray([_isc_dpb_process_name, len(name)]) + bytearray(name)\n    wire.send(_pack_int(_op_attach) + _pack_int(0) + _pack_bytes(connection._filename) + _pack_bytes(bytes(dpb)))\n    connection._db_handle = connection._response()[0]\n\n    tpb = bytes(bytearray([_isc_tpb_version3, _isc_tpb_write, _isc_tpb_wait,\n                           _isc_tpb_read_committed, _isc_tpb_rec_version]))\n    wire.send(_pack_int(_op_transaction) + _pack_int(connection._db_handle) + _pack_bytes(tpb))","sourceCodeStart":833,"sourceCodeEnd":869,"githubUrl":"https://github.com/sqlmapproject/sqlmap/blob/0a35b20e3953d341be6c7ac75ccb0b3362540c8d/extra/dbwire/firebird.py#L833-L869","documentation":"Error \"Firebird authentication failed\" thrown in sqlmapproject/sqlmap.","triggerScenarios":"Thrown at extra/dbwire/firebird.py:851 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"}