白嫖worker 自建短链服务 Url-Shorten-Worker path为 'password' 时 让查询结果为空

问题

今天调试 Pastebin 发现一个bug, 如果直接把path改为'password', 就会显示KV中的密码.

以前短链系统的时候, 因为短链系统会把查出来的value做302跳转, 而密码并不是一个网址, 在跳转时就会出问题, 所以就没有暴露这个bug.


修正

在按path查询了KV之后, 如果path是'password', 让查询结果为空. 

这样后续处理就和 path 不存在是一样的.


=======

Github: https://github.com/crazypeace/url-Shorten-Worker/

演示站: https://pastebin.icdyct.cloudns.asia/tieludasiliqiuweiyue

https://pastebin.icdyct.cloudns.asia/password 的结果是和错误的path一样的了.

评论

The Hot3 in Last 30 Days

日常自用的自建梯子 reality wss+cdn hy2 同时搭着 哪个好用就用哪个 2025-1-4

搭建 C 编译环境 手动编译 jq

RackNerd VPS搭Hysteria2 HY2梯子 年付 $10.98 1G端口 3T流量 17G存储 1GB内存