Skip to content

Define and enforce safe browser handling for raw Source files #47

Open

Description

@LunaStev

Motivation

RawBlob serves repository content with extension-derived MIME on the same origin as the platform. There is no endpoint-specific download/sandbox policy; repository content and application documents currently share the browser origin boundary.

Code references

Audit baseline: 50eb207.

Completion criteria

  • Document the threat model and choose a safe policy for active document types: attachment responses, a restrictive isolated response policy, or a separate credential-free raw origin.
  • Keep ordinary read-only source downloads and safe README image rendering functional.
  • Add response-policy tests for HTML, SVG, JavaScript, plain source, unknown extensions and misleading MIME cases.
  • Verify no change grants repository creation/editing or exposes cookies/secrets; review the interaction with the existing CSP.

Scope and dependencies

Difficulty: high.

Security-hardening/design task, not a claim that exploitation has been reproduced. Any discovered sensitive exploit details should use the project's private reporting process rather than public comments.

Backlog index: #12. Keep the change limited to this issue and include focused verification in the pull request.

Activity

  1. added
    enhancement
    help wanted
    security
    priority high
    needs testing
    on Sep 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementhelp wantedneeds testingpriority highsecurity

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions