admin-cold-unauth-render

20260916-201504 轮 · 看它的历史
靶子 http://localhost:20098(TP8_PORT=20098)

  ── ckeditor_upload:必须回 CKEditor 回调,不是 JSON ──
  ✅ Content-Type 是 text/html(不是 application/json)  实际 "text/html; charset=utf-8"
  ✅ 回调函数名与 funcNum 都在  体首 90="<script type="text/javascript">window.parent.CKEDITOR.tools.callFunction(7, "", "\u4f1a\u8"
  ✅ url 参数为空串(没授权就没有上传结果)
  ✅ 错误文案(解码后)是"会话已过期…重新上传"(用户看得懂发生了什么)  解码得到 "会话已过期,请刷新主页面后重新上传"
  ✅ 🔴 没有退化成 JSON unauthorized

  ── funcNum 夹取:入参不许决定回调目标 ──
  ✅ 超范围(99999)夹到 0  体首 80="<script type="text/javascript">window.parent.CKEDITOR.tools.callFunction(0, "", "
  ✅ 负数(-5)夹到 0
  ✅ 不传 CKEditorFuncNum 时为 0

  ── 兄弟分支没被顺手改坏(回归) ──
  ✅ asset_library_browser 仍回可读 HTML 页  体首 80="<!DOCTYPE html><meta charset="utf-8"><body style="font-family:sans-serif;padding"
  ✅ 且它没有被 CKEditor 回调劫持
  ✅ 其余 asset_* 仍回 JSON unauthorized  ct="application/json; charset=utf-8" 体首 60="{"status":0,"info":"unauthorized","data":null}"

  PASS=11 FAIL=0