vastsa
eda0a3127a
fix: add magic-byte checks, login rate limits, and non-root Docker
...
Close the remaining security gaps: validate upload content against
file signatures, rate-limit admin login failures with configurable
thresholds, and run the container as uid 1000 instead of root.
2026-07-23 22:23:04 +08:00
Lan
ae7702603a
Merge pull request #496 from vastsa/fix/pr494-security-patches
...
fix: harden share expiry, download token, quota SQL, and CORS
2026-07-23 19:41:40 +08:00
vastsa
a41693f90d
fix: harden share expiry, download token, quota SQL, and CORS
...
Apply the useful security fixes from PR #494 with review corrections:
validate expire_style through a shared helper, accept previous download
token window, detect SQL dialect via Tortoise capabilities, close remote
download sessions on client abort, and disable invalid CORS credentials.
2026-07-23 19:38:50 +08:00
Lan
59ed733f3a
support text direct downloads ( #490 )
...
## 合入说明
- 修复 `GET /share/select/` 文本分享直链错误走存储层导致“已删除/过期”的问题
- 文本分享返回 UTF-8 plain text 附件下载
- 补充回归测试,不影响现有文件下载与次数扣减逻辑
## 评估结论
有必要合入:master 仍复现该缺陷,改动小、无冲突、测试通过。
2026-07-21 14:52:36 +08:00
vastsa
00f3abd3b2
fix: patch CVE dependencies and path traversal risks
...
Upgrade aiohttp and related packages, harden local file and storage path checks, tighten password/JWT comparisons, and default Docker forwarded IP trust to empty.
2026-07-21 14:49:30 +08:00
monlor
f2277e1649
support text direct downloads
2026-07-15 15:12:24 +08:00
Lan
818dd47b2a
feat: add global storage capacity limit
2026-07-11 17:50:26 +08:00
Lan
93ff291366
feat: configure admin session lifetime ( #484 )
2026-07-10 19:21:00 +08:00
Lan
8d7d856c62
fix: harden share retrieval and admin visibility ( #482 , #480 )
2026-07-10 17:39:53 +08:00
Lan
cdaf3638b8
feat: add first-run setup security flow
2026-06-16 00:49:43 +08:00
Lan
1b6d8e7277
fix: harden share rate limit and code generation ( #479 )
2026-06-09 00:53:11 +08:00
Lan
c1fb802223
fix : #473 normalize retrieve codes before lookup
2026-06-05 11:40:11 +08:00
Lan
aa6904a12c
fix : #465 restrict uploads by allowed file types
2026-06-05 11:29:37 +08:00
Lan
135dfdda9d
fix : #464 serialize admin file list items safely
2026-06-05 11:28:22 +08:00
Lan
b859ec211e
refactor: remove settings diagnostics recommendations
2026-06-03 10:37:17 +08:00
Lan
8ac367d0b8
refactor: remove admin recommendation summaries
2026-06-03 10:24:07 +08:00
Lan
63cf725802
feat: add admin file view summary
2026-06-03 10:00:58 +08:00
Lan
ccbc710d74
feat: add admin maintenance queue
2026-06-03 08:18:41 +08:00
Lan
2d18b02005
feat: add admin config diagnostics
2026-06-03 08:01:55 +08:00
Lan
e75fe596d0
feat: add admin operational insights
2026-06-03 07:47:33 +08:00
Lan
be7ce2b30e
feat: add admin activity timeline filters
2026-06-03 07:36:48 +08:00
Lan
0dbb594f4a
feat: add admin activity stream
2026-06-03 07:19:56 +08:00
Lan
b6aa28c345
feat: add admin file view presets
2026-06-03 07:01:38 +08:00
Lan
fc6046a663
feat: add admin file metadata
2026-06-03 06:37:56 +08:00
Lan
3467e973ac
feat: add batch file policy actions
2026-06-03 06:22:56 +08:00
Lan
a1de598277
feat: add dashboard health actions
2026-06-03 06:15:15 +08:00
Lan
1ba0d2a044
feat: add admin file health filters
2026-06-03 05:55:18 +08:00
Lan
1f0b0b791c
feat: add admin file policy actions
2026-06-03 05:45:02 +08:00
Lan
4ae53fc4a5
feat: add admin file detail insights
2026-06-03 05:28:11 +08:00
Lan
35e069ccc3
feat: add admin file detail endpoint
2026-06-03 04:58:19 +08:00
Lan
2fa1faebe0
feat: add admin batch file policy update
2026-06-03 04:38:30 +08:00
Lan
0ced9b1f38
feat: add admin batch file deletion
2026-06-03 04:24:16 +08:00
Lan
1eb69e4cc5
feat: add admin text preview endpoint
2026-06-03 04:05:52 +08:00
Lan
71fc1ad8ea
feat: enhance admin file list filters
2026-06-03 03:45:30 +08:00
Lan
64ebc59a84
feat: expand dashboard statistics
2026-06-03 03:32:12 +08:00
Lan
78b1dbe81f
feat: add retrieve metadata endpoint
2026-06-03 03:17:01 +08:00
Lan
6805206efd
fix: tolerate partial config updates
2026-06-03 03:08:19 +08:00
Lan
6fe68be2dd
fix: support legacy presign proxy upload URLs
2026-06-03 02:57:29 +08:00
Lan
0d71b914e4
feat: add admin auth compatibility endpoints
2026-06-03 02:44:42 +08:00
Lan
75d345e5d0
fix: accept form payloads for chunk uploads
2026-06-03 02:24:08 +08:00
Lan
1cc901d2b9
feat: add migration for filecodes table and update size field to BigInt
2026-02-27 23:38:27 +08:00
Lan
a3f599fe51
refactor: streamline admin authorization logic and improve token handling
2026-01-25 23:40:15 +08:00
Lan
5a889bab47
feat: enhance file retrieval by using Pydantic models for serialization
2026-01-25 20:53:04 +08:00
Lan
da5dc378a7
fix: return a dictionary from get_config method in ConfigService
2026-01-24 11:28:32 +08:00
Lan
3074d9ba2e
feat: https://github.com/vastsa/FileCodeBox/issues/442 密码进行hash存储
2026-01-07 20:36:59 +08:00
Lan
e87bcfcce5
fix: https://github.com/vastsa/FileCodeBox/issues/407
2026-01-07 20:04:44 +08:00
Lan
e80be564a5
fix: https://github.com/vastsa/FileCodeBox/issues/362
2026-01-07 19:50:02 +08:00
Lan
8e57a497f7
feat: 支持S3预签名上传
2025-12-31 03:25:09 +08:00
Lan
f1a16a115a
revert: 重新使用0.0.0.0 后续新增后台配置,延长后台时间
2025-12-19 10:17:37 +08:00
Lan
41b01b3faa
fix: 兼容后台修改永久取件
2025-12-01 21:21:37 +08:00