GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Unauthenticated LAN attacker can achieve arbitrary code execution on any SoloPi Android device via the unauthenticated control HTTP server and unsigned dynamic patch loader · Issue #226 · alipay/SoloPi Closed Labels bugSomething isn't working Descriptionversion: v0.12.0 SummarySoloPi starts an embedded NanoHTTPD server on every device it runs on, listening on TCP port 23342 (configurable, default 23342) on all network interfaces, with no authentication of any kind. This server exposes a generic "scheme" bridge that lets any caller invoke internal app actions by name, including a Details1. Unauthenticated control HTTP server, bound to all interfaces
public HttpServer(int port) { super(port); listeners = new ArrayList<>(); } ... @Override public Response serve(IHTTPSession session) { String url = session.getUri(); Map<String, String> requestParam = session.getParms(); if (Method.POST.equals(session.getMethod())) { ... } else { for (OnUrlRequestListener listener: listeners) { Response res = listener.onGet(url, requestParam); if (res != null) { return res; } } return NanoHTTPD.newFixedLengthResponse(Response.Status.OK, "text/html", FAIL_RESPONSE_NO_PROCESS); } } There is no session/token/credential check anywhere in this class. startHttpServerAtPort(SPService.getInt(SPService.KEY_CONTROL_PORT, 23342)); schemeListener = new SchemeHttpListener(); registerControlListener(schemeListener);
2. The
public static final String LISTEN_PATH = "/scheme/"; @Override public NanoHTTPD.Response onGet(String url, Map<String, String> params) { if (StringUtil.startWith(url, LISTEN_PATH)) { String realPath = url.substring(LISTEN_PATH.length()); return doSchemeJump(LauncherApplication.getInstance().getSchemeResolver(), realPath, params); } return null; }
case KEY_ADB_SERVER: case KEY_PATCH_URL: case KEY_PERFORMANCE_UPLOAD: LogUtil.i(TAG, "Update Config " + key + " to value " + value); SPService.putString(key, value); break; 3. The patch URL is fetched and installed automatically on every app launch
PatchRequest.updatePatchList(null);
public static void updatePatchList(final LoadPatchCallback callback) { String storedUrl = SPService.getString(SPService.KEY_PATCH_URL, "https://raw.githubusercontent.com/alipay/SoloPi/master/<abi>.json"); ... HttpUtil.get(realUrl, new HttpUtil.Callback<PatchResponse>(PatchResponse.class) { @Override public void onResponse(Call call, PatchResponse item) throws IOException { doUpgradePatch(item); ...
4. The only "integrity check" on the downloaded code is self-referential
String jar = patchDesc.getJar(); String jarMd5 = patchDesc.getJarMd5(); if (!StringUtil.isEmpty(jar)) { File jarFile = new File(outFolder, jar); if (!FileUtils.checkFileMd5(jarFile, jarMd5)) { throw new PatchProcessException("Jar File " + jarFile + "doesn't match its md5", outFolder); } Both the jar file and its declared MD5 ( 5. The loaded code executes automatically via the service-registration mechanism
// 最后再更新Patch中的Services信息 LauncherApplication.getInstance().registerPatchServices(patch);
PoC(available upon request) ImpactAny host that can route a single unauthenticated HTTP request to a SoloPi-running device's port 23342 (same Wi-Fi network, shared test-lab LAN, USB-tethered network, hostile access point, etc.) can obtain persistent arbitrary code execution inside the SoloPi app process the next time the device owner opens the app — which the app's own onboarding flow already prompts the user to do. Because SoloPi is a UI-automation and device-control tool, its process typically holds storage, Accessibility Service, and ADB-adjacent capabilities, so code execution here yields the ability to read/write app data, drive the Accessibility Service to interact with arbitrary other apps on the device (including whatever the device is used to test, which for an Ant Financial-authored QA tool plausibly includes financial/payment apps), capture the screen, and persist by re-registering itself as a Activity
MetadataMetadataAssigneesLabelsbugSomething isn't working TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |