{"id":18259420,"url":"https://github.com/murtaza-u/lab-xss","last_synced_at":"2025-04-04T19:32:52.483Z","repository":{"id":103795282,"uuid":"535015883","full_name":"murtaza-u/lab-xss","owner":"murtaza-u","description":"Lab demonstrating simple XSS attack","archived":false,"fork":false,"pushed_at":"2023-02-25T02:09:31.000Z","size":37,"stargazers_count":3,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-06-21T09:46:06.924Z","etag":null,"topics":["cookie","hijacking","jwt","xss"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/murtaza-u.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-09-10T14:04:13.000Z","updated_at":"2024-03-08T17:58:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"ff3f330b-f0c7-4ee7-ae11-50528c8041da","html_url":"https://github.com/murtaza-u/lab-xss","commit_stats":{"total_commits":10,"total_committers":1,"mean_commits":10.0,"dds":0.0,"last_synced_commit":"be38885555f5635774dd37bf0ef1d70c95be6773"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/murtaza-u%2Flab-xss","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/murtaza-u%2Flab-xss/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/murtaza-u%2Flab-xss/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/murtaza-u%2Flab-xss/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/murtaza-u","download_url":"https://codeload.github.com/murtaza-u/lab-xss/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223155751,"owners_count":17097036,"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":["cookie","hijacking","jwt","xss"],"created_at":"2024-11-05T10:38:06.257Z","updated_at":"2024-11-05T10:38:11.489Z","avatar_url":"https://github.com/murtaza-u.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple Cross-Site Scripting Lab\n\n## App\n\nApplication vulnerable to XSS.\n\n## Attacker\n\nAttacker has only one endpoint '/', which listens for incoming\nconnections and logs all the query parameters to `stdout`.\n\n## Setup\n\n### With Docker\n\n* Starting the vulnerable application\n\n```bash\ndocker run -it \\\n    -e PORT=8080 \\\n    -e JWT_SECRET=\"$(head -c 50 /dev/urandom | base64)\" \\\n    -p 8080:8080 \\\n    murtazau/lab-xss app\n```\n\n* Starting the attacker\n\n```bash\ndocker run -it \\\n    -e ATTACKER_PORT=5000 \\\n    -p 5000:5000 \\\n    murtazau/lab-xss attack\n```\n\n### Without Docker\n\n```bash\ngit clone github.com/murtaza-u/lab-xss\ncd lab-xss\ngo build -o lab-xss cmd/lab-xss/main.go\n```\n\n* Starting the vulnerable application\n\n```bash\nexport JWT_SECRET=\"$(head -c 50 /dev/urandom | base64)\"\nexport PORT=8080\n./lab-xss app\n```\n\n* Starting the attacker\n\n```bash\nexport ATTACKER_PORT=5000\n./lab-xss attack\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmurtaza-u%2Flab-xss","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmurtaza-u%2Flab-xss","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmurtaza-u%2Flab-xss/lists"}