mirror of
https://github.com/telephone/LookingGlass.git
synced 2026-04-25 07:56:01 +03:00
[PR #26] [MERGED] Fixed XSS issue #53
Labels
No labels
enhancement
enhancement
enhancement
pull-request
v1
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/LookingGlass#53
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/telephone/LookingGlass/pull/26
Author: @ldrrp
Created: 1/19/2015
Status: ✅ Merged
Merged: 1/22/2015
Merged by: @telephone
Base:
master← Head:master📝 Commits (1)
7fc5eccFixed XSS issue📊 Changes
1 file changed (+3 additions, -3 deletions)
View changed files
📝
LookingGlass/LookingGlass.php(+3 -3)📄 Description
Response data from commands is not escaped before printing, leading to a potential XSS attack on all sites hosting the looking glass.
This can potentially even lead to viable attacks across subdomains via session fixation. (User is tricked into going to this url, either in a hidden iframe/etc. Cookies are overwritten with attacker controlled cookies, and user logs in while still using attacker controlled cookies)
A proof of concept can be viewed by going to the URL in the looking glass:
/ajax.php?cmd=host&host=87.204.122.210
The reverse DNS record for that domain contains html which inserts an image into the page.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.