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

We found a stored xss vulnerability in vnote #564

Closed
heroanswer opened this issue Jan 5, 2019 · 4 comments
Closed

We found a stored xss vulnerability in vnote #564

heroanswer opened this issue Jan 5, 2019 · 4 comments

Comments

@heroanswer
Copy link

Hello friend,we are farmsec security team,we found a stored xss vulnerability in vnote:
OS Version : Linux
VNote Version :VNote-2.2
Symptoms :
1.The app does not filter specific html tags,as:
<img>
<iframe>
<video>
2.An attacker can execute a javascript script by using a malicious html tag.
1
How to Repro :
1.Install vnote for linux
https://github.com/tamlok/vnote
3
2.Click New Note
Fill in the notebook name
2
Click OK.
3.New folder
4
Click OK.
4.New text note
5
5.Fill in the xss vulnerability test payload
payload:<iframe src="javascript:alert('xss')">
6.Access note
Enter Ctrl+T
7
The code is executed in the browser

@tamlok
Copy link
Member

tamlok commented Jan 13, 2019

Thanks! Will try to fix it later.

@heroanswer
Copy link
Author

nice~

@tamlok
Copy link
Member

tamlok commented Nov 29, 2020

Fixed. Turned off by default due to its personal use and perf issue.

"protect_from_xss" : false

Thanks!

@tamlok tamlok closed this as completed Nov 29, 2020
@heroanswer
Copy link
Author

heroanswer commented Nov 30, 2020 via email

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

2 participants