{"id":17348734,"url":"https://github.com/tkmru/client-side-template-injection-sample","last_synced_at":"2025-08-01T21:33:15.645Z","repository":{"id":39699802,"uuid":"170178373","full_name":"tkmru/client-side-template-injection-sample","owner":"tkmru","description":"Client-Side Template Injection Sample App with AngularJS","archived":false,"fork":false,"pushed_at":"2023-03-16T05:51:42.000Z","size":229,"stargazers_count":1,"open_issues_count":2,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-16T18:08:47.690Z","etag":null,"topics":["angularjs","demo-app","websecurity"],"latest_commit_sha":null,"homepage":"","language":"HTML","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/tkmru.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-02-11T18:19:13.000Z","updated_at":"2020-07-27T05:59:58.000Z","dependencies_parsed_at":"2023-02-10T17:50:11.965Z","dependency_job_id":null,"html_url":"https://github.com/tkmru/client-side-template-injection-sample","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/tkmru%2Fclient-side-template-injection-sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkmru%2Fclient-side-template-injection-sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkmru%2Fclient-side-template-injection-sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkmru%2Fclient-side-template-injection-sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tkmru","download_url":"https://codeload.github.com/tkmru/client-side-template-injection-sample/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228410118,"owners_count":17915475,"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":["angularjs","demo-app","websecurity"],"created_at":"2024-10-15T16:53:20.444Z","updated_at":"2024-12-06T04:26:56.753Z","avatar_url":"https://github.com/tkmru.png","language":"HTML","readme":"# Client-Side Template Injection Sample App with AngularJS\nClient-side template injection vulnerabilities occur when web application using a client-side template framework dynamically embed user input. \nThis Sinatra app has a client-side template injection vulnerability with AngularJS. Let's attack it!\n\n![img](./screenshots/screenshot.png)\n\n`{{constructor.constructor('alert(1)')()}}` fire `alert()`.\n\n![img2](./screenshots/screenshot2.png)\n\n# How to use\nRun `startup.sh`, sintra app work on 5000 port.\n\n```\n$ ./startup.sh\n```\n\n## Docker\nAlso Dockerfile exists.\n\n```\n$ docker build . \n$ docker run -p 127.0.0.1:5000:5000 -d \u003cIMAGE ID\u003e\n```\n\n# Case study\n- [#230234 [mercantile.wordpress.org] Reflected XSS via AngularJS Template Injection](https://hackerone.com/reports/230234)\n- [#250837 Stored xss via template injection](https://hackerone.com/reports/250837)\n- [Reflective XSS via angularJS template injection - Hostinger – Taha Ibrahim DRAIDIA – Random Thoughts Mostly About Ethical Hacking](https://blog.ibrahimdraidia.com/xss-via-angularjs-template-injection_hostinger/)\n\n\n# Licence\nThe MIT License\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftkmru%2Fclient-side-template-injection-sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftkmru%2Fclient-side-template-injection-sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftkmru%2Fclient-side-template-injection-sample/lists"}