U.S. flag   An official website of the United States government
Dot gov

Official websites use .gov
A .gov website belongs to an official government organization in the United States.

Https

Secure .gov websites use HTTPS
A lock (Dot gov) or https:// means you've safely connected to the .gov website. Share sensitive information only on official, secure websites.

CVE-2007-0347 Detail

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.


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.

Metrics

NVD enrichment efforts reference publicly available information to associate vector strings. CVSS information contributed by other sources is also displayed.
CVSS 4.0 Severity and Vector Strings:

NIST CVSS score
NIST: NVD
N/A
NVD assessment not yet provided.

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://lists.grok.org.uk/pipermail/full-disclosure/2007-January/052058.html Patch  Vendor Advisory 
http://osvdb.org/31935
http://osvdb.org/31935
http://secunia.com/advisories/23940
http://secunia.com/advisories/23940
http://securityreason.com/securityalert/2192
http://securityreason.com/securityalert/2192
http://www.cvstrac.org/cvstrac/chngview?cn=850 Patch  Vendor Advisory 
http://www.cvstrac.org/cvstrac/chngview?cn=850 Patch  Vendor Advisory 
http://www.cvstrac.org/cvstrac/tktview?tn=683 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.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/archive/1/458455/100/0/threaded
http://www.securityfocus.com/bid/22296
http://www.securityfocus.com/bid/22296
http://www.vupen.com/english/advisories/2007/0398
http://www.vupen.com/english/advisories/2007/0398

Weakness Enumeration

CWE-ID CWE Name Source
NVD-CWE-Other Other cwe source acceptance level NIST  

Known Affected Software Configurations Switch to CPE 2.2

CPEs loading, please wait.

Denotes Vulnerable Software
Are we missing a CPE here? Please let us know.

Change History

4 change records found show changes

Quick Info

CVE Dictionary Entry:
CVE-2007-0347
NVD Published Date:
01/29/2007
NVD Last Modified:
11/20/2024
Source:
MITRE