Exploit database

GH-14fb583d3d1bd2da10251bb1a37b93d6

gitchw/ghostlock-cve-2026-43499

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2026-43499

170 sources

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

Repository files2

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

workspace/decomp/HeyRomUpdate/sources/com/heytap/wearable/romupdate/query/RequestInfo.java

Java · 6,360 bytes
package com.heytap.wearable.romupdate.query;

import android.content.Context;
import android.database.Cursor;
import com.google.gson.annotations.SerializedName;
import com.heytap.wearable.romupdate.RUSConstants;
import com.heytap.wearable.romupdate.utils.IdentifierManager;
import com.heytap.wearable.romupdate.utils.OppoLog;
import com.heytap.wearable.romupdate.utils.PropertiesUtils;
import java.util.ArrayList;

/* loaded from: classes.dex */
public class RequestInfo {
    private static final String TAG = "RequestInfo";

    @SerializedName("androidVersion")
    private String mAndroidVersion;

    @SerializedName("version")
    private String mAppVersion;

    @SerializedName("colorOSVersion")
    private String mColorOSVersion;

    @SerializedName("imei")
    private String mImei;

    @SerializedName("infos")
    private ArrayList<FilterInfo> mInfos = new ArrayList<>();

    @SerializedName("language")
    private String mLanguage;

    @SerializedName("mode")
    private String mMode;

    @SerializedName("operator")
    private String mOperator;

    @SerializedName("otaVersion")
    private String mOtaVersion;

    @SerializedName("productName")
    private String mProductName;

    @SerializedName("romVersion")
    private String mRomVersion;

    @SerializedName("time")
    private long mTime;

    @SerializedName("type")
    private String mType;

    public RequestInfo(Context context) {
        setRequestProperties(context);
    }

    private void setRequestProperties(Context context) {
        this.mAndroidVersion = PropertiesUtils.getAndroidVersion();
        this.mColorOSVersion = PropertiesUtils.getColorOSVersion();
        this.mImei = IdentifierManager.getGUID(context);
        setInfos(context);
        this.mLanguage = PropertiesUtils.getLanguage();
        this.mMode = PropertiesUtils.getMode();
        this.mOperator = "AAAA";
        this.mOtaVersion = PropertiesUtils.getOtaVersion();
        this.mProductName = PropertiesUtils.getProductName();
        this.mRomVersion = PropertiesUtils.getRomVersion();
        this.mTime = System.currentTimeMillis();
        this.mType = "0";
        this.mAppVersion = "3";
    }

    public String getAndroidVersion() {
        return this.mAndroidVersion;
    }

    public void setAndroidVersion(String str) {
        this.mAndroidVersion = str;
    }

    public String getColorOSVersion() {
        return this.mColorOSVersion;
    }

    public void setColorOSVersion(String str) {
        this.mColorOSVersion = str;
    }

    public String getImei() {
        return this.mImei;
    }

    public void setImei(String str) {
        this.mImei = str;
    }

    public ArrayList<FilterInfo> getInfos() {
        return this.mInfos;
    }

    public String getLanguage() {
        return this.mLanguage;
    }

    public void setLanguage(String str) {
        this.mLanguage = str;
    }

    public String getMode() {
        return this.mMode;
    }

    public void setMode(String str) {
        this.mMode = str;
    }

    public String getOperator() {
        return this.mOperator;
    }

    public void setOperator(String str) {
        this.mOperator = str;
    }

    public String getOtaVersion() {
        return this.mOtaVersion;
    }

    public void setOtaVersion(String str) {
        this.mOtaVersion = str;
    }

    public String getProductName() {
        return this.mProductName;
    }

    public void setProductName(String str) {
        this.mProductName = str;
    }

    public String getRomVersion() {
        return this.mRomVersion;
    }

    public void setRomVersion(String str) {
        this.mRomVersion = str;
    }

    public long getTime() {
        return this.mTime;
    }

    public void setTime(long j) {
        this.mTime = j;
    }

    public String getType() {
        return this.mType;
    }

    public void setType(String str) {
        this.mType = str;
    }

    public String getVersion() {
        return this.mAppVersion;
    }

    public void setVersion(String str) {
        this.mAppVersion = str;
    }

    private void setInfos(Context context) {
        Cursor cursor = null;
        try {
            try {
                cursor = context.getContentResolver().query(RUSConstants.UPDATE_URI, new String[]{"filterName", RUSConstants.DB.MD5}, null, null, null);
                while (cursor != null) {
                    if (!cursor.moveToNext()) {
                        break;
                    }
                    FilterInfo filterInfo = new FilterInfo();
                    filterInfo.setCode(cursor.getString(cursor.getColumnIndex("filterName")));
                    filterInfo.setMd5(cursor.getString(cursor.getColumnIndex(RUSConstants.DB.MD5)));
                    this.mInfos.add(filterInfo);
                }
                if (cursor == null) {
                    return;
                }
            } catch (Exception e) {
                OppoLog.e(TAG, "database error" + e);
                e.printStackTrace();
                if (cursor == null) {
                    return;
                }
            }
            cursor.close();
        } catch (Throwable th) {
            if (cursor != null) {
                cursor.close();
            }
            throw th;
        }
    }

    /* loaded from: classes.dex */
    public static class FilterInfo {

        @SerializedName("code")
        private String mCode;

        @SerializedName(RUSConstants.DB.MD5)
        private String mMd5;

        public void setCode(String str) {
            this.mCode = str;
        }

        public void setMd5(String str) {
            this.mMd5 = str;
        }

        public String getCode() {
            return this.mCode;
        }

        public String getMd5() {
            return this.mMd5;
        }
    }

    public void addToAvoidFindBugs() {
        OppoLog.i(TAG, "setRequestProperties mAndroidVersion: " + this.mAndroidVersion + ",mColorOSVersion: " + this.mColorOSVersion + ",mImei: " + IdentifierManager.hideGUID(this.mImei) + ",mLanguage: " + this.mLanguage + ",mMode: " + this.mMode + ",mOperator: " + this.mOperator + ",mOtaVersion: " + this.mOtaVersion + ",mProductName: " + this.mProductName + ",mRomVersion: " + this.mRomVersion + ",mTime: " + this.mTime + ",mType: " + this.mType + ",mAppVersion: " + this.mAppVersion);
    }
}