{"record":{"id":"73f4ab2cf13625e9","repo":"sqlmapproject/sqlmap","slug":"firebird-connection-rejected","errorCode":null,"errorMessage":"Firebird connection rejected","messagePattern":"Firebird connection rejected","errorType":"exception","errorClass":"OperationalError","httpStatus":null,"severity":"error","filePath":"extra/dbwire/firebird.py","lineNumber":799,"sourceCode":"    except Exception as ex:\n        wire.close()\n        raise OperationalError(\"Firebird login failed (%s)\" % ex)\n    return connection\n\ndef _unhex(s):\n    return bytes(bytearray(int(s[i:i + 2], 16) for i in range(0, len(s), 2)))\n\ndef _normalize_user(user):\n    if len(user) >= 2 and user[0] == '\"' and user[-1] == '\"':\n        return user[1:-1].replace('\"\"', '\"')\n    return user.upper()\n\ndef _authenticate(wire, user, password, public_key, private_key):\n    op = wire.recv_int()\n    while op == _op_dummy:\n        op = wire.recv_int()\n    if op == _op_reject:\n        raise OperationalError(\"Firebird connection rejected\")\n    if op == _op_response:\n        _parse_response(wire)  # will raise the server error\n        raise OperationalError(\"Firebird connection rejected\")\n\n    wire.recv(12)  # accept block: protocol version / architecture / type (not needed once lazy-send is off)\n    if op == _op_accept:\n        return b\"\"  # plaintext, no encryption negotiated\n\n    data = wire.recv_bytes()\n    plugin_name = wire.recv_bytes()\n    wire.recv_int()          # is_authenticated\n    wire.recv_bytes()        # keys\n    if plugin_name not in (b\"Srp256\", b\"Srp\"):\n        raise NotSupportedError(\"unsupported Firebird auth plugin %r\" % plugin_name)\n    if not data:\n        raise OperationalError(\"Firebird server sent no SRP challenge\")\n\n    salt_len = _le(data[:2])","sourceCodeStart":781,"sourceCodeEnd":817,"githubUrl":"https://github.com/sqlmapproject/sqlmap/blob/0a35b20e3953d341be6c7ac75ccb0b3362540c8d/extra/dbwire/firebird.py#L781-L817","documentation":"Error \"Firebird connection rejected\" thrown in sqlmapproject/sqlmap.","triggerScenarios":"Thrown at extra/dbwire/firebird.py:799 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"}