hacktricks/pentesting-web/xs-search/javascript-execution-xs-leak.md
2023-08-03 19:12:22 +00:00

4.5 KiB
Raw Blame History

JavaScript执行XS泄漏

☁️ HackTricks云 ☁️ -🐦 Twitter 🐦 - 🎙️ Twitch 🎙️ - 🎥 Youtube 🎥
```javascript // Code that will try ${guess} as flag (need rest of the server code app.get('/guessing', function(req, res) { let guess = req.query.guess let page = `<html> <head> </head>

hello2

</html>` res.send(page) }); ``` 主页会生成iframe到之前的`/guessing`页面,以测试每种可能性。 ```html <html> <head>

</head>

hello

</html> ```
☁️ HackTricks 云 ☁️ -🐦 推特 🐦 - 🎙️ Twitch 🎙️ - 🎥 Youtube 🎥