Originally reported on Google Code with ID 496
Description:
GitBlit is not validating or cleaning the input via request parameters.
Steps to reproduce the problem:
1. Open Firefox (Chrome and IE block most XSS)
2. Login to GitBlit
3. Paste the following url into gitblit (filling in the server and repository info):
https://<server>/history/?r=<repository>&h=refs/heads/master<script>alert(“hi”)</script>
https://<server>/log/?r=<repository>&h=refs/heads/master<script>alert(“hi”)</script>
6. Observe the javascript alert
Expected Output:
An error message stating the input was invalid.
Actual Output:
The execution of the javascript alert injected with the h parameter
Environment:
Gitblit Version 1.6.0 running on rhel 6 / tomcat 7 / apache httpd 2.2 with proxy ajp
Reported by 1988porsche944 on 2014-09-05 13:45:05
Originally reported on Google Code with ID 496
Reported by
1988porsche944on 2014-09-05 13:45:05