this is harmless: a user can xss themselves on deleting an ssh key

Bug #740160 reported by David
256
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Critical
Deryck Hodge

Bug Description

This is totally controlled / caused by the user... However, a bug is a bug so I am reporting this anyway.
A user needs to add an ssh key where the 'username' and the 'host' field are something like this:

'x<script>alert(1);</script>@ok<script>alert(2);</script>wellthisislame.com
and then delete the key.
When the key is deleted there is a dialogue telling the user that the key with $username @ $host has been deleted. In this message the username / host data is not escaped and so this is a potential (and harmless - it cannot alone be used to xss a random user and it is totally user triggered / involved) xss vector.

Tags: qa-ok

Related branches

j.c.sackett (jcsackett)
Changed in launchpad:
status: New → Triaged
importance: Undecided → Low
Revision history for this message
Robert Collins (lifeless) wrote :

No such thing as harmless xss :)

Changed in launchpad:
importance: Low → Critical
Revision history for this message
Robert Collins (lifeless) wrote :

(If a rationale is needed, consider that most of our users are hopelessly confused about what ssh keys are, and follow guides they find on the net without any understanding of the technical merit of said guide. Someone could write one explaining to copy a key in, delete it, etc - and grab auth credentials).

security vulnerability: no → yes
Deryck Hodge (deryck)
Changed in launchpad:
status: Triaged → In Progress
assignee: nobody → Deryck Hodge (deryck)
Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
Changed in launchpad:
milestone: none → 11.05
tags: added: qa-needstesting
Changed in launchpad:
status: In Progress → Fix Committed
tags: added: qa-ok
removed: qa-needstesting
Brad Crittenden (bac)
Changed in launchpad:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public Security information  
Everyone can see this security related information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.