Skip to content
IDOR Disclosed report Intermediate

Improper Access Control in `fizzy.do` import flow allows cross-tenant ActionText reference resolution and data disclosure

The account import flow converts attacker-supplied global IDs in ActionText HTML into signed global IDs without checking that the referenced record belongs to the importing account. An attacker can therefore create rich text in their own account that references another tenant's attachment, causing that victim data to be resolved and rendered in the attacker's context.

xavlimsg Follow

Originally disclosed on HackerOne

  • Triaged in 48 hours
  • Fixed in 9 days
  • Paid in 9 days
  • Disclosed after 2 months

Description

The account import flow processes ActionText attachment HTML from user-uploaded ZIP content.

In app/models/account/data_transfer/action_text_rich_text_record_set.rb, import-time method convert_gids_to_sgids converts attacker-controlled gid values into persisted sgid values by resolving the target record globally:

  • app/models/account/data_transfer/action_text_rich_text_record_set.rb:83
  • app/models/account/data_transfer/action_text_rich_text_record_set.rb:87
  • app/models/account/data_transfer/action_text_rich_text_record_set.rb:88
  • app/models/account/data_transfer/action_text_rich_text_record_set.rb:89

The import path has no tenant ownership check before minting the signed reference.

Reachable import path from normal upload flow:

  • app/controllers/account/imports_controller.rb:38
  • app/models/account/import.rb:37
  • app/models/account/import.rb:39

For comparison, export path has an account check (record&.account_id == account.id) in the same file at app/models/account/data_transfer/action_text_rich_text_record_set.rb:69.

Reproduction Path A (Fastest for triage, deterministic)

This path is self-contained and exercises the real vulnerable import code path (import_batch) without requiring full web flow setup.

Prerequisites

  • Ruby and Bundler installed
  • Repo cloned

Steps

  1. Enter repo:
Bash
cd /path/to/fizzy
  1. Install/check dependencies:
Bash
bundle check || bundle install
  1. Run standalone integration PoC:
Bash
bundle exec ruby security-poc/integration_test_standalone.rb
  1. Expected success signals in output:
  • RESULT: IMPACT_CONFIRMED=true
  • imported.account_id = <attacker_account_id>
  • resolved_account_id = <victim_account_id> (different tenant)
  • attachable_text = @alice_secret

Why this is valid

This script loads and executes the real vulnerable file:

  • app/models/account/data_transfer/action_text_rich_text_record_set.rb

And runs:

  • Account::DataTransfer::ActionTextRichTextRecordSet#import_batch

So the exploit condition is validated directly against production logic.

Reproduction Path B (Full product-equivalent import flow)

This path uses the Rails environment and import conversion path end-to-end.

Steps

  1. Enter repo:
Bash
cd /path/to/fizzy
  1. Install/check dependencies:
Bash
bundle check || bundle install
  1. Run full import impact demo:
Bash
DISABLE_BOOTSNAP=1 RAILS_ENV=development \
bundle exec rails runner security-poc/demo_import_cross_account_impact.rb
  1. Expected success signals:
  • cross_account_reference=true
  • IMPACT_CONFIRMED=true
  • imported_rich_text_account_id=<attacker_account_id>
  • resolved_account_id=<victim_account_id>
  • leaked_attachable_text=@alice

Note

In slower environments, Rails boot may take a few minutes before script output appears.

Evidence from local execution

Observed in local runs:

  • Path A (integration_test_standalone.rb): RESULT: IMPACT_CONFIRMED=true
  • Path B (demo_import_cross_account_impact.rb): IMPACT_CONFIRMED=true

Both runs showed attacker-owned imported rich text resolving a victim-owned attachable record.

Supporting files

  • security-poc/integration_test_standalone.rb
  • security-poc/demo_import_cross_account_impact.rb
  • security-poc/patch_action_text_gid.py

Suggested remediation

In convert_gids_to_sgids, only mint sgid when resolved record belongs to importing account:

  • Resolve record safely (handle not found)
  • Require record.respond_to?(:account_id) && record.account_id == account.id
  • Drop or ignore cross-account references

Impact

Impact

  • Cross-tenant unauthorized data reference in imported rich text.
  • Victim-account attachable data is resolved/rendered in attacker-account context.
  • Persisted unauthorized reference (sgid) remains stored until removed.

The original report as published on HackerOne, by xavlimsg. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the import-time conversion of global IDs to signed global IDs resolves records globally without verifying that the resolved record's account matches the importing account.

Impact

An attacker could cause another tenant's attachment data to be resolved and rendered inside their own imported rich text, and the unauthorised signed reference persists until removed.

What the attacker needed

Ruby and Bundler installed; Repository cloned

The fix

The conversion should only mint a signed global ID when the resolved record responds to an account identifier and that identifier equals the importing account's ID, dropping any cross-account references.

How it was found

  1. Enter the repository directory.
  2. Check or install Ruby dependencies with Bundler.
  3. Run the standalone integration proof-of-concept script.
  4. Observe that the imported rich text belongs to the attacker account while the resolved record belongs to a different victim account.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

When you import an account, the app reads HTML that describes rich text and turns internal record identifiers into signed references. The code that does this conversion looks up each record globally instead of checking it belongs to the person importing. That means someone can craft an import file that points at another user's attachment, and the app will happily create a working reference to it.

What is IDOR?

One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.

More by xavlimsg

View all

3 more disclosed reports, best first.

More from Basecamp

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Insecure direct object reference (IDOR)

The lesson behind this report.

One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.