Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Find vulnerabilities #2

Open
daKmoR opened this issue Mar 12, 2020 · 3 comments
Open

Find vulnerabilities #2

daKmoR opened this issue Mar 12, 2020 · 3 comments

Comments

@daKmoR
Copy link
Member

daKmoR commented Mar 12, 2020

If you have a possible attack vector please make a comment or an issue and include the code like so

```js script
// execute code with an attack vector
console.log('window.secret', window.secret);
```
@daKmoR
Copy link
Member Author

daKmoR commented Mar 12, 2020

PREVENTED: Trying to fetch an external resource

fetch('https://www.google.com/').then(response => response.text().then(text => console.log(text)));

@daKmoR
Copy link
Member Author

daKmoR commented Mar 12, 2020

PREVENTED: Trying to fetch from api.github.com (e.g. do github api calls on behalf of the user)

fetch('https://api.github.com/').then(response => response.text().then(text => console.log(text)));

@daKmoR
Copy link
Member Author

daKmoR commented Mar 18, 2020

PREVENTED: get data from parent window
before you start you should set window.secret = 'pssst';

console.log('window.secret', window.secret);
console.log('parent.secret', parent.secret);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant