{"id":20511535,"url":"https://github.com/thiiagoms/php-xss-example","last_synced_at":"2026-04-20T07:33:03.771Z","repository":{"id":115850203,"uuid":"546692076","full_name":"thiiagoms/php-xss-example","owner":"thiiagoms","description":"Simple example of XSS in PHP application :shield:","archived":false,"fork":false,"pushed_at":"2022-10-06T13:48:43.000Z","size":62,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-05T22:44:31.305Z","etag":null,"topics":["php-vulnerabilities","php-xss","xss-example","xss-vulnerability"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thiiagoms.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-10-06T13:44:32.000Z","updated_at":"2022-10-09T00:33:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"cc46f335-2f0e-4473-a7da-22886b1e2d02","html_url":"https://github.com/thiiagoms/php-xss-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thiiagoms/php-xss-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thiiagoms%2Fphp-xss-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thiiagoms%2Fphp-xss-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thiiagoms%2Fphp-xss-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thiiagoms%2Fphp-xss-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thiiagoms","download_url":"https://codeload.github.com/thiiagoms/php-xss-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thiiagoms%2Fphp-xss-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32037860,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T00:18:06.643Z","status":"online","status_checked_at":"2026-04-20T02:00:06.527Z","response_time":94,"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":["php-vulnerabilities","php-xss","xss-example","xss-vulnerability"],"created_at":"2024-11-15T20:36:16.370Z","updated_at":"2026-04-20T07:33:03.755Z","avatar_url":"https://github.com/thiiagoms.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/thiiagoms/xss-poc\"\u003e\n    \u003cimg src=\"assets/logo/battle.png\" alt=\"Logo\" width=\"80\" height=\"80\"\u003e\n  \u003c/a\u003e\n     \u003ch3 align=\"center\"\u003e\n        XSS Example Attack :sword:\n     \u003c/h3\u003e\n\u003c/p\u003e\n\nSimple example of PHP vullnerable applicaton :face_with_thermometer:\n\n- [Dependencies](#Dependencies)\n- [Usage](#Usage)\n\n### Dependencies\n* PHP 7.4\n* SQLite 3\n\n### Usage\n\n- Run server on `view.php` or just use `apache2` and access `view.php`: \n```bash\n$ php -S localhost:8000 view.php\n```\n\n- With XSS Attack, uncomment line `28` on `view.php`\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"assets/screenshots/with-xss.png\" alt=\"Logo\" width=\"600\" height=\"500\"\u003e\n\u003c/p\u003e\n\n- Without XSS Attack, uncomment line `29` on `view.php`\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"assets/screenshots/withou-xss.png\" alt=\"Logo\" width=\"1153\" height=249\"\u003e\n\u003c/p\u003e\n\n\nIf you want to contribute, you can also open issue or clone this repository to make a Pull Request, thank you so much!!!:purple_heart:\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthiiagoms%2Fphp-xss-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthiiagoms%2Fphp-xss-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthiiagoms%2Fphp-xss-example/lists"}