CVE-2004-1965 : Detail

CVE-2004-1965

0.27%V4
Network
2005-05-10
02h00 +00:00
2017-07-10
12h57 +00:00
Notifications for a CVE
Stay informed of any changes for a specific CVE.
Notifications manage

CVE Descriptions

Multiple cross-site scripting (XSS) vulnerabilities in Open Bulletin Board (OpenBB) 1.0.6 and earlier allows remote attackers to inject arbitrary web script or HTML via the (1) redirect parameter to member.php, (2) to parameter to myhome.php (3) TID parameter to post.php, or (4) redirect parameter to index.php.

CVE Informations

Metrics

Metrics Score Severity CVSS Vector Source
V2 4.3 AV:N/AC:M/Au:N/C:N/I:P/A:N nvd@nist.gov

EPSS

EPSS is a scoring model that predicts the likelihood of a vulnerability being exploited.

EPSS Score

The EPSS model produces a probability score between 0 and 1 (0 and 100%). The higher the score, the greater the probability that a vulnerability will be exploited.

EPSS Percentile

The percentile is used to rank CVE according to their EPSS score. For example, a CVE in the 95th percentile according to its EPSS score is more likely to be exploited than 95% of other CVE. Thus, the percentile is used to compare the EPSS score of a CVE with that of other CVE.

Exploit information

Exploit Database EDB-ID : 24055

Publication date : 2004-04-25 22h00 +00:00
Author : JeiAr
EDB Verified : Yes

source: https://www.securityfocus.com/bid/10214/info It has been reported that OpenBB is affected by multiple input validation vulnerabilities. These issues are due to a failure of the application to properly sanitize user supplied user input. The SQL issues may allow a remote attacker to manipulate query logic, potentially leading to unauthorized access to sensitive information such as the administrator password hash or corruption of database data. SQL injection attacks may also potentially be used to exploit latent vulnerabilities in the underlying database implementation. The cross-site scripting issues could permit a remote attacker to create a malicious URI link that includes hostile HTML and script code. If this link were followed, the hostile code may be rendered in the web browser of the victim user. This would occur in the security context of the affected web site and may allow for theft of cookie-based authentication credentials or other attacks. http://www.example.com/index.php?redirect=[XSS]
Exploit Database EDB-ID : 24052

Publication date : 2004-04-25 22h00 +00:00
Author : JeiAr
EDB Verified : Yes

source: https://www.securityfocus.com/bid/10214/info It has been reported that OpenBB is affected by multiple input validation vulnerabilities. These issues are due to a failure of the application to properly sanitize user supplied user input. The SQL issues may allow a remote attacker to manipulate query logic, potentially leading to unauthorized access to sensitive information such as the administrator password hash or corruption of database data. SQL injection attacks may also potentially be used to exploit latent vulnerabilities in the underlying database implementation. The cross-site scripting issues could permit a remote attacker to create a malicious URI link that includes hostile HTML and script code. If this link were followed, the hostile code may be rendered in the web browser of the victim user. This would occur in the security context of the affected web site and may allow for theft of cookie-based authentication credentials or other attacks. http://www.example.com/member.php?action=login&redirect=[XSS]
Exploit Database EDB-ID : 24053

Publication date : 2004-04-25 22h00 +00:00
Author : JeiAr
EDB Verified : Yes

source: https://www.securityfocus.com/bid/10214/info It has been reported that OpenBB is affected by multiple input validation vulnerabilities. These issues are due to a failure of the application to properly sanitize user supplied user input. The SQL issues may allow a remote attacker to manipulate query logic, potentially leading to unauthorized access to sensitive information such as the administrator password hash or corruption of database data. SQL injection attacks may also potentially be used to exploit latent vulnerabilities in the underlying database implementation. The cross-site scripting issues could permit a remote attacker to create a malicious URI link that includes hostile HTML and script code. If this link were followed, the hostile code may be rendered in the web browser of the victim user. This would occur in the security context of the affected web site and may allow for theft of cookie-based authentication credentials or other attacks. http://www.example.com/myhome.php?action=newmsg&to=blah[XSS]
Exploit Database EDB-ID : 24054

Publication date : 2004-04-25 22h00 +00:00
Author : JeiAr
EDB Verified : Yes

source: https://www.securityfocus.com/bid/10214/info It has been reported that OpenBB is affected by multiple input validation vulnerabilities. These issues are due to a failure of the application to properly sanitize user supplied user input. The SQL issues may allow a remote attacker to manipulate query logic, potentially leading to unauthorized access to sensitive information such as the administrator password hash or corruption of database data. SQL injection attacks may also potentially be used to exploit latent vulnerabilities in the underlying database implementation. The cross-site scripting issues could permit a remote attacker to create a malicious URI link that includes hostile HTML and script code. If this link were followed, the hostile code may be rendered in the web browser of the victim user. This would occur in the security context of the affected web site and may allow for theft of cookie-based authentication credentials or other attacks. http://www.example.com/post.php?action=mail&TID=1[XSS]
Exploit Database EDB-ID : 43811

Publication date : 2004-04-23 22h00 +00:00
Author : GulfTech Security
EDB Verified : No

OpenBB Multiple Vulnerabilities Vendor: OpenBB Group Product: OpenBB Version: <= 1.0.6 Website: http://www.openbb.com/ BID: 10214 CVE: CVE-2004-1965 OSVDB: 5649 5650 5651 5652 SECUNIA: 11481 PACKETSTORM: 33180 Description: OpenBB is a fast, lightweight, powerful bulletin board written in PHP/MySQL. Main features include: full customization via styles templates, instant messaging, private messaging, categories, member ranks, poll based threads, moderation, BB codes, thread notifications, Avatars, member lists, private forums and more. Cross Site Scripting Vulnerabilities: OpenBB is prone to Cross Site Scripting in multiple files. This may allow an attacker to run code in the context of a users browser, or used to harvest sensitive information from a user such as cookie information. Below are some examples of the XSS issues in OpenBB. /member.php?action=login&redirect=[XSS] /myhome.php?action=newmsg&to=blah[XSS] /post.php?action=mail&TID=1[XSS] /index.php?redirect=[XSS] SQL Injection Vulnerabilities: It may be possible for an attacker to execute arbitrary SQL queries due to user supplied input not being properly sanitized. Lets have a look at some code from one of the affected files .. post.php // Check to make sure they are not posting to a category $query_type = new query($SQL, "SELECT type FROM ".$prefix."forum_display WHERE forumid = $FID"); $query_type->getrow(); $ftype = $query_type->field('type'); As we can see from this code, the $FID variable seems to get passed directly to the query without being validated, thus allowing for an attacker to execute malicious queries. This is not the only vulnerable file though. Below are a list of similarly vulnerable files. /board.php?FID=1[SQL] /member.php?action=list&page=1&sortorder=[SQL] /member.php?action=list&page=1&sortorder=username&perpage=[SQL] /member.php?action=passwdsend&resetid=blah&id=2[SQL] /search.php?&sortby=dateline&sort=DESC&q=open&forums%5B[SQL]%5D /post.php?action=edit&page=1&PID=1[SQL] /post.php?action=post&FID=1[SQL] These files are prone to similar attacks because they allow input that has not been validated to be executed in the query. This can be used for example to pull users password hashes. Arbitrary Command Execution: This is really in my opinion at least, a very fundamental flaw. As stated in the HTTP/1.1 RFC (RFC 2616 Section 9.1.1 "Safe Methods") no GET request should be used to make any significant actions. This however would not be such a big deal if there was some sort of auth key or session id in place to verify the validity of actions, but there isn't. In short all an attacker has to do is send an admin a pm, or make a malicious post with the desired command and the action will silently execute. For example below are some example administrative actions that an attacker could include in an image tag or malicious link. /cp_forums.php?do=remove&id=1 /cp_usergroup.php?do=remove&UGID=1 /cp_ipbans.php?action=do_delip&ipid=1 This kind of attack can also be used to run user and moderator commands as seen below. These are only examples, not all the possibilities. /myhome.php?action=delmsg&box=inbox&id=all /post.php?action=edit&PID=1&send=1&delete=yes /moderator.php?action=announce&TID=1 OpenBB actually tries to prevent these kind of attacks by filtering out certain input as seen in /lib/codeparse.php but this does not work. Lets have a look at the code. case 'img': if(!preg_match('#^(http|https)://(.*?)\.(gif|jpg|jpeg|png)$#', $inside) ) $return = '[ invalid image ]'; else $return = '<img src="' .str_replace('"', '', $inside). '" alt="User-Posted Image (tm)" border="0" />'; break; All an attacker has to do in order to have the command executed successfully is make sure the url within the image tag ends with an allowed extension. This is not very safe at all because we can make up a variable, add a good extension and the code is still ran. For example /post.php?action=edit&PID=1&send=1&delete=yesI=blah.jpg As we can see from the above examples, this issue can be used by a malicious person to all but completely sabotage a site running OpenBB. In the past I have seen phpBB for example deal with the same issue of using unsafe GET requests by limiting the bbcode to only allow images with a valid extension. However this is a bad idea because it does not solve the problem at all, and to this day all phpBB versions are vulnerable to having arbitrary posts deleted and more just by visiting a malicious web page or link. It is a serious issue and should be treated as such. It greatly impacts the security of a web application. Even using the POST method without an auth key or the like is a bad idea in my opinion. Solution: Vendors were contacted many weeks ago and plan to release a fixed version soon. Check the OpenBB website for updates and official release details. Credits: James Bercegay of the GulfTech Security Research Team.

Products Mentioned

Configuraton 0

Openbb>>Openbb >> Version 1.0.0_beta1

    Openbb>>Openbb >> Version 1.0.0_rc1

      Openbb>>Openbb >> Version 1.0.0_rc2

        Openbb>>Openbb >> Version 1.0.0_rc3

          Openbb>>Openbb >> Version 1.0.5

            Openbb>>Openbb >> Version 1.0.6

            Openbb>>Openbb >> Version 1.0.8

              References

              http://www.securityfocus.com/bid/10214
              Tags : vdb-entry, x_refsource_BID
              http://marc.info/?l=bugtraq&m=108301983206107&w=2
              Tags : mailing-list, x_refsource_BUGTRAQ
              http://secunia.com/advisories/11481
              Tags : third-party-advisory, x_refsource_SECUNIA
              http://securitytracker.com/id?1009935
              Tags : vdb-entry, x_refsource_SECTRACK