Logo Auditing Presigned Url Scope Abuse

Auditing Presigned Url Scope Abuse

Tổ chức
UnboundCompute
auditing-presigned-url-scope-abuse

Kiểm tra URL ký sẵn của dịch vụ lưu trữ đối tượng để phát hiện phạm vi quyền rộng hơn yêu cầu: chữ ký bao phủ khóa, tiền tố hoặc bucket rộng hơn phạm vi người dùng được phép truy cập; thời hạn hiệu lực quá dài; phương thức hoặc loại nội dung không bị giới hạn; hoặc danh tính ký có quyền vượt quá quyền của bên gọi. Áp dụng cho URL GET và PUT ký sẵn của S3 và các dịch vụ tương thích, nơi chính sách đã ký là ranh giới bảo vệ duy nhất sau khi URL rời khỏi máy chủ, và kẻ tấn công có thể sửa khóa, dùng lại URL hoặc tải lên đối tượng khác để vượt khỏi phạm vi dự kiến. Dùng khi một dịch vụ tạo URL ký sẵn để máy khách đọc hoặc ghi trực tiếp vào bộ lưu trữ. Khóa hoặc dữ liệu đầu vào của chính sách chịu ảnh hưởng từ bên gọi là nguồn; lời gọi ký là đích; còn lỗi là phạm vi đã ký rộng hơn quyền của bên gọi.

Tổng quan

Nhà phát hànhUnboundCompute
Kho mãsecurity-agent-skills
Tên kỹ năngauditing-presigned-url-scope-abuse
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 Presigned Url Scope Abuse 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-presigned-url-scope-abuse
  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-presigned-url-scope-abuse .claude/skills/auditing-presigned-url-scope-abuse
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 Presigned Url Scope Abuse 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 Presigned Url Scope Abuse 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 Presigned Url Scope Abuse 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 presigned URL scope abuse: when the signature grants more than the request

A presigned URL turns a server-side permission into a standalone credential: once minted, it grants whatever the signature covers to anyone holding the URL, with no further authorization check at the store. That is convenient and precisely why it leaks. If the service signs a key the caller supplied without confirming the caller owns it, the URL reads or writes another user's object. If the signed policy leaves the key prefix, the HTTP method, the content type, or the expiry looser than the request needed, the holder does more than intended: reads a sibling object, overwrites a path they were only meant to read, or replays the URL long after it should have died. The signer's own identity matters too, because the URL inherits its permissions, not the caller's. You audit these by comparing the signed scope against the caller's actual entitlement.

When to use

  • A service mints presigned object-storage URLs so clients read or write a store directly.
  • The object key, prefix, bucket, or upload parameters in a presign request come from the caller.
  • Presigned URLs are returned to browsers or third parties where they can be inspected, edited, or replayed.

Scope check

Test presigned-URL handling only against storage and applications you own or are authorized to assess, on non-production data. A confirming request reads or writes real objects, so stay inside the authorized bucket and account and never touch another tenant's data outside an owned test fixture. If you can't name the authorization, stop.

The loop

  1. Establish the caller's real entitlement first. Before inspecting any signature, determine what object or prefix this authenticated caller is actually allowed to read or write. This is the false-positive killer: a presigned URL scoped exactly to what the caller owns is correct no matter how powerful presigning looks. Name the entitlement, then compare the signed scope to it.

  2. Trace caller input into the signed key and policy. Follow the key, prefix, bucket, method, and content-type from the request into the signing call. The critical question is whether the service confirms the caller owns the requested key before signing, or signs whatever key it is handed. A signer that trusts a caller-supplied key lets the caller name another user's object and receive a valid URL for it.

  3. Compare the signed scope to the entitlement. Read what the signature actually covers: is it pinned to one exact key, or does it permit a prefix or wildcard that reaches siblings? Is the method constrained to the one operation needed (GET for a read, PUT for an upload), or does it allow both? A URL that grants more keys, more methods, or a different bucket than the caller's entitlement is over-scoped.

  4. Check the expiry and the replay window. A presigned URL is valid for its whole lifetime to anyone holding it. An expiry measured in hours or days when the operation needs seconds turns a one-time action into a durable credential that survives in logs, browser history, and referrer headers. Confirm the expiry matches the operation's real need.

  5. Confirm the signer identity is least-privilege. The URL inherits the signing principal's permissions. If the service signs with a role that can read or write the whole bucket, every presigned URL is a potential whole-bucket credential regardless of the intended object. Determine whether the signer's own permissions are scoped to what presigned URLs should ever grant.

  6. Confirm and record. Confirm by requesting a presign for an object the caller does not own and showing the returned URL succeeds against it, or by editing a signed key or replaying an expired-in-intent URL within scope, without touching data outside an owned fixture. Kill the lead if the service verifies key ownership before signing, pins the signature to the exact key and method needed, sets an expiry matching the operation, and signs with a least-privilege identity. Record the input, the signing call, and the scope beyond entitlement.

Where presigned URL scope abuse leaks

  • A caller-supplied key signed without an ownership check is direct object access. The service becomes a signing oracle for any key the caller names.
  • A prefix or wildcard scope reaches siblings. Signing a prefix instead of the exact key lets the holder enumerate and fetch neighboring objects.
  • An unconstrained method turns a read grant into a write. A signature that permits PUT when the caller needed GET lets the holder overwrite the object.
  • An overlong expiry is a lingering credential. The URL keeps working from logs, history, and shared links long after the operation completed.
  • The URL carries the signer's power, not the caller's. A broadly permissioned signing role makes every URL as strong as that role over the covered scope.

Worked example (a confirm and a kill)

Confirm. An avatar-download endpoint signs a GET URL for a key taken from the request without checking the key belongs to the caller. Requesting a presign for another user's object key returns a valid URL that fetches that object. Confirmed presigned URL scope abuse to cross-user object read, high, remediation = verify the requested key resolves to an object the authenticated caller owns before signing, pin the signature to that exact key and to GET, and sign with a role scoped to the user-content prefix only.

Kill. The service resolves the object from the caller's own identity, never from a caller-supplied key, signs the exact resolved key for the single required method with a two-minute expiry, and signs with a role permitted only on the user-content prefix. A presign request naming another user's key is rejected before signing. Killed, kill_reason = "key derived from the caller's identity, signature pinned to the exact key and method with a short expiry, signer scoped to the user prefix; no URL grants beyond the caller's entitlement."

Rationalizations to reject

  • "The client only sends its own key." → The attacker is not using your client. Verify ownership of the requested key on the server before signing.
  • "The URL expires." → Confirm the expiry matches the operation's seconds-long need; an hours-long window is a durable credential in logs and history.
  • "It is just a read URL." → Check the signed method; a signature that also permits PUT is a write grant, and a prefix scope reaches other objects.
  • "Signing is internal." → The signed URL leaves your boundary the moment it is returned; its scope is the only remaining control.
  • "The signer role is our standard service role." → The URL inherits that role's power; a whole-bucket signer makes every URL a whole-bucket credential.

Executing this in practice

You need each presign endpoint, the caller's real entitlement, which of the key/prefix/bucket/method/ content-type come from the caller, what the signature actually covers, the expiry, and the signer identity's permissions. For each endpoint, compare the signed scope to the entitlement and confirm ownership is checked before signing. Reading the signing call shows the intended scope; requesting a URL for an unowned key shows whether the boundary holds.

Related

  • hunting-broken-object-level-authorization - the same missing ownership check, here expressed through a signed URL rather than a direct object reference.
  • auditing-s3-object-ownership-trust - the bucket-side companion: who owns and can read the objects a presigned URL points at.
  • hunting-non-human-identity-and-secret-reachability - the signer identity is a machine credential; its scope determines how much every presigned URL can grant.
  • adjudicating-taint-paths - use it to confirm a caller-supplied key reaches the signing call without an intervening ownership check.
  • FINDING-SCHEMA.md - source = the caller-influenced key or policy input, sink = the signing call, evidence = the signed scope beyond the caller's entitlement.

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

Kỹ năng AI Auditing Presigned Url Scope Abuse làm được gì?

Kiểm tra URL ký sẵn của dịch vụ lưu trữ đối tượng để phát hiện phạm vi quyền rộng hơn yêu cầu: chữ ký bao phủ khóa, tiền tố hoặc bucket rộng hơn phạm vi người dùng được phép truy cập; thời hạn hiệu lực quá dài; phương thức hoặc loại nội dung không bị giới hạn; hoặc danh tính ký có quyền vượt quá quyền của bên gọi. Áp dụng cho URL GET và PUT ký sẵn của S3 và các dịch vụ tương thích, nơi chính sách đã ký là ranh giới bảo vệ duy nhất sau khi URL rời khỏi máy chủ, và kẻ tấn công có thể sửa khóa, dùng lại URL hoặc tải lên đối tượng khác để vượt khỏi phạm vi dự kiến. Dùng khi một dịch vụ tạo URL...

Vì sao nên dùng Auditing Presigned Url Scope Abuse 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 Presigned Url Scope Abuse 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 Presigned Url Scope Abuse 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-presigned-url-scope-abuse. 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 Presigned Url Scope Abuse?

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 Presigned Url Scope Abuse 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 Presigned Url Scope Abuse 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 Presigned Url Scope Abuse 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 👇