Exploit database

GH-4dc2ea66f5461a87c81c9db9a3ee0c27

wnduddld0513/lenovo-qcom-rpmb-poc

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2026-24090

1 source

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.

Repository files22

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

src/LenovoQcomRPMBTool/Core/CapabilityChecker.cs

C# · 2,388 bytes
namespace LenovoQcomRPMBTool.Core;

/// <summary>
/// Runtime capability checks. No model-name or firmware-version allowlist.
/// Every missing capability fails closed with a diagnostic message.
/// </summary>
public sealed record CapabilityResult(bool Ok, IReadOnlyList<string> Missing);

public static class CapabilityChecker
{
    public static CapabilityResult Check(string appRoot, Profile profile)
    {
        var missing = new List<string>();
        string R(string rel) => profile.Resolve(appRoot, rel);
        if (!File.Exists(Path.Combine(R(profile.Assets.EdlClientDir), "edl.py")))
            missing.Add($"EDL client not found at '{profile.Assets.EdlClientDir}' (expected edl.py tree).");
        var discovery = DeviceAssetCatalog.Discover(appRoot);
        if (discovery.Packages.Count == 0)
        {
            string detail = discovery.Rejected.Count > 0 ? " (" + string.Join("; ", discovery.Rejected) + ")" : "";
            missing.Add(DeviceAssetCatalog.NoValidPackageMessage + detail);
        }
        if (!File.Exists(R(profile.Assets.ProbeBinary)))
            missing.Add($"Probe binary not found at '{profile.Assets.ProbeBinary}'.");
        if (!File.Exists(R(profile.Assets.QseecomModule)))
            missing.Add($"QSEECom module not found at '{profile.Assets.QseecomModule}'.");
        string adb = Path.Combine(R(profile.Assets.PlatformToolsDir), "adb.exe");
        if (!File.Exists(adb)) missing.Add($"adb not found at '{profile.Assets.PlatformToolsDir}/adb.exe' (offline copy required).");
        string driverDir = R(profile.Assets.WinUsbDriverDir);
        if (!Directory.Exists(driverDir) ||
            Directory.GetFiles(driverDir, "*.inf").Length != 1 ||
            Directory.GetFiles(driverDir, "*.cat").Length != 1 ||
            !File.Exists(Path.Combine(driverDir, "libwdi-signer.cer")))
            missing.Add($"Complete CLI WinUSB driver package not found at '{profile.Assets.WinUsbDriverDir}'.");
        if (DependencyManager.FindSystemPython() == null)
            missing.Add($"Python 3.12 x64 was not found. Download it from {DependencyManager.DownloadUrl}");
        if (DependencyManager.NeedsDependencyInstall(appRoot, profile))
            missing.Add($"Bundled edlclient dependencies are not installed at '{profile.Assets.PythonPackagesDir}'.");
        return new CapabilityResult(missing.Count == 0, missing);
    }
}