Online Forum dispbbs. php Page SQL Injection Vulnerability

Source: Internet
Author: User
Affected System: dynamic network forum Dvbbsphp2.0 ++ Description: DVBBS is an open source ASPWeb Forum program developed and maintained by Aspsky. Net. In the dispbbs. php file of DVBBS: if ($ board_settings [55]! 0 $ TopicInfo [locktopic] 0 dateDiff (d, $ TopicInfo [dateandtime], TIME_NOW)

Affected Systems:
Mobile NetworkBbs'Target = '_ blank'>ForumDvbbsPhp2.0 +
Description:
DVBBS is an open source ASP Web forum program developed and maintained by Aspsky. Net.

In the dispbbs. php file of DVBBS:

If ($ board _SetCounter [55]! = 0 & $ TopicInfo ['locktopic '] = 0 &&DateDiff ('D', $ TopicInfo ['dateandTime'], TIME_NOW)> $ board_settings [55]) {// 85th rows
$ TopicInfo ['locktopic '] = 1;
$ SetStmt = ', locktopic = 1 ';
}
$ Db-> query ("UPDATE {$ dv} topic SET hits = (case when hits is null then 1 ELSE hits + 1 END) {$ setStmt} WHERE topicId= {$ AnnouNcEID }");

When the if statement is not true, $ setStmt is not assigned a value and $ setStmt is not initialized, resulting in an SQL injection vulnerability.

<* Source: SEBUG
Test method:

Http://www.xiaoweio.cn/dispbbs.php? Boardid = 2 & id = 1 & page = 1 & setStmt =, title = (select % 20 password % 20 from % 20dv_admin)

Suggestion:
Temporary solution:

* Initialization variable $ setStmt

Vendor patch:

Mobile Network Forum
--------
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://www.dvbbs.net/

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.