Lucene search
+L

CodeIgniter 2.1 - 'xss_clean()' Filter Security Bypass

🗓️ 19 Jul 2012 00:00:00Reported by Krzysztof KotowiczType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 54 Views

CodeIgniter 2.1 - 'xss_clean()' Filter Security Bypass. Vulnerability allows XSS attacks

Related
Code
ReporterTitlePublishedViews
Family
zdt
zdt
CodeIgniter 2.1.1 Cross Site Scripting Vulnerability
23 Jul 201200:00
zdt
circl
Circl
CVE-2012-1915
19 Jul 201200:00
circl
cve
CVE
CVE-2012-1915
9 Jan 202020:15
cve
cvelist
Cvelist
CVE-2012-1915
9 Jan 202020:15
cvelist
euvd
EUVD
EUVD-2012-1924
7 Oct 202500:30
euvd
nvd
NVD
CVE-2012-1915
9 Jan 202021:15
nvd
packetstorm
Packet Storm
CodeIgniter 2.1.1 Cross Site Scripting Bypass
20 Jul 201200:00
packetstorm
prion
Prion
Design/Logic Flaw
9 Jan 202021:15
prion
securityvulns
securityvulns
CodeIgniter <= 2.1.1 xss_clean() Cross Site Scripting filter bypass
3 Sep 201200:00
securityvulns
securityvulns
securityvulns
Web applications security vulnerabilities summary (PHP, ASP, JSP, CGI, Perl)
3 Sep 201200:00
securityvulns
source: https://www.securityfocus.com/bid/54620/info

CodeIgniter is prone to a security-bypass vulnerability.

An attacker can exploit this issue to bypass XSS filter protections and perform cross-site scripting attacks.

CodeIgniter versions prior to 2.1.2 are vulnerable.

Build an application on CodeIgniter 2.1.0:

// application/controllers/xssdemo.php
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Xssdemo extends CI_Controller {

        public function index() {
            $data['xss'] =
$this->security->xss_clean($this->input->post('xss'));
            $this->load->view('xssdemo', $data);
        }
}

// application/views/xssdemo.php
<form method=post>
                <textarea name=xss><?php echo htmlspecialchars($xss);
?>&lt;/textarea&gt;
                <input type=submit />
                </form>
        <p>XSS:
        <hr />
    <?php echo $xss ?>

Launch http://app-uri/index.php/xssdemo and try above vectors.

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

08 Jul 2015 00:00Current
6.2Medium risk
Vulners AI Score6.2
CVSS 24.3
CVSS 3.16.1
EPSS0.01863
54