{"record":{"id":"fd5fa700f3729be1","repo":"sqlmapproject/sqlmap","slug":"no-valid-cookies-found","errorCode":null,"errorMessage":"no valid cookies found","messagePattern":"no valid cookies found","errorType":"exception","errorClass":"SqlmapGenericException","httpStatus":null,"severity":"error","filePath":"lib/core/common.py","lineNumber":5378,"sourceCode":"                        _ = line.split(\"\\t\")\n                        if len(_) == 7:\n                            _[4] = FORCE_COOKIE_EXPIRATION_TIME\n                            f.write(\"\\n%s\" % \"\\t\".join(_))\n\n                cookieJar.filename = filename\n\n            cookieJar.load(cookieJar.filename, ignore_expires=True)\n\n            for cookie in cookieJar:\n                if getattr(cookie, \"expires\", MAX_INT) < time.time():\n                    warnMsg = \"cookie '%s' has expired\" % cookie\n                    singleTimeWarnMessage(warnMsg)\n\n            cookieJar.clear_expired_cookies()\n\n            if not cookieJar._cookies:\n                errMsg = \"no valid cookies found\"\n                raise SqlmapGenericException(errMsg)\n\n        except Exception as ex:\n            errMsg = \"there was a problem loading \"\n            errMsg += \"cookies file ('%s')\" % re.sub(r\"(cookies) file '[^']+'\", r\"\\g<1>\", getSafeExString(ex))\n            raise SqlmapGenericException(errMsg)\n\ndef decloakToTemp(filename):\n    \"\"\"\n    Decloaks content of a given file to a temporary file with similar name and extension\n\n    NOTE: using in-memory decloak() in docTests because of the \"problem\" on Windows platform\n\n    >>> decloak(os.path.join(paths.SQLMAP_SHELL_PATH, \"stagers\", \"stager.asp_\")).startswith(b'<%')\n    True\n    >>> decloak(os.path.join(paths.SQLMAP_SHELL_PATH, \"backdoors\", \"backdoor.asp_\")).startswith(b'<%')\n    True\n    >>> b'sys_eval' in decloak(os.path.join(paths.SQLMAP_UDF_PATH, \"postgresql\", \"linux\", \"64\", \"11\", \"lib_postgresqludf_sys.so_\"))\n    True","sourceCodeStart":5360,"sourceCodeEnd":5396,"githubUrl":"https://github.com/sqlmapproject/sqlmap/blob/0a35b20e3953d341be6c7ac75ccb0b3362540c8d/lib/core/common.py#L5360-L5396","documentation":"Raised after loading the --load-cookies jar and calling clear_expired_cookies(): every entry in the Netscape-format cookie file was expired (or the file contained no usable cookies), leaving the jar empty.","triggerScenarios":"Thrown at lib/core/common.py:5378 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Refresh the cookie file with current, non-expired cookies from your browser session","Export cookies in Netscape/mozlz4-compatible format that matches what sqlmap expects","Remove stale lines from the file or use --cookie to pass a Cookie header directly"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"0a35b20e3953d341be6c7ac75ccb0b3362540c8d","analyzedAt":"2026-08-26T23:02:52.002Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}