Logo Auditing Mobile Backend And Firebase Exposure

Auditing Mobile Backend And Firebase Exposure

Tổ chức
UnboundCompute
auditing-mobile-backend-and-firebase-exposure

Kiểm tra backend mà ứng dụng di động kết nối để tìm lỗi phân quyền chỉ được thực hiện ở phía ứng dụng. Lỗi này xảy ra khi dịch vụ backend cho ứng dụng di động, kho dữ liệu được lưu trữ, bucket lưu trữ hoặc hàm đám mây tin ứng dụng tự kiểm soát quyền truy cập, khiến bất kỳ ứng dụng nào cũng có thể đọc hoặc ghi dữ liệu của người dùng khác, gọi thao tác đặc quyền hoặc truy cập bản ghi không được phép. Nguyên nhân có thể là quy tắc dịch vụ quá rộng, thao tác phân quyền dựa trên giá trị do ứng dụng gửi lên hoặc backend cho rằng chỉ ứng dụng chính thức mới gọi đến. Dùng khi ứng dụng di động sử dụng backend hoặc kho dữ liệu được lưu trữ mà bạn có thể trực tiếp kiểm tra quy tắc truy cập và thao tác. Bao gồm quy tắc kho dữ liệu quá rộng, quyền đọc và ghi không cần xác thực hoặc vượt quá phạm vi, bucket lưu trữ bị lộ và hàm đám mây tin tưởng ứng dụng khách. Yêu cầu trực tiếp từ ứng dụng khách bỏ qua ứng dụng là nguồn; quy tắc backend hoặc thao tác xử lý yêu cầu đó là đích; lỗi nằm ở việc truy cập dữ liệu hoặc thực hiện hành động mà người dùng không được phép.

Tổng quan

Nhà phát hànhUnboundCompute
Kho mãsecurity-agent-skills
Tên kỹ năngauditing-mobile-backend-and-firebase-exposure
Sao
27
Bản fork
8
Tệp đi kèm
Chỉ có hướng dẫn
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • Hướng dẫn có đủ mọi thứ cần thiết

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được UnboundCompute công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Auditing Mobile Backend And Firebase Exposure trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-mobile-backend-and-firebase-exposure
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/UnboundCompute/security-agent-skills.git /tmp/security-agent-skills
mkdir -p .claude/skills
cp -r /tmp/security-agent-skills/skills/auditing-mobile-backend-and-firebase-exposure .claude/skills/auditing-mobile-backend-and-firebase-exposure
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Auditing Mobile Backend And Firebase Exposure trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Auditing Mobile Backend And Firebase Exposure ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Auditing Mobile Backend And Firebase Exposure với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Auditing mobile backend and Firebase exposure: when the server trusts the app to say no

A mobile app usually talks to a hosted backend, a mobile-backend service, a cloud datastore, a storage bucket, or a set of cloud functions, and it is easy to build that backend as though the app were the only client. The app checks what the user may see and calls the backend accordingly, so the backend rules are left permissive because the app is trusted to enforce access. But the app is not the only client: anyone can take the app's credentials and endpoints and call the backend directly, skipping every check the app performs. When the backend authorizes by rules that are too broad, by values the client sets, or by the assumption that only the genuine app calls it, a direct request reads or writes another user's data, invokes a privileged operation, or reaches records the user should never see. The bug is authorization that lives in the client while the backend serves whoever asks. You audit these by calling the backend directly and checking whether the server, not the app, enforces access.

When to use

  • A mobile app uses a hosted backend, datastore, storage bucket, or cloud functions you can call directly.
  • The backend's access rules or operations may authorize by client-set values or assume only the app calls.
  • Datastore rules or storage permissions may be permissive enough to serve another user's data.

Scope check

Audit backend exposure only on services you own or are authorized to assess, on non-production or test projects with test accounts, reading and writing only your own test data when you exercise a rule directly. A confirmed gap reaches other users' data or privileged actions, so keep every probe within scope and prefer an isolated project. If you can't name the authorization, stop.

The loop

  1. Establish whether the backend enforces authorization itself or trusts the app first. For each backend operation and datastore path, determine whether the server authorizes the request against the authenticated caller and its own rules, or whether it relies on the app to have checked and serves any direct request. This is the false-positive killer: a backend whose rules restrict every read and write to the entitled caller cannot be bypassed by calling it directly, whatever the app does. Name where authorization is enforced before crafting a direct request.

  2. Enumerate the backend surface. List the datastore paths, storage locations, and cloud functions the app uses, with the credentials and endpoints it presents. These, recovered from the app or its traffic, are what a direct client will use to call the backend without the app.

  3. Check the datastore and storage rules. Determine whether the datastore rules and storage permissions restrict each read and write to the entitled caller, or are permissive, world-readable paths, writes not scoped to the owner, or a bucket that lists or serves objects to any client. A permissive rule serves data directly.

  4. Check the operation authorization. Determine whether each cloud function or backend operation authorizes by the authenticated caller and server-side state, or by values the client supplies, an identifier, a role, or an amount the client sets, so a direct caller sets them freely and reaches a privileged action.

  5. Check the only-the-app assumption. Determine whether any part of the backend assumes the request comes from the genuine app, treating the app's credential or a client-set marker as authorization, when any client presenting the same values is served identically.

  6. Confirm and record. Confirm by calling the backend directly, without the app, and reading or writing test data, or invoking a privileged operation, that the caller should not be entitled to, on an isolated project with test accounts. Kill the lead if the backend authorizes every read, write, and operation against the authenticated caller and its own rules, and if no operation trusts client-set authorization or the app's mere presence. Record the operation or path, the permissive rule or trusted value, and the direct access observed, or set a kill_reason.

Where backend exposure leaks

  • Server-side enforcement is the finding. A backend that authorizes each request itself is safe from a direct caller; the bug is authorization left in the app while the server serves whoever asks. Name where the check is missing.
  • Permissive datastore rules serve data directly. A world-readable path or a write not scoped to the owner lets any client read or alter another user's records without the app.
  • Storage buckets list and serve to anyone. A bucket that lists objects or serves them to any client exposes files the app would have gated, reachable by a direct request.
  • Client-set values are not authorization. An operation that authorizes by an identifier, role, or amount the client supplies is driven by a direct caller who sets those values freely.
  • The only-the-app assumption is false. Any client can present the app's credential and endpoints, so treating the app's presence as authorization serves every direct caller identically.

Worked example (a confirm and a kill)

Confirm. A cloud datastore path holding user records is readable by any authenticated client because the rule checks only that the caller is signed in, not that the record belongs to them. Calling the backend directly with a test account reads another test user's records without the app, on an isolated project. Confirmed broken authorization exposing other users' data through a permissive datastore rule, high, remediation = restrict each read and write to the record's owner in the server-side rules, authorize every operation against the authenticated caller, and never rely on the app to enforce access.

Kill. The same datastore restricts each path to the owning caller in its server-side rules, storage objects are served only to their owner, and every cloud function authorizes by the authenticated caller and server-side state rather than client-set values. A direct request with a test account reaches only that account's own data. Killed, kill_reason = "the backend rules restrict every read, write, and operation to the entitled caller server-side; a direct request reaches nothing the caller is not entitled to."

Rationalizations to reject

  • "Only our app calls the backend." -> Anyone can extract the app's credentials and endpoints and call the backend directly; the app is not the only client, so the server must enforce access.
  • "The user is authenticated." -> Authentication is not authorization; confirm the rule checks the caller is entitled to the specific record or operation, not merely signed in.
  • "The rules are the defaults." -> Default rules are frequently permissive; read the actual rules and test a direct read and write, since defaults are exactly what this audit catches.
  • "The client sends its user id." -> A direct caller sets any user id it likes; authorize by the authenticated identity the server establishes, not by a client-supplied value.
  • "The bucket is not linked anywhere." -> An unlinked bucket that lists or serves objects to any client is still reachable by a direct request; confirm the permissions, not the obscurity.

Executing this in practice

You need the backend surface the app uses, datastore paths, storage locations, and cloud functions, with its credentials and endpoints, and the server-side rule or authorization for each. For each, call the backend directly with a test account and decide whether it authorizes against the caller or serves the request on client trust. Reading the rules settles some leads; calling the backend directly and reading or writing test data the caller should not reach, on an isolated project, settles the rest.

Related

  • hunting-broken-object-level-authorization - the general direct-object authorization flaw, of which a permissive mobile-backend rule is the hosted-datastore case.
  • hunting-hybrid-app-bundle-and-config-exposure - the backend keys and endpoints a direct caller uses are recovered from the bundle that skill unpacks, feeding this audit.
  • auditing-datastore-exposure-and-abuse - the broader datastore exposure audit, sharing the permissive-rule and direct-access reasoning with this mobile-backend case.
  • hunting-mobile-tls-pinning-and-trust-gaps - the backend credentials and endpoints are also recoverable from traffic when transport trust fails, the gap that skill covers.
  • FINDING-SCHEMA.md - source = the direct client request bypassing the app, sink = the backend rule or operation serving it, evidence = reaching test data or an action the caller is not entitled to by calling the backend directly on an isolated project.

Câu hỏi thường gặp

Kỹ năng AI Auditing Mobile Backend And Firebase Exposure làm được gì?

Kiểm tra backend mà ứng dụng di động kết nối để tìm lỗi phân quyền chỉ được thực hiện ở phía ứng dụng. Lỗi này xảy ra khi dịch vụ backend cho ứng dụng di động, kho dữ liệu được lưu trữ, bucket lưu trữ hoặc hàm đám mây tin ứng dụng tự kiểm soát quyền truy cập, khiến bất kỳ ứng dụng nào cũng có thể đọc hoặc ghi dữ liệu của người dùng khác, gọi thao tác đặc quyền hoặc truy cập bản ghi không được phép. Nguyên nhân có thể là quy tắc dịch vụ quá rộng, thao tác phân quyền dựa trên giá trị do ứng dụng gửi lên hoặc backend cho rằng chỉ ứng dụng chính thức mới gọi đến. Dùng khi ứng dụng di động sử dụ...

Vì sao nên dùng Auditing Mobile Backend And Firebase Exposure trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Auditing Mobile Backend And Firebase Exposure là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Auditing Mobile Backend And Firebase Exposure trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-mobile-backend-and-firebase-exposure. TypingMind đọc tệp SKILL.md rồi cài đặt kỹ năng để bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Auditing Mobile Backend And Firebase Exposure?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Auditing Mobile Backend And Firebase Exposure với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Auditing Mobile Backend And Firebase Exposure với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Auditing Mobile Backend And Firebase Exposure có miễn phí không?

Có. Kỹ năng này được UnboundCompute phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇