[ISN] Two Open-Source Databases Spring Security Leaks
InfoSec News
isn at c4i.org
Fri May 21 10:55:08 EDT 2004
http://www.eweek.com/article2/0,1759,1596274,00.asp
By Lisa Vaas
May 20, 2004
Critical flaws have been found in two open-source database
applications: Concurrent Versions System (CVS), a popular open-source
database application within which many developers store code, and
Subversion, which was built to be a compelling replacement for CVS in
the open-source community.
Stefan Esser, the security researcher who discovered the flaws,
released advisories Wednesday recommending that the applications be
updated immediately. Esser is the chief security and technology
officer at e-Matters, a German technology company.
The first flaw pertains to CVS releases up to 1.11.15 and CVS feature
releases up to 1.12.7. Both contain a flaw that occurs when deciding
whether a CVS entry line should get a flag reading modified or
unchanged.
When remote users send entry lines to the server, an additional byte
is allocated so as to have ample space for later flagging of the
entry. Users are then allowed to insert "M" or "=" characters into the
middle of strings, which would result in what's called a heap
overflow. The flaw could allow a remote attacker to execute arbitrary
code on the CVS server.
According to Esser's advisory, CVS developers were notified of the
flaw earlier this month. Derek Robert Price replied that the flaw had
already been fixed.
The CVS Project posted two updates Wednesday, CVS Version 1.11.16 and
CVS Feature Version 1.12.8.
According to the disclosure timeline in Esser's advisory, important
code repositories were notified before the flaws were made public
Wednesday.
The second flaw, in Subversionwhich is released under an
Apache/BSD-style open-source licenseis easy to exploit, according to
Esser's advisory.
"Exploiting this vulnerability on not heavily protected servers is
trivial even for beginners," Esser wrote. "Even ProPolice users aren't
safe because overwriting function arguments allows some fancy
exploits."
(ProPolice was developed by IBM and protects against "stack-smashing"
attacks, a common way to break program security.)
Subversion versions up to 1.0.2 are vulnerable to the flaw, which is a
date-parsing vulnerability that can be exploited to allow remote code
execution on Subversion servers and thereby compromise repositories.
The flaw resides in an unsafe call to sscanf() in a Subversion
date-parsing function. When Subversion attempts to convert a string
into an apr_time_t, it falls back to sscanf() to decode old-styled
date strings, according to Esser's advisory. That function is exposed
to external attack through a DAV2 REPORT query or a get-dated-rev
svn-protocol command.
The first way is "somewhat harder" to exploit, Esser wrote, whereas
the second is a standard stack overflow with the exception that white
space and the "\0" character are forbidden.
Linux and BSD distributions have released advisories, as well as the
Debian Projectthe association that created the open-source Debian
GNU/Linux operating system. Read Debian's security alert here.
More information about the ISN
mailing list