PEAR::MDB2: Information disclosure
1.
Gentoo Linux Security Advisory
Version Information
| Advisory Reference |
GLSA 200712-05 / PEAR-MDB2 |
| Release Date |
December 09, 2007 |
| Latest Revision |
December 09, 2007: 01 |
| Impact |
normal |
| Exploitable |
remote |
| Package |
Vulnerable versions |
Unaffected versions |
Architecture(s) |
| dev-php/PEAR-MDB2 |
<
2.5.0_alpha1 |
>=
2.5.0_alpha1 |
All supported architectures
|
Related bugreports:
#198446
Synopsis
A vulnerability when handling database input in PEAR::MDB2 allows remote
attackers to obtain sensitive information.
2.
Impact Information
Background
PEAR::MDB2 is a database abstraction layer for PHP aimed to provide a
common API for all supported relational database management systems. A
LOB ("large object") is a database field holding binary data.
Description
priyadi discovered that the request to store a URL string as a LOB is
treated as a request to retrieve and store the contents of the URL.
Impact
If an application using PEAR::MDB2 allows input of LOB values via a web
form, remote attackers could use the application as an indirect proxy
or obtain sensitive information, including "file://" URLs local to the
web server.
3.
Resolution Information
Workaround
As a workaround, manually filter input before storing it as a LOB in
PEAR::MDB2.
Resolution
All PEAR::MDB2 users should upgrade to the latest version:
Code Listing 3.1: Resolution |
# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-php/PEAR-MDB2-2.5.0_alpha1"
|
4.
References
|