[MIR] python-oauth

Bug #408878 reported by Ken VanDine
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-oauth (Ubuntu)
Fix Released
High
James Westby

Bug Description

Changed in python-oauth (Ubuntu):
assignee: nobody → Ken VanDine (ken-vandine)
status: New → In Progress
Martin Pitt (pitti)
Changed in python-oauth (Ubuntu):
assignee: Ken VanDine (ken-vandine) → Loïc Minier (lool)
status: In Progress → New
summary: - Move to main
+ [MIR] python-oauth
Revision history for this message
Loïc Minier (lool) wrote :

Looks fine; just using python-central and not passing -i to dh_* but that's all ok.

Upstream code is fine.

Will just ping Kees in case he'd like to do a security review, but given the size of the code and the fact that it's in Python, I would guess probably not

Changed in python-oauth (Ubuntu):
status: New → In Progress
Revision history for this message
Loïc Minier (lool) wrote :

Ken, mind subscribing to the bug mail? Or sub the Ubuntu One devs perhaps?

Revision history for this message
James Westby (james-w) wrote : Re: [Bug 408878] Re: [MIR] python-oauth

Loïc Minier wrote:
> Looks fine; just using python-central and not passing -i to dh_* but
> that's all ok.
>
> Upstream code is fine.
>
> Will just ping Kees in case he'd like to do a security review, but given
> the size of the code and the fact that it's in Python, I would guess
> probably not

It is only an implementation of OAuth 1.0, not 1.0a, so it suffers from
a session fixation attack, which can be very serious, depending on the
application.

The API would have to change quite dramatically to support 1.0a though.

Thanks,

James

Revision history for this message
Loïc Minier (lool) wrote :

18:29 < lool> kees: Hey I'm happy to promote python-oauth unless you'd like to
          do a security review; it's relatively small and trivial python lib
          but it's parsing data from the net
          https://bugs.launchpad.net/bugs/408878
18:42 < james_w> lool, kees: python-oauth implement OAuth 1.0, not 1.0a, so is
          vulnerable to what can be a very serious session fixation attack
18:42 < james_w> it's not really a "full of buffer overflows" problem, but
          something to consider
18:43 < kees> james_w: sounds like a reason to reject it to me.
18:43 < kees> lool: what needs it?
18:44 < james_w> kees: Ubuntu One, the new python-launchpadlib
18:44 < james_w> (the old one embeds a copy :-/)

That's a really serious issue but I don't know whether Ubuntu One or launchpadlib are affected

Changed in python-oauth (Ubuntu):
status: In Progress → Incomplete
Revision history for this message
Loïc Minier (lool) wrote :

Ok since no further progress was made here in the last weeks, I'm dropping this MIR for now; please reopen when ready. Thanks!

Changed in python-oauth (Ubuntu):
status: Incomplete → Invalid
Revision history for this message
James Westby (james-w) wrote :
Revision history for this message
James Westby (james-w) wrote :

I've just uploaded a new package with a new SVN snapshot including that
change. This now allows servers to implement the fixed protocol, which is
a step above forcing them to implement the broken one. I think that would
make it suitable for main now (given that none of the users we have
implements a server in Ubuntu anyway).

Thanks,

James

Changed in python-oauth (Ubuntu):
status: Invalid → New
Revision history for this message
James Westby (james-w) wrote :

Setting to incomplete, after talking with dobey we may not want
this code in main. We'll discuss further and come up with a plan.

Thanks,

James

Changed in python-oauth (Ubuntu):
status: New → Incomplete
Martin Pitt (pitti)
Changed in python-oauth (Ubuntu):
assignee: Loïc Minier (lool) → James Westby (james-w)
Revision history for this message
Martin Pitt (pitti) wrote :

James' new python-launchpadlib upload also requires this library as a build dependency now.

Revision history for this message
James Westby (james-w) wrote :

<james_w> kees: geser has pointed out that as we already have two copies of oauth.py in main, does promoting it cause us a real issue, even if we may not want python-oauth in main by release in its current state
<kees> james_w: given the embeddedness, I think it makes sense to promote it as-is. we should re-address it in the future, though.
<james_w> thanks
<james_w> I will continue to track the issue so that we have one copy of oauth functionality with no known gaping holes in main by release

Promoting based on this.

Thanks,

James

Revision history for this message
Kees Cook (kees) wrote :

Yeah, +1, with the hopes of re-addressing the protocol version issues at a later time.

Changed in python-oauth (Ubuntu):
status: Incomplete → In Progress
importance: Undecided → High
James Westby (james-w)
Changed in python-oauth (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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