Skip to content

tkmru/client-side-template-injection-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Client-Side Template Injection Sample App with AngularJS

Client-side template injection vulnerabilities occur when web application using a client-side template framework dynamically embed user input. This Sinatra app has a client-side template injection vulnerability with AngularJS. Let's attack it!

img

{{constructor.constructor('alert(1)')()}} fire alert().

img2

How to use

Run startup.sh, sintra app work on 5000 port.

$ ./startup.sh

Docker

Also Dockerfile exists.

$ docker build . 
$ docker run -p 127.0.0.1:5000:5000 -d <IMAGE ID>

Case study

Licence

The MIT License

About

Client-Side Template Injection Sample App with AngularJS

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published