{"id":13536963,"url":"https://github.com/splitline/How-to-Hack-Websites","last_synced_at":"2025-04-02T03:31:35.731Z","repository":{"id":43056072,"uuid":"426033123","full_name":"splitline/How-to-Hack-Websites","owner":"splitline","description":"開源的正體中文 Web Hacking 學習資源 - 程式安全 2021 Fall","archived":false,"fork":false,"pushed_at":"2022-03-21T18:16:14.000Z","size":18733,"stargazers_count":507,"open_issues_count":1,"forks_count":49,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-11-03T02:32:09.191Z","etag":null,"topics":["ctf","security","web-security"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/splitline.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-11-09T00:03:28.000Z","updated_at":"2024-10-24T05:00:32.000Z","dependencies_parsed_at":"2022-08-26T14:31:23.217Z","dependency_job_id":null,"html_url":"https://github.com/splitline/How-to-Hack-Websites","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splitline%2FHow-to-Hack-Websites","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splitline%2FHow-to-Hack-Websites/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splitline%2FHow-to-Hack-Websites/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splitline%2FHow-to-Hack-Websites/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/splitline","download_url":"https://codeload.github.com/splitline/How-to-Hack-Websites/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246751245,"owners_count":20827857,"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","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":["ctf","security","web-security"],"created_at":"2024-08-01T09:00:52.756Z","updated_at":"2025-04-02T03:31:30.717Z","avatar_url":"https://github.com/splitline.png","language":"PHP","funding_links":[],"categories":["線上教材","各校資安課程"],"sub_categories":["資訊安全","三校合開資安課程"],"readme":"# How to Hack Websites\n\n## Videos\n\n- 初章：https://youtu.be/a5vrGYsKc_A\n- 續章：https://youtu.be/hWC-Evt-sBc\n- 終章：https://youtu.be/73uI7BK8k3g\n\n## Topics\n\n### 初章\n\n[Full slide](slides/week/week1.pdf)\n\n- Web \u0026 Web security introduction [[slide]](slides/topic/Web%20Basic.pdf)\n- Access control \u0026 Bussiness logic \n- Recon \u0026 Information leak [[slide]](slides/topic/Recon%20\u0026%20Info%20leak.pdf)\n- Insecure Upload / Path traversal / LFI [[slide]](slides/topic/Upload%20\u0026%20LFI.pdf)\n- Basic injection [[slide]](slides/topic/Basic%20Injection%20(Code,%20Command,%20SQL).pdf)\n  - Code injection\n  - Command injection\n  - SQL injection: Basic\n\n\n### 續章\n\n[Full slide](slides/week/week2.pdf)\n\n- SQL injection: Advanced\n  - Union-based\n  - Boolean-based\n  - Other\n- Server-side request forgery (SSRF)\n- Insecure deserialization\n  - Intro\n  - Pickle\n\n### 終章\n\n[Full slide](slides/week/week3.pdf)\n\n- Insecure deserialization [[slide]](slides/topic/Deserialization.pdf)\n  - PHP\n  - POP Chain\n  - Misc (Java, .NET etc.)\n- Frontend security: Basic [[slide]](slides/topic/Fronted%20Security%20Basic%20(XSS,%20CSRF%20etc.).pdf)\n  - Same-origin policy\n  - CSRF\n  - XSS\n- Frontend security: Content Security Policy (CSP) [[slide]](slides/topic/Frontend%20Security%20Content%20Security%20Policy.pdf)\n- Frontend security: Advanced \n  - XS-Leak / CSS injection [[slide]](slides/topic/Frontend%20Security%20Side%20Channel.pdf)\n  - DOM Clobbering [[slide]](slides/topic/Frontend%20Security%20DOM%20Clobbering.pdf)\n- Advanced injection\n  - NoSQL injection\n  - Server-side template injection (SSTI)\n- Misc\n  - JavaScript prototype pollution [[slide]](slides/topic/JavaScript%20Prototype%20Pollution.pdf)\n  - XXE\n\n\n## Labs\n\n\u003e 題目之後的 `數字` 代表的是 docker 對外通訊埠編號\n\n- [Basic](lab/logic-vulns/)\n  - [x] Cat Shop `8100`\n- SQL injection\n  - [x] Login me: Login bypass `8200`\n  - [x] Login me again: UNION-based SQL injection `8201`\n- [Command injection](lab/cmd-injection/)\n  - [x] DNS tool `8300`\n  - [x] DNS tool: WAF edition `8301`\n- [LFI](lab/lfi/)\n  - [x] Meow site: Basic LFI `8400`\n  - [x] HakkaMD: LFI to RCE `8401`\n- [SSRF](lab/ssrf/)\n  - [x] Web Preview Service: Use `gopher://` to forge a request `8500`\n  - [x] SSRFrog: Bypass blacklist `8501`\n- [Deserialization](lab/deserialization/)\n  - [x] Pickle `8600`\n  - [x] Cat: Basic PHP unserialize `8601`\n  - [x] Magic cat: POP chain `8602`\n- [SSTI](lab/ssti/)\n  - [x] Jinja2 SSTI `8700`\n- [Frontend](lab/frontend/)\n  - [x] XSS `8800`\n\n## Homework\n\n- Imgura: Information Leak / Upload / LFI\n- DVD Screensaver: Path traversal / SQL injection / Signed Cookie\n- Profile Card: XSS / CSRF / CSP Bypass\n- Double SSTI: SSTI\n- Log me in: FINAL: SQL injection / Information Leak\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsplitline%2FHow-to-Hack-Websites","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsplitline%2FHow-to-Hack-Websites","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsplitline%2FHow-to-Hack-Websites/lists"}