CVE-2020–24723

Tale of Stored XSS Leads to admin account takeover

Mayur Parmar
Nov 17, 2020 · 2 min read

CVE:https://cve.mitre.org/cgi-bin/cvename.cgi?name=2020-24723

# Exploit Title: User Registration & Login and User Management System 2.1— Stored Cross-Site Scripting
# Date: 2020–11–18
# Exploit Author: Mayur Parmar(th3cyb3rc0p)
# Vendor Homepage: https://phpgurukul.com
# Software Link: https://phpgurukul.com/user-registration-login-and-user-management-system-with-admin-panel/
# Version: 2.1
# Tested on Pop OS(Linux)
# CVE: CVE-2020–24723

Stored Cross-site scripting(XSS):
Stored attacks are those where the injected script is permanently stored on the target servers,
such as in a database, in a message forum, visitor log, comment field, etc.
The victim then retrieves the malicious script from the server when it requests the stored information.
Stored XSS is also sometimes referred to as Persistent XSS.

Attack vector:
This vulnerability can result in an attacker to inject the XSS payload in the User Registration section and each time admin visits the manage user section from the admin panel,
the XSS triggers and the attacker can able to steal the cookie according to the crafted payload.

Vulnerable Parameters: Last Name
Steps to reproduce:
1. Goto registration page
2. fill in the details. & put <script>alert(“XSS”)</script> payload in First name,Last name
3. Now go to Admin Panel. we can see that our payload gets executed.

Image for post
Image for post

Author: Mayur Parmar(th3cyb3rc0p)

https://twitter.com/th3cyb3rc0p?lang=en

https://in.linkedin.com/in/th3cyb3rc0p

https://www.instagram.com/th3cyb3rc0p/?hl=en

https://twitter.com/cyberdefecers?lang=en

Sign up for Infosec Writeups

By InfoSec Write-ups

Newsletter from Infosec Writeups Take a look

By signing up, you will create a Medium account if you don’t already have one. Review our Privacy Policy for more information about our privacy practices.

Check your inbox
Medium sent you an email at to complete your subscription.

Mayur Parmar

Written by

I am a passionate information security researcher and CTF player who likes to learn more about hacking.

InfoSec Write-ups

A collection of write-ups from the best hackers in the world on topics ranging from bug bounties and CTFs to vulnhub machines, hardware challenges and real life encounters. In a nutshell, we are the largest InfoSec publication on Medium. Maintained by Hackrew

Mayur Parmar

Written by

I am a passionate information security researcher and CTF player who likes to learn more about hacking.

InfoSec Write-ups

A collection of write-ups from the best hackers in the world on topics ranging from bug bounties and CTFs to vulnhub machines, hardware challenges and real life encounters. In a nutshell, we are the largest InfoSec publication on Medium. Maintained by Hackrew

Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore

If you have a story to tell, knowledge to share, or a perspective to offer — welcome home. It’s easy and free to post your thinking on any topic. Write on Medium

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store