summaryrefslogtreecommitdiff
blob: dfe3c05f448359947877ddaf518a7da1f826c7a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE glsa SYSTEM "http://www.gentoo.org/dtd/glsa.dtd">
<glsa id="200412-14">
  <title>PHP: Multiple vulnerabilities</title>
  <synopsis>
    Several vulnerabilities were found and fixed in PHP, ranging from an
    information leak and a safe_mode restriction bypass to a potential remote
    execution of arbitrary code.
  </synopsis>
  <product type="ebuild">PHP</product>
  <announced>2004-12-19</announced>
  <revised count="02">2006-05-22</revised>
  <bug>74547</bug>
  <access>remote</access>
  <affected>
    <package name="dev-php/php" auto="yes" arch="*">
      <unaffected range="ge">4.3.10</unaffected>
      <vulnerable range="lt">4.3.10</vulnerable>
    </package>
    <package name="dev-php/mod_php" auto="yes" arch="*">
      <unaffected range="ge">4.3.10</unaffected>
      <vulnerable range="lt">4.3.10</vulnerable>
    </package>
    <package name="dev-php/php-cgi" auto="yes" arch="*">
      <unaffected range="ge">4.3.10</unaffected>
      <vulnerable range="lt">4.3.10</vulnerable>
    </package>
  </affected>
  <background>
    <p>
    PHP is a general-purpose scripting language widely used to develop
    web-based applications. It can run inside a web server using the
    mod_php module or the CGI version of PHP, or can run stand-alone in a
    CLI.
    </p>
  </background>
  <description>
    <p>
    Stefan Esser and Marcus Boerger reported several different issues in
    the unserialize() function, including serious exploitable bugs in the
    way it handles negative references (CAN-2004-1019).
    </p>
    <p>
    Stefan Esser also discovered that the pack() and unpack() functions are
    subject to integer overflows that can lead to a heap buffer overflow
    and a heap information leak. Finally, he found that the way
    multithreaded PHP handles safe_mode_exec_dir restrictions can be
    bypassed, and that various path truncation issues also allow to bypass
    path and safe_mode restrictions.
    </p>
    <p>
    Ilia Alshanetsky found a stack overflow issue in the exif_read_data()
    function (CAN-2004-1065). Finally, Daniel Fabian found that addslashes
    and magic_quotes_gpc do not properly escape null characters and that
    magic_quotes_gpc contains a bug that could lead to one level directory
    traversal.
    </p>
  </description>
  <impact type="high">
    <p>
    These issues could be exploited by a remote attacker to retrieve web
    server heap information, bypass safe_mode or path restrictions and
    potentially execute arbitrary code with the rights of the web server
    running a PHP application.
    </p>
  </impact>
  <workaround>
    <p>
    There is no known workaround at this time.
    </p>
  </workaround>
  <resolution>
    <p>
    All PHP users should upgrade to the latest version:
    </p>
    <code>
    # emerge --sync
    # emerge --ask --oneshot --verbose "&gt;=dev-php/php-4.3.10"</code>
    <p>
    All mod_php users should upgrade to the latest version:
    </p>
    <code>
    # emerge --sync
    # emerge --ask --oneshot --verbose "&gt;=dev-php/mod_php-4.3.10"</code>
    <p>
    All php-cgi users should upgrade to the latest version:
    </p>
    <code>
    # emerge --sync
    # emerge --ask --oneshot --verbose "&gt;=dev-php/php-cgi-4.3.10"</code>
  </resolution>
  <references>
    <uri link="https://www.php.net/release_4_3_10.php">PHP 4.3.10 Release Announcement</uri>
    <uri link="https://www.hardened-php.net/advisories/012004.txt">Hardened-PHP Security Advisory</uri>
    <uri link="http://www.securityfocus.com/archive/1/384663/2004-12-15/2004-12-21/0">SEC Consult Advisory</uri>
    <uri link="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2004-1019">CAN-2004-1019</uri>
    <uri link="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2004-1020">CAN-2004-1020</uri>
    <uri link="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2004-1063">CVE-2004-1063</uri>
    <uri link="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2004-1064">CVE-2004-1064</uri>
    <uri link="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2004-1065">CVE-2004-1065</uri>
  </references>
  <metadata tag="requester" timestamp="2004-12-16T10:35:06Z">
    jaervosz
  </metadata>
  <metadata tag="submitter" timestamp="2004-12-16T11:09:01Z">
    Koon
  </metadata>
  <metadata tag="bugReady" timestamp="2004-12-18T14:09:43Z">
    koon
  </metadata>
</glsa>