当前位置: 首页 > news >正文

【Web】ImaginaryCTF 2025 wp

目录

imaginary-notes

certificate

codenames-1

passwordless

pearl


imaginary-notes

I made a new note taking app using Supabase! Its so secure, I put my flag as the password to the "admin" account. I even put my anonymous key somewhere in the site. The password database is called, "users". 

点击注册登录功能,抓到几个nosql查询的包

根据题目提示改包拿到flag

/rest/v1/users?select=password&username=eq.admin

certificate

As a thank you for playing our CTF, we're giving out participation certificates! Each one comes with a custom flag, but I bet you can't get the flag belonging to Eth007!

直接改username为Eth007会被ban

注意到生成证书bp是没法抓到包的,应该是纯前端

看看js,一眼顶针了

codenames-1

I hear that multilingual codenames is all the rage these days. Flag is in /flag.txt.

读取文件路径存在字符拼接,但waf了'.',不能目录穿越

os.path.join有一个逆天特性

当遇到绝对路径时,会丢弃之前的所有路径组件

将language改为/flag

赢了

passwordless

Didn't have time to implement the email sending feature but that's ok, the site is 100% secure if nobody knows their password to sign in!

这题是bcrypt算法的问题

python如

import bcryptdef hash_password(password: str) -> bytes:"""对密码进行 bcrypt 哈希"""# 生成盐(工作因子默认是 12,可调)salt = bcrypt.gensalt(rounds=12)# 生成哈希hashed = bcrypt.hashpw(password.encode('utf-8'), salt)return hashed
print(hash_password("test"))

node的实现也是截取72字节

https://www.npmjs.com/package/bcrypt?activeTab=code

这里要让req.body.email长度为72,且nEmail长度 ≤ 64

来看normalizeEmail的实现

https://www.npmjs.com/package/normalize-email

其实就是把.给去掉

构造payload

用这个邮箱注册

Z3r4y.Z3r4y.Z3r4y.Z3r4y.Z3r4y.Z3r4y.Z3r4y.Z3r4y.Z3r4y.Z3r4y.Z3@gmail.com

再用这套账密登录

Z3r4y.Z3r4y.Z3r4y.Z3r4y.Z3r4y.Z3r4y.Z3r4y.Z3r4y.Z3r4y.Z3r4y.Z3@gmail.com
Z3r4yZ3r4yZ3r4yZ3r4yZ3r4yZ3r4yZ3r4yZ3r4yZ3r4yZ3r4yZ3@gmail.com

pearl

I used perl to make my pearl shop. Soon, we will expand to selling Perler bead renditions of Perlin noise.

perl的open可以RCE

https://www.shlomifish.org/lecture/Perl/Newbies/lecture4/processes/opens.html

open的参是$fullpath,拼接出来的,$path可控

可以用%0a多行执行

payload

/%0acat+/f*|


文章转载自:

http://eI29axGm.jtnph.cn
http://Jw6Nu8iP.jtnph.cn
http://1Zd8c07u.jtnph.cn
http://UzMd3o9g.jtnph.cn
http://Fd9znLFS.jtnph.cn
http://8yfZaA3N.jtnph.cn
http://Dv9FKDgJ.jtnph.cn
http://6Mk9u82F.jtnph.cn
http://P8QHdlo5.jtnph.cn
http://VQ3ny6tE.jtnph.cn
http://aNcMZenU.jtnph.cn
http://tpUgWzmT.jtnph.cn
http://9MHItzU0.jtnph.cn
http://LGq8gzGl.jtnph.cn
http://XSYFOko3.jtnph.cn
http://ZrY9iS3K.jtnph.cn
http://Uwv56pTk.jtnph.cn
http://DEyiqPuF.jtnph.cn
http://4Ud7sJ7t.jtnph.cn
http://nZgwRC3F.jtnph.cn
http://uYHmz4Z4.jtnph.cn
http://BLEohP72.jtnph.cn
http://PJBPvl8t.jtnph.cn
http://NBqfg30e.jtnph.cn
http://BWnj6LuZ.jtnph.cn
http://B1zljhQW.jtnph.cn
http://TxKfXxHB.jtnph.cn
http://OuZHhrRe.jtnph.cn
http://kBlwkeDN.jtnph.cn
http://mIRpInFm.jtnph.cn
http://www.dtcms.com/a/381598.html

相关文章:

  • [Windows] (思源笔记首发ai辅助工具)叶归 AI 辅助精美笔记工具
  • 多线程详解
  • ArcGIS(Pro)在线地图服务被禁?提示感叹号?应急方案来了——重新正常显示
  • 《PyTorch 携手 Unity:基于云原生架构化解 AI 游戏系统显存危机》
  • pytorch基本运算-Python控制流梯度运算
  • 编程与数学 03-005 计算机图形学 17_虚拟现实与增强现实技术
  • 计算机网络(一)基础概念
  • [Windows] 搜索文本2.6.2(从word、wps、excel、pdf和txt文件中查找文本的工具)
  • 【iOS】设计模式复习
  • RNN,GRU和LSTM的简单实现
  • 无人机如何实现图传:从原理到实战的全景解读
  • 多旋翼无人机开发方案
  • 基于MATLAB的无人机三维路径规划与避障算法实现
  • Web基础学习笔记02
  • Spring Boot 项目启动报错:MongoSocketOpenException 连接被拒绝排查日记
  • OpenCV(cv2)学习笔记:从模板匹配入门到常用函数
  • FFmpeg合成mp4
  • 解决 ubuntu 重启串口号变化
  • 《算法与数据结构》第六章[第3节]:二叉树(第二部分)
  • 深入理解 Python 中的 `__call__` 方法
  • AI 智能体的定义与演进
  • 鸿蒙Next ArkWeb网页交互管理:从基础到高级实战
  • 给CentOS的虚拟机扩容
  • Redis 持久化:RDB 和 AOF 的 “爱恨情仇”
  • 多源最短路(Floyd算法
  • 【数据结构——图(例图篇)】
  • 安卓俄罗斯方块,经典拖动双模式体验
  • 21th cpp think
  • 收集飞花令碎片——C语言关键字typedef
  • Python/JS/Go/Java同步学习(第十二篇)四语言“字符串填充编号“对照表: 财务“小南“纸式填充术加凭证编号崩溃(附源码/截图/参数表/避坑指南)