Skip to content

docs: security audit of hostile inputs (review before any fix) - #288

Closed
lazyxeon wants to merge 1 commit into
mainfrom
cursor/security-audit-b23f
Closed

lazyxeon wants to merge 1 commit into
mainfrom
cursor/security-audit-b23f

Conversation

@lazyxeon

Copy link
Copy Markdown
Owner

Description

Archaeological security audit of AstraWeave. Every external byte is treated as hostile: saves, mods, weave tables, model output, meshes, cells, packs, and sockets. This draft records what exists, whether it is wired, and the concrete findings. It does not change parser behavior.

The plan for review is docs/current/SECURITY_AUDIT.md. It ranks findings, proposes reject-only fixes, a nightly fuzz plan that leaves pull-request CI wall time flat, confirmation that those fixes do not change replay hashes of valid fixtures, a merge order against the open PRs, and a table of deferred-failure issues to open (owner and plan). Issues are not opened here.

Six proof-of-concept tests assert the secure property and fail on today's code. That failure is the evidence. Do not delete them to make CI green.

  • poc_awsv_rejects_oversized_declared_payload — header length is not capped (failed to fill whole buffer)
  • poc_vitals_rejects_more_than_4096_records — 4097 combat records decode
  • poc_postcard_lz4_rejects_oversized_declared_output — LZ4 claim is not an application cap
  • poc_gltf_buffer_uri_rejects_parent_segments and poc_cell_asset_path_rejects_parent_segments — ../ is opened
  • poc_script_loader_rejects_parent_segments — script path is opened
  • poc_local_http_client_rejects_non_loopback_url — https://api.openai.com is stored

GitHub secret scanning and push protection cannot be enabled from a pull request. Please turn both on in the repository settings.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Security enhancement

Security Considerations

  • Does this PR introduce new dependencies? If yes, have they been vetted for security issues? No new dependencies.
  • Does this PR modify how user input is handled? If yes, has it been validated/sanitized? No. The tests show that hostile input is still accepted. Fixes are proposed, not applied.
  • Does this PR change authentication or authorization mechanisms? No.
  • Does this PR access sensitive data or modify how it's stored? No.
  • Does this PR introduce new network communication or modify existing protocols? No.

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules
  • I have checked my code and corrected any misspellings
  • I have run security checks (cargo audit, cargo deny) locally

The new tests fail on purpose. See the table in docs/current/SECURITY_AUDIT.md. cargo fmt --all was run. cargo audit / cargo deny were not re-run; issue #219 already tracks the openssl ban failure.

Open in Web Open in Cursor 

Record what the save, mod, weave, LLM, asset, net, and supply-chain
paths actually do, and add tests that fail until those parsers reject
oversized or out-of-root input. No parser behavior changes.

Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>
@coderabbitai

coderabbitai Bot commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Copy link
Copy Markdown
Owner Author

Superseded by #290 (merged as b47fb56), which landed the audit doc and the passing proofs. The follow-up fixes are in #312. Closing.

@lazyxeon lazyxeon closed this Oct 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants