{"id":20493857,"url":"https://github.com/qeeqbox/vertical-privilege-escalation","last_synced_at":"2025-07-29T14:11:34.277Z","repository":{"id":104219217,"uuid":"485967347","full_name":"qeeqbox/vertical-privilege-escalation","owner":"qeeqbox","description":"A threat actor may perform unauthorized functions belonging to another user with a higher privileges level","archived":false,"fork":false,"pushed_at":"2025-07-21T06:58:05.000Z","size":972,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-21T08:34:00.493Z","etag":null,"topics":["escalation","example","infosecsimplified","metadata","privilege","qeeqbox","vertical","visualization","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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-04-26T22:31:01.000Z","updated_at":"2025-07-21T06:58:08.000Z","dependencies_parsed_at":"2024-01-29T02:37:18.563Z","dependency_job_id":"7c9b3a83-def4-433e-8864-37c70a0126b1","html_url":"https://github.com/qeeqbox/vertical-privilege-escalation","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/qeeqbox/vertical-privilege-escalation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qeeqbox%2Fvertical-privilege-escalation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qeeqbox%2Fvertical-privilege-escalation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qeeqbox%2Fvertical-privilege-escalation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qeeqbox%2Fvertical-privilege-escalation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qeeqbox","download_url":"https://codeload.github.com/qeeqbox/vertical-privilege-escalation/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qeeqbox%2Fvertical-privilege-escalation/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267701309,"owners_count":24130449,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["escalation","example","infosecsimplified","metadata","privilege","qeeqbox","vertical","visualization","vulnerability"],"created_at":"2024-11-15T17:37:09.702Z","updated_at":"2025-07-29T14:11:34.270Z","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/vertical-privilege-escalation/main/content/vertical-privilege-escalation.svg\"\u003e\u003c/p\u003e\n\nA threat actor may perform unauthorized functions belonging to another user with a higher privilege level.\n\nClone this current repo recursively\n```sh\ngit clone --recurse-submodules https://github.com/qeeqbox/horizontal-privilege-escalation\n```\nRun the webapp using Python\n```sh\npython3 horizontal-privilege-escalation/vulnerable-web-app/webapp.py\n```\nOpen the webapp in your browser 127.0.0.1:5142\n\u003cp align=\"center\"\u003e \u003cimg src=\"https://raw.githubusercontent.com/qeeqbox/vertical-privilege-escalation/main/content/1.png\"\u003e\u003c/p\u003e\nLogin as John (username: john and password: john - The threat actor stole this account)\n\u003cp align=\"center\"\u003e \u003cimg src=\"https://raw.githubusercontent.com/qeeqbox/vertical-privilege-escalation/main/content/2.png\"\u003e\u003c/p\u003e\nJohn has access to the tickets only\n\u003cp align=\"center\"\u003e \u003cimg src=\"https://raw.githubusercontent.com/qeeqbox/vertical-privilege-escalation/main/content/3.png\"\u003e\u003c/p\u003e\nLogout\n\u003cp align=\"center\"\u003e \u003cimg src=\"https://raw.githubusercontent.com/qeeqbox/vertical-privilege-escalation/main/content/4.png\"\u003e\u003c/p\u003e\nLogin as Joe (username: joe and password: joe - The threat actor stole this account)\n\u003cp align=\"center\"\u003e \u003cimg src=\"https://raw.githubusercontent.com/qeeqbox/vertical-privilege-escalation/main/content/5.png\"\u003e\u003c/p\u003e\nJoe also has access to the tickets and sysinfo\n\u003cp align=\"center\"\u003e \u003cimg src=\"https://raw.githubusercontent.com/qeeqbox/vertical-privilege-escalation/main/content/6.png\"\u003e\u003c/p\u003e\n\n## Code\nThis logic checks if the user is logged in, then it renders sections based on the user's access\n```py\n@logged_in\ndef render_home_page(self):\n    content = b\"\"\n    cookies = SimpleCookie(self.headers.get('Cookie'))\n    if \"access\" in cookies:\n        for access in cookies[\"access\"].value.split(\",\"):\n            content += getattr(self, f\"{access}_section\" , None)()\n    return BASE_TEMPLATE.replace(b\"{{body}}\",content)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqeeqbox%2Fvertical-privilege-escalation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqeeqbox%2Fvertical-privilege-escalation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqeeqbox%2Fvertical-privilege-escalation/lists"}