Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 519266 - (CVE-2008-7068) CVE-2008-7068 php: dba_replace() file corruption vulnerability
CVE-2008-7068 php: dba_replace() file corruption vulnerability
Status: CLOSED NOTABUG
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
low Severity low
: ---
: ---
Assigned To: Red Hat Product Security
http://web.nvd.nist.gov/view/vuln/det...
impact=low,source=cve,reported=200908...
: Security
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2009-08-25 17:07 EDT by Vincent Danen
Modified: 2009-08-27 04:02 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2009-08-25 17:42:15 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Vincent Danen 2009-08-25 17:07:56 EDT
Common Vulnerabilities and Exposures assigned an identifier CVE-2008-7068 to
the following vulnerability:

Name: CVE-2008-7068
URL: http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-7068
Assigned: 20090824
Reference: SREASONRES:20081127 PHP 5.2.6 dba_replace() destroying file
Reference: URL: http://securityreason.com/achievement_securityalert/58
Reference: BUGTRAQ:20081127 SecurityReason : PHP 5.2.6 dba_replace() destroying file
Reference: URL: http://www.securityfocus.com/archive/1/archive/1/498746/100/0/threaded
Reference: BUGTRAQ:20081206 Re: SecurityReason : PHP 5.2.6 dba_replace() destroying file
Reference: URL: http://www.securityfocus.com/archive/1/498981/100/0/threaded
Reference: BUGTRAQ:20081206 Re: SecurityReason : PHP 5.2.6 dba_replace() destroying file
Reference: URL: http://www.securityfocus.com/archive/1/498982/100/0/threaded
Reference: CONFIRM: http://cvs.php.net/viewvc.cgi/php-src/NEWS?r1=1.2027.2.547.2.1313&r2=1.2027.2.547.2.1314&
Reference: OSVDB:52206
Reference: URL: http://www.osvdb.org/52206
Reference: XF:php-dbareplace-file-corruption(47316)
Reference: URL: http://xforce.iss.net/xforce/xfdb/47316

The dba_replace function in PHP 5.2.6 and 4.x allows context-dependent
attackers to cause a denial of service (file truncation) via a key
with the NULL byte.  NOTE: this might only be a vulnerability in
limited circumstances in which the attacker can modify or add database
entries but does not have permissions to truncate the file.
Comment 1 Vincent Danen 2009-08-25 17:34:12 EDT
This is not a security issue.  A user with read and write access to a file can reasonably be expected to manipulate the contents of the file, including truncating it.  Instead of using dba_replace(), a user could simply fopen() the file in write mode and write an empty string to it, which provides the same end-result.
Comment 2 Vincent Danen 2009-08-25 17:45:19 EDT
For posterity, the patch to fix this issue is here: http://cvs.php.net/viewvc.cgi/php-src/ext/dba/libinifile/inifile.c?r1=1.14.2.1.2.4&r2=1.14.2.1.2.5&view=patch
Comment 3 Tomas Hoger 2009-08-27 04:02:22 EDT
Further discussion about the issue:
  http://thread.gmane.org/gmane.comp.security.oss.general/1438

Note You need to log in before you can comment on or make changes to this bug.