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.
- 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:83app/models/account/data_transfer/action_text_rich_text_record_set.rb:87app/models/account/data_transfer/action_text_rich_text_record_set.rb:88app/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:38app/models/account/import.rb:37app/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
- Enter repo:
cd /path/to/fizzy
- Install/check dependencies:
bundle check || bundle install
- Run standalone integration PoC:
bundle exec ruby security-poc/integration_test_standalone.rb
- Expected success signals in output:
RESULT: IMPACT_CONFIRMED=trueimported.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
- Enter repo:
cd /path/to/fizzy
- Install/check dependencies:
bundle check || bundle install
- Run full import impact demo:
DISABLE_BOOTSNAP=1 RAILS_ENV=development \
bundle exec rails runner security-poc/demo_import_cross_account_impact.rb
- Expected success signals:
cross_account_reference=trueIMPACT_CONFIRMED=trueimported_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.rbsecurity-poc/demo_import_cross_account_impact.rbsecurity-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.
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
- Enter the repository directory.
- Check or install Ruby dependencies with Bundler.
- Run the standalone integration proof-of-concept script.
- 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.