Bugzilla – Bug 706630
VUL-0: CVE-2011-2524: libsoup: filesystem exposure flaw due to bad parsing of ".."
Last modified: 2021-08-11 09:35:28 UTC
A flaw in parsing of ".." sequences has been found in libsoup and has been reported via linux-distros [at] vs.openwall.org by RedHat. CVE-2011-2524 has been assigned. Original report and patch follows.
EMBARGOED CVE-2011-2524 libsoup: filesystem exposure flaw due to bad parsing of ".." It was reported that SoupServer from libsoup did not properly parse '..' in URLs passed to it. This could allow for some services that use SoupServer to expose unintended files (such as http://localhost/..%2f..%2f..%2fetc/passwd) when it is used to export part of the local filesystem. Reference: https://bugzilla.gnome.org/show_bug.cgi?id=653258
Created attachment 440770 [details] The patch from the mail ...
The SWAMPID for this issue is 42263. This issue was rated as moderate. Please submit fixed packages until 2011-08-02. When done, please reassign the bug to security-team@suse.de. Patchinfo will be handled by security team.
FWIW, the fix part of the patch (without the test) should apply to all libsoup versions, starting with 2.22.x. It's unclear to me at the moment if SLE9/SLE10 are affected.
Has 28-July-2011 been confirmed as CRD? (ie, can I start submitting fixes in OBS?)
Upstream released a new tarball with the fix, so I assume it's fine to push things. Submitted to SLE11-SP1: 13858 Submitted to openSUSE 11.3: 77412 Submitted to openSUSE 11.4: 77413 Submitted to openSUSE 11.1 Evergreen: 77410 Submitted to openSUSE 11.2 Evergreen: 77411 Scott: can you make sure it gets integrated in SP2? I'm still looking at SLE9 and SLE10.
I don't believe SLE9 and SLE10 are affected since the issue is caused by decoding "..%2f..%2f..%2f" late, and in the versions in libsoup there, the decoding is done at the very beginning. So there, it's like passing "../../../" directly.
*** Bug 709167 has been marked as a duplicate of this bug. ***
(In reply to comment #8) > Submitted to SLE11-SP1: 13858 > Scott: can you make sure it gets integrated in SP2? > We have not generally cut over from sp1:update:test yet and libsoup has not been individually branched for sp2 yet so the submission to sp1 should still flow into sp2. I will check that in B3 and make sure though.
Update released for: libsoup-2_4-1 Products: openSUSE 11.3 (debug, i586, x86_64) openSUSE 11.4 (debug, i586, x86_64)
released