National Vulnerability Database

National Vulnerability Database

National Vulnerability
Database

CVE-2007-0347 Detail

Current Description

The is_eow function in format.c in CVSTrac before 2.0.1 does not properly check for the "'" (quote) character, which allows remote authenticated users to execute limited SQL injection attacks and cause a denial of service (database error) via a ' character in certain messages, tickets, or Wiki entries.

Source:  MITRE
View Analysis Description

Evaluator Description

The DoS vulnerability exists because the is_eow() function in "format.c" does NOT just check the FIRST character of the supplied string for an End-Of-Word terminating character, but instead iterates over string and this way can skip a single embedded quotation mark. The is_repository_file() function then in turn assumes that the filename string can never contain a single quotation mark and traps into a SQL escaping problem.

Impact

CVSS v2.0 Severity and Metrics:

Base Score: 4.3 MEDIUM
Vector: (AV:N/AC:M/Au:N/C:N/I:N/A:P) (V2 legend)
Impact Subscore: 2.9
Exploitability Subscore: 8.6


Access Vector (AV): Network
Access Complexity (AC): Medium
Authentication (AU): None
Confidentiality (C): None
Integrity (I): None
Availability (A): Partial
Additional Information:
Allows disruption of service

Evaluator Impact

An SQL injection via this technique is somewhat limited as is_eow() bails on whitespace. So while one _can_ do an SQL injection, one is limited to SQL queries containing only characters which get past the function isspace(3). This effectively limits attacks to SQL commands like "VACUUM".

Evaluator Solution

Successful remote unauthenticated exploit requires that CVSTrac is explicitly configured to allow anonymous users to add tickets (it is not by default).

References to Advisories, Solutions, and Tools

By selecting these links, you will be leaving NIST webspace. We have provided these links to other web sites because they may have information that would be of interest to you. No inferences should be drawn on account of other sites being referenced, or not, from this page. There may be other web sites that are more appropriate for your purpose. NIST does not necessarily endorse the views expressed, or concur with the facts presented on these sites. Further, NIST does not endorse any commercial products that may be mentioned on these sites. Please address comments about this page to nvd@nist.gov.

Hyperlink Resource
http://lists.grok.org.uk/pipermail/full-disclosure/2007-January/052058.html Patch Vendor Advisory
http://securityreason.com/securityalert/2192
http://www.cvstrac.org/cvstrac/chngview?cn=850 Patch Vendor Advisory
http://www.cvstrac.org/cvstrac/tktview?tn=683 Patch Vendor Advisory
http://www.openpkg.com/security/advisories/OpenPKG-SA-2007.008.html Vendor Advisory
http://www.securityfocus.com/archive/1/458455/100/0/threaded
http://www.securityfocus.com/bid/22296
http://www.vupen.com/english/advisories/2007/0398

Technical Details

Vulnerability Type (View All)

Known Affected Software Configurations Switch to CPE 2.2

Configuration 1 ( hide )
 cpe:2.3:a:cvstrac:cvstrac:1.1:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:cvstrac:cvstrac:1.1.1:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:cvstrac:cvstrac:1.1.2:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:cvstrac:cvstrac:1.1.3:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:cvstrac:cvstrac:1.1.4:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:cvstrac:cvstrac:*:*:*:*:*:*:*:*
     Show Matching CPE(s)
Up to (including)
2.0


Change History

2 change records found - show changes

Quick Info

CVE Dictionary Entry:
CVE-2007-0347
NVD Published Date:
01/29/2007
NVD Last Modified:
10/16/2018