{"id":20493894,"url":"https://github.com/qeeqbox/insecure-deserialization","last_synced_at":"2026-03-19T16:04:49.812Z","repository":{"id":219662070,"uuid":"657024666","full_name":"qeeqbox/insecure-deserialization","owner":"qeeqbox","description":"A threat actor may tamper with a stream that gets deserialized on the target, causing the target to access data or perform non-intended actions","archived":false,"fork":false,"pushed_at":"2024-01-29T00:57:17.000Z","size":78,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-06T16:52:39.475Z","etag":null,"topics":["deserialization","infosecsimplified","insecure","qeeqbox","vulnerability"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/qeeqbox.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-06-22T06:41:58.000Z","updated_at":"2024-01-29T00:57:10.000Z","dependencies_parsed_at":"2024-01-29T02:29:47.137Z","dependency_job_id":"9cef0720-89a6-4189-9eee-c8bb93ea6309","html_url":"https://github.com/qeeqbox/insecure-deserialization","commit_stats":null,"previous_names":["qeeqbox/insecure-deserialization"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/qeeqbox/insecure-deserialization","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qeeqbox%2Finsecure-deserialization","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qeeqbox%2Finsecure-deserialization/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qeeqbox%2Finsecure-deserialization/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qeeqbox%2Finsecure-deserialization/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qeeqbox","download_url":"https://codeload.github.com/qeeqbox/insecure-deserialization/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qeeqbox%2Finsecure-deserialization/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30301109,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T14:33:48.460Z","status":"ssl_error","status_checked_at":"2026-03-09T14:33:48.027Z","response_time":61,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["deserialization","infosecsimplified","insecure","qeeqbox","vulnerability"],"created_at":"2024-11-15T17:37:20.305Z","updated_at":"2026-03-09T15:31:41.319Z","avatar_url":"https://github.com/qeeqbox.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e \u003cimg src=\"https://raw.githubusercontent.com/qeeqbox/insecure-deserialization/main/insecure-deserialization.png\"\u003e\u003c/p\u003e\n\nA threat actor may tamper with a stream that gets deserialized on the target causing the target to access data or perform non-intended actions\n\n## Example #1\n1. An application sends serialized user's settings in a http request to backend api\n2. A threat actor finds out how the serialization works, and inject malicious actions with settings\n3. The backend api deserialize the request and perform threat actor's actions\n\n## Code\n#### Target-Logic\n```php\n\u003c?php\nclass Info{\n  public $username;\n  public $admin;\n}\n$user = new Info;\n$user-\u003eusername = 'Victim';\n$user-\u003eadmin = FALSE;\n$Info = unserialize($user);\necho $Info-\u003eadmin\n?\u003e\n```\n\n#### Target-In\n```php\n O:4:\"Info\":2:{s:8:\"username\";s:6:\"Victim\";s:5:\"admin\";b:1;} \n```\n\n#### Target-Out\n```\nAdmin: True\n```\n\n## Impact\nHigh\n\n## Names\n- Insecure deserialization\n- Untrusted deserialization\n\n## Risk\n- Read \u0026 modify data\n\n## Redemption\n- Use pure data format\n- Deserialize signed data only\n\n## ID\na244242a-a9d5-47e0-9c01-86eecdf073ea\n\n## References\n- [Wikipedia](https://en.wikipedia.org/wiki/Serialization)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqeeqbox%2Finsecure-deserialization","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqeeqbox%2Finsecure-deserialization","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqeeqbox%2Finsecure-deserialization/lists"}