Skip to content
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

Fix org_name XSS path #7

Merged
merged 2 commits into from
Dec 19, 2014
Merged

Fix org_name XSS path #7

merged 2 commits into from
Dec 19, 2014

Conversation

darrenpmeyer
Copy link

You can specify origin=cc where cc is a country code as listed in the centroids FIPS10 column, and attacks will originate from there. Only works if one of the _mode args is not specified

before change, org name of org_name=<script>alert(%27xss%27)</script> creates an alert box, confirming XSS. Changed to use the .text() property for proper escaping, closes XSS hole.

see, e.g. http://darrenpmeyer.com/pewpew/?org_name=%3Cscript%3Ealert(%27xss%27)%3C/script%3E&origin=us

hrbrmstr added a commit that referenced this pull request Dec 19, 2014
@hrbrmstr hrbrmstr merged commit b44b182 into hrbrmstr:master Dec 19, 2014
@hrbrmstr
Copy link
Owner

#ty sir. alex and i were far too focused on amusement it seems :-)

@alexcpsec
Copy link
Collaborator

I was thinking the same thing. Comedy does not preclude security. ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants