Launchpad shouldn't accept malformed ssh keys

Bug #230144 reported by Tom Haddon on 2008-05-14
48
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Launchpad itself
Low
Colin Watson

Bug Description

As discovered when determining which keys were compromised in the LP DB, we currently seem to accept malformed ssh keys. It would be good to only accept valid ssh keys, and then to remove all invalid ones.

Related branches

Diogo Matsubara (matsubara) wrote :

What do you mean by invalid? Invalid as a malformed ssh key? Or vulnerable keys?

If you mean vulnerable, this is being fixed by bug 229986. I've checked with salgado and his patch doesn't check if the key is malformed or somewhat invalid.

Changed in launchpad:
status: New → Confirmed
status: Confirmed → Incomplete
Tom Haddon (mthaddon) wrote :

I mean malformed. Sorry for not clarifying that.

description: updated
Changed in launchpad:
status: Incomplete → Confirmed
Curtis Hovey (sinzui) on 2009-01-01
Changed in launchpad-registry:
importance: Undecided → Low
status: Confirmed → Triaged
Andrew Bennetts (spiv) wrote :

Copying a comment from duplicate bug 324120, because it's too easy to miss comments from dupes:

“So the root cause in this [bug 324120's] case seems to be that because Launchpad doesn't understand Putty's publickey file format, users have to do complicated things that are easy to get wrong. If Launchpad accepted Putty-style key files, then this wouldn't happen (and the CreatingAnSSHKeyPair instructions would get simpler). So perhaps that would be a more complete fix.”

That is, even better than rejecting malformed keys is turning them into well-formed keys and accepting them :)

Curtis Hovey (sinzui) on 2010-12-03
tags: added: ssh
removed: registry
Colin Watson (cjwatson) on 2018-02-24
Changed in launchpad:
assignee: nobody → Colin Watson (cjwatson)
status: Triaged → In Progress
Launchpad QA Bot (lpqabot) wrote :
tags: added: qa-needstesting
Changed in launchpad:
status: In Progress → Fix Committed
Colin Watson (cjwatson) on 2018-03-01
tags: added: qa-ok
removed: qa-needstesting
Colin Watson (cjwatson) on 2018-03-02
Changed in launchpad:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers