文件快递柜-匿名口令分享文本,文件,像拿快递一样取文件(FileCodeBox - File Express Cabinet - Anonymous Passcode Sharing Text, Files, Like Taking Express Delivery for Files)
This report summarizes scanner evidence for vastsa/FileCodeBox, a Python project with 8,608 GitHub stars. SynthScan examined 24,689 lines of code across 136 source files, recording 336 pattern matches distributed across 8 syntactic categories. The legacy adjusted pattern signal is 16.5 (Elevated pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 250 finding(s).
Are imports declared and package/API names verified? 15 finding(s).
Are wrappers, guards, and repeated structures necessary? 299 finding(s).
Which changes need focused human review? 336 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 336 distinct pattern matches across 8 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | main.py | 103 | async def refresh_settings_middleware(request, call_next): | CODE |
| LOW | core/security.py | 129 | def validate_outbound_endpoint(value: Any) -> str: | CODE |
| LOW | core/security.py | 149 | def validate_outbound_hostname(value: Any) -> str: | CODE |
| LOW | core/logger.py | 16 | def is_production_environment() -> bool: | CODE |
| LOW | core/storage/_base.py | 156 | async def generate_presigned_upload_url(self, save_path: str, expires_in: int = 900) -> Optional[str]: | CODE |
| LOW | core/storage/onedrive.py | 127 | def _convert_link_to_download_link(self, link): | CODE |
| LOW | core/storage/s3.py | 296 | async def generate_presigned_upload_url(self, save_path: str, expires_in: int = 900) -> Optional[str]: | CODE |
| LOW | tests/test_admin_security.py | 25 | def test_initial_security_config_requires_setup_and_generates_jwt_secret(self): | CODE |
| LOW | tests/test_admin_security.py | 34 | def test_legacy_default_password_requires_setup(self): | CODE |
| LOW | tests/test_admin_security.py | 45 | def test_custom_plaintext_password_is_hashed_and_initialized(self): | CODE |
| LOW | tests/test_admin_security.py | 58 | def test_parse_setup_options_converts_common_fields(self): | CODE |
| LOW⚡ | tests/test_admin_security.py | 93 | def test_parse_setup_options_allows_turning_guest_upload_off(self): | CODE |
| LOW⚡ | tests/test_admin_security.py | 103 | def test_parse_setup_options_requires_expire_style(self): | CODE |
| LOW⚡ | tests/test_admin_security.py | 109 | def test_admin_jwt_signature_uses_independent_secret(self): | CODE |
| LOW | tests/test_admin_security.py | 123 | def test_configured_session_lifetime_is_returned_by_login(self): | CODE |
| LOW | tests/test_admin_security.py | 184 | def test_storage_limit_rejects_negative_values(self): | CODE |
| LOW | tests/test_admin_security.py | 190 | def test_admin_session_lifetime_rejects_out_of_range_values(self): | CODE |
| LOW | tests/test_admin_security.py | 203 | def test_admin_password_update_rotates_jwt_secret(self): | CODE |
| LOW | tests/test_admin_security.py | 228 | def test_initialize_system_sets_admin_password_and_jwt_secret(self): | CODE |
| LOW | tests/test_mcp_upload.py | 8 | async def test_mcp_initialize_and_list_tools(initialized_client): | CODE |
| LOW | tests/test_mcp_upload.py | 27 | async def test_mcp_rejects_cross_origin_requests(initialized_client): | CODE |
| LOW | tests/test_mcp_upload.py | 37 | async def test_mcp_token_can_be_required(initialized_client): | CODE |
| LOW | tests/test_negative_edge_paths.py | 36 | async def test_second_download_refused_after_limit(self, initialized_client): | CODE |
| LOW | tests/test_negative_edge_paths.py | 140 | async def test_browser_accept_gets_theme_page(self, initialized_client): | CODE |
| LOW | tests/test_negative_edge_paths.py | 255 | async def test_existing_object_streams_payload(self, monkeypatch): | CODE |
| LOW⚡ | tests/test_version.py | 11 | def test_version_file_is_the_runtime_version_source(self): | CODE |
| LOW⚡ | tests/test_version.py | 19 | def test_release_manifest_matches_version_file(self): | CODE |
| LOW⚡ | tests/test_version.py | 25 | def test_build_can_override_version_with_environment(self): | CODE |
| LOW⚡ | tests/test_version.py | 31 | def test_rejects_non_canonical_versions(self): | CODE |
| LOW⚡ | tests/test_webdav_storage.py | 136 | async def test_save_roundtrip_and_exists(self, dav_storage): | CODE |
| LOW⚡ | tests/test_webdav_storage.py | 144 | async def test_delete_file_and_empty_parent_dirs(self, dav_storage): | CODE |
| LOW⚡ | tests/test_webdav_storage.py | 152 | async def test_delete_missing_file_is_accepted(self, dav_storage): | CODE |
| LOW⚡ | tests/test_webdav_storage.py | 156 | async def test_get_file_response_roundtrip(self, dav_storage): | CODE |
| LOW | tests/test_webdav_storage.py | 196 | async def test_merge_success_and_cleanup(self, dav_storage): | CODE |
| LOW | tests/test_webdav_storage.py | 217 | async def test_merge_missing_chunk_raises(self, dav_storage): | CODE |
| LOW | tests/test_webdav_storage.py | 227 | async def test_merge_hash_mismatch_raises(self, dav_storage): | CODE |
| LOW | tests/test_integration_journey.py | 81 | async def test_upload_select_download_roundtrip(self, client): | CODE |
| LOW | tests/test_integration_journey.py | 106 | async def test_text_share_roundtrip(self, client): | CODE |
| LOW | tests/test_integration_journey.py | 111 | async def test_count_limited_code_fails_after_exhaustion(self, client): | CODE |
| LOW | tests/test_integration_journey.py | 143 | async def test_full_chunk_upload_merge_and_download(self, client): | CODE |
| LOW⚡ | tests/test_integration_journey.py | 162 | async def test_chunk_oversize_rejected(self, client): | CODE |
| LOW⚡ | tests/test_integration_journey.py | 168 | async def test_invalid_chunk_index_rejected(self, client): | CODE |
| LOW⚡ | tests/test_integration_journey.py | 174 | async def test_cancel_upload_cleans_session(self, client): | CODE |
| LOW | tests/test_integration_journey.py | 191 | async def test_guest_upload_allowed_when_open_upload_on(self, client): | CODE |
| LOW | tests/test_integration_journey.py | 196 | async def test_upload_requires_login_when_guest_upload_off(self, client): | CODE |
| LOW | tests/test_integration_journey.py | 212 | async def test_admin_endpoints_reject_missing_token(self, client): | CODE |
| LOW⚡ | tests/test_s3_storage_moto.py | 73 | async def test_save_and_exists_roundtrip(self, s3_storage): | CODE |
| LOW⚡ | tests/test_s3_storage_moto.py | 80 | async def test_delete_file_removes_object(self, s3_storage): | CODE |
| LOW⚡ | tests/test_s3_storage_moto.py | 85 | async def test_presigned_upload_url_targets_bucket_and_key(self, s3_storage): | CODE |
| LOW⚡ | tests/test_s3_storage_moto.py | 91 | async def test_get_file_url_proxy_uses_local_dispatch(self, s3_storage): | CODE |
| LOW | tests/test_s3_storage_moto.py | 103 | async def test_get_file_url_direct_returns_presigned(self, s3_storage): | CODE |
| LOW | tests/test_s3_storage_moto.py | 119 | async def test_existing_object_returns_download_with_length(self, s3_storage): | CODE |
| LOW | tests/test_s3_storage_moto.py | 125 | async def test_stream_factory_roundtrip_via_presigned_url(self, s3_storage): | CODE |
| LOW | tests/test_s3_storage_moto.py | 136 | async def test_merge_success_roundtrip_then_cleanup(self, s3_storage): | CODE |
| LOW | tests/test_s3_storage_moto.py | 159 | async def test_merge_missing_chunk_aborts_and_raises(self, s3_storage): | CODE |
| LOW | tests/test_s3_storage_moto.py | 170 | async def test_merge_hash_mismatch_aborts_and_raises(self, s3_storage): | CODE |
| LOW | tests/test_s3_storage_moto.py | 179 | async def test_clean_chunks_scoped_to_upload_only(self, s3_storage): | CODE |
| LOW | tests/test_s3_storage_moto.py | 195 | async def test_save_chunk_stores_declared_hash_metadata(self, s3_storage): | CODE |
| LOW⚡ | tests/test_logging.py | 25 | def test_production_defaults_to_warning_and_disables_access_logs(self): | CODE |
| LOW⚡ | tests/test_logging.py | 32 | def test_development_defaults_to_info_and_keeps_access_logs(self): | CODE |
| 165 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | core/database.py | 100 | except Exception as e: | STRING |
| LOW | core/database.py | 140 | except Exception as e: | CODE |
| LOW | core/database.py | 144 | except Exception as e: | CODE |
| MEDIUM | core/database.py | 80 | def init_db(): | CODE |
| LOW | core/storage/webdav.py | 191 | except Exception: | CODE |
| LOW | core/storage/webdav.py | 340 | except Exception as e: | CODE |
| LOW | core/storage/local.py | 108 | except Exception as e: | CODE |
| LOW | core/storage/local.py | 144 | except Exception as e: | CODE |
| LOW | core/storage/local.py | 162 | except Exception as e: | CODE |
| LOW | core/storage/local.py | 169 | except Exception as e: | CODE |
| LOW | core/storage/onedrive.py | 62 | except Exception as e: | CODE |
| LOW | core/storage/onedrive.py | 172 | except Exception: | CODE |
| LOW | core/storage/onedrive.py | 203 | except Exception: | CODE |
| LOW | core/storage/onedrive.py | 285 | except Exception as e: | CODE |
| LOW | core/storage/onedrive.py | 317 | except Exception as e: | CODE |
| MEDIUM | core/storage/onedrive.py | 27 | def __init__(self): | CODE |
| LOW | core/storage/s3.py | 108 | except Exception: | CODE |
| LOW | core/storage/s3.py | 152 | except Exception: | CODE |
| LOW | core/storage/s3.py | 244 | except Exception as e: | CODE |
| LOW | core/storage/s3.py | 263 | except Exception as e: | CODE |
| LOW | core/storage/s3.py | 293 | except Exception as e: | CODE |
| LOW | core/storage/s3.py | 325 | except Exception as e: | CODE |
| LOW | core/storage/s3.py | 339 | except Exception as e: | CODE |
| MEDIUM | core/storage/s3.py | 124 | def stream_generator(): | CODE |
| LOW | core/storage/opendal.py | 63 | except Exception: | CODE |
| LOW | core/storage/opendal.py | 95 | except Exception as e: | CODE |
| LOW | core/storage/opendal.py | 121 | except Exception as e: | CODE |
| LOW | core/storage/opendal.py | 145 | except Exception as e: | CODE |
| LOW | core/storage/opendal.py | 157 | except Exception: | CODE |
| MEDIUM | core/storage/opendal.py | 23 | def __init__(self): | CODE |
| LOW | apps/admin/services.py | 123 | except Exception as exc: | CODE |
| LOW | apps/admin/services.py | 166 | except Exception as exc: | CODE |
| LOW | apps/admin/services.py | 430 | except Exception as exc: | CODE |
| LOW | apps/admin/services.py | 821 | except Exception: | CODE |
| LOW | apps/admin/views.py | 79 | except Exception: | CODE |
| LOW | apps/base/auth.py | 99 | except Exception: | CODE |
| LOW | apps/base/auth.py | 108 | except Exception as e: | CODE |
| MEDIUM | apps/base/auth.py | 31 | def get_admin_session_expire_seconds() -> int: | CODE |
| LOW | apps/base/services.py | 66 | except Exception: | CODE |
| LOW | apps/base/services.py | 193 | except Exception: | CODE |
| LOW | apps/base/services.py | 231 | except Exception: | CODE |
| LOW | apps/base/services.py | 281 | except Exception as e: | CODE |
| LOW | apps/base/services.py | 285 | except Exception: | CODE |
| LOW | apps/base/services.py | 315 | except Exception as e: | CODE |
| LOW | apps/base/services.py | 326 | except Exception: | CODE |
| LOW | apps/base/services.py | 379 | except Exception: | CODE |
| LOW⚡ | apps/base/tasks.py | 47 | except Exception as e: | CODE |
| LOW⚡ | apps/base/tasks.py | 51 | except Exception as e: | CODE |
| LOW⚡ | apps/base/tasks.py | 53 | except Exception as e: | CODE |
| LOW | apps/base/tasks.py | 79 | except Exception as e: | CODE |
| LOW⚡ | apps/base/tasks.py | 90 | except Exception as e: | CODE |
| LOW⚡ | apps/base/tasks.py | 95 | except Exception as e: | CODE |
| LOW | apps/base/tasks.py | 120 | except Exception as e: | CODE |
| LOW | apps/base/tasks.py | 129 | except Exception as e: | CODE |
| LOW | apps/base/quota.py | 36 | except Exception: | CODE |
| LOW | apps/base/quota.py | 115 | except Exception: | STRING |
| MEDIUM | apps/base/quota.py | 60 | def get_storage_limit() -> int: | CODE |
| LOW | apps/base/views.py | 287 | except Exception: | CODE |
| LOW | apps/base/views.py | 367 | except Exception: | CODE |
| LOW | apps/base/views.py | 448 | except Exception as e: | CODE |
| 3 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | core/storage/webdav.py | 191 | except Exception: | CODE |
| HIGH | core/storage/onedrive.py | 172 | except Exception: | CODE |
| HIGH | core/storage/s3.py | 108 | except Exception: | CODE |
| HIGH | core/storage/opendal.py | 63 | except Exception: | CODE |
| HIGH | tests/test_local_share.py | 168 | except SleepSentinel: | CODE |
| HIGH | tests/test_cleanup_tasks.py | 46 | except SleepSentinel: | CODE |
| HIGH | apps/base/local_share.py | 104 | except OSError: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | core/database.py | 105 | CODE | |
| LOW | core/storage/webdav.py | 161 | CODE | |
| LOW | core/storage/webdav.py | 309 | CODE | |
| LOW | core/storage/onedrive.py | 146 | CODE | |
| LOW | core/storage/onedrive.py | 216 | CODE | |
| LOW | core/storage/onedrive.py | 248 | CODE | |
| LOW | core/storage/s3.py | 83 | CODE | |
| LOW | core/storage/opendal.py | 51 | CODE | |
| LOW | tests/test_version.py | 31 | CODE | |
| LOW | tests/test_local_share.py | 138 | CODE | |
| LOW | tests/test_merge_chunks.py | 31 | CODE | |
| LOW | tests/test_attachment_guard.py | 32 | CODE | |
| LOW | apps/admin/services.py | 1106 | CODE | |
| LOW | apps/admin/config_service.py | 64 | CODE | |
| LOW | apps/base/tasks.py | 26 | CODE | |
| LOW | apps/base/tasks.py | 59 | CODE | |
| LOW | apps/base/tasks.py | 101 | CODE | |
| LOW | apps/base/mcp.py | 178 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | core/storage/__init__.py | 6 | CODE | |
| LOW | core/storage/__init__.py | 6 | CODE | |
| LOW | core/storage/__init__.py | 6 | CODE | |
| LOW | core/storage/__init__.py | 6 | CODE | |
| LOW | core/storage/__init__.py | 6 | CODE | |
| LOW | tests/test_admin_write_paths.py | 264 | CODE | |
| LOW | apps/admin/services.py | 1464 | CODE | |
| LOW | apps/admin/services.py | 1465 | CODE | |
| LOW | apps/admin/dependencies.py | 10 | CODE | |
| LOW | apps/admin/dependencies.py | 10 | CODE | |
| LOW | apps/admin/dependencies.py | 10 | CODE | |
| LOW | apps/admin/dependencies.py | 10 | CODE | |
| LOW | apps/admin/dependencies.py | 10 | CODE | |
| LOW | apps/base/file_validation.py | 3 | CODE | |
| LOW | apps/base/local_share.py | 12 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | core/__init__.py | 1 | # @Time : 2023/8/11 20:06 | COMMENT |
| LOW | apps/__init__.py | 1 | # @Time : 2023/8/13 20:43 | COMMENT |
| LOW | apps/admin/__init__.py | 1 | # @Time : 2023/8/14 14:38 | COMMENT |
| LOW | apps/base/__init__.py | 1 | # @Time : 2023/8/13 20:43 | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | core/storage/onedrive.py | 75 | CODE | |
| LOW | tests/test_integration_journey.py | 141 | CODE | |
| LOW | apps/admin/views.py | 382 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | apps/admin/dependencies.py | 24 | __all__ = [ | CODE |