Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 950882 Details for
Bug 1157341
konversation: out-of-bounds read flaw
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
patch from upstream
patch.patch (text/plain), 1.59 KB, created by
Murray McAllister
on 2014-10-27 04:28:16 UTC
(
hide
)
Description:
patch from upstream
Filename:
MIME Type:
Creator:
Murray McAllister
Created:
2014-10-27 04:28:16 UTC
Size:
1.59 KB
patch
obsolete
>commit 1f55cee8b3d0956adc98834f7b5832e48e077ed7 >Author: Eike Hein <hein@kde.org> >Date: Fri Oct 24 13:57:54 2014 +0200 > > Do a bounds check on ECB blocks. > > Blindly assuming they're the expected 12 chars can lead to a crash > on malformed input. > > Original patch by Manuel Nickschas for Quassel, who incorporated > the original Konversation code into Quassel in 2009. > > Upstream: > https://github.com/quassel/quassel/commit/8b5ecd226f9208af3074b33d3b7cf5e14f55b138 > >diff --git a/src/cipher.cpp b/src/cipher.cpp >index 514e390..019b0ac 100644 >--- a/src/cipher.cpp >+++ b/src/cipher.cpp >@@ -353,8 +353,12 @@ namespace Konversation > } > else > { >+ // ECB Blowfish encodes in blocks of 12 chars, so anything else is malformed input >+ if ((temp.length() % 12) != 0) >+ return cipherText; >+ > temp = b64ToByte(temp); >- while((temp.length() % 8) != 0) temp.append('\0'); >+ while ((temp.length() % 8) != 0) temp.append('\0'); > } > > QCA::Direction dir = (direction) ? QCA::Encode : QCA::Decode; >@@ -362,11 +366,17 @@ namespace Konversation > QByteArray temp2 = cipher.update(QCA::MemoryRegion(temp)).toByteArray(); > temp2 += cipher.final().toByteArray(); > >- if(!cipher.ok()) >+ if (!cipher.ok()) > return cipherText; > >- if(direction) >+ if (direction) >+ { >+ // Sanity check >+ if ((temp2.length() % 8) != 0) >+ return cipherText; >+ > temp2 = byteToB64(temp2); >+ } > > return temp2; > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1157341
: 950882