XSS via upload pdf file in usememos/memos
Reported on
Jan 3rd 2023
Description
Hi there, It's my pleasure to submit a report to you again to maintain the safety of the project.Most users can upload files in the module named 'Resources' .We can upload pdf files.But uploading malicious pdf files will cause xss vulnerability which will cause great harm to users of the website.
You can click the following link to download the malicious pdf file I provided.pdf_file link.You can also search for more dangerous pdf files on the Internet or make it yourself.And for details you can click my video link below to watch.
link
poc https://drive.google.com/file/d/10PjyAKOgWNGd77J_vtuK_invJ-6hpUOj/view?usp=share_link
If anyone views this pdf file then it will be attacked.
Reference
You can also refer to the following link to view the vulnerability information related to the pdf file
Impact
(1) To steal the administrator account or cookie, the intruder can log in to the background as an administrator. It enables intruders to manipulate background data maliciously, including reading, changing, adding and deleting some information.
(2) Stealing users' personal information or login accounts will pose a huge threat to the user security of the website. For example, pretend to be a user for various operations.
(3) The website hangs horses. First, embed the malicious attack code into the Web application. When the user browses the hanging horse page, the user's computer will be implanted with a Trojan horse.
(4) Send advertisements or spam messages. Attackers can use XSS vulnerabilities to plant advertisements or send spam, seriously affecting
SECURITY.md
exists
a year ago
hi,@Maintainer,My suggestion is that you can modify the header and related properties of the Web server configuration or force the browser to download PDF files instead of providing online browsing.It is also a good choice to refer to the following link to find the appropriate solution. https://owasp.org/www-pdf-archive/OWASP_IL_The_Universal_XSS_PDF_Vulnerability.pdf
Same Method i found 2 Stored XSS via That Upper xss.pdf file i have question do you have pdf for SSRF & RCE?
hello, @hunter1337k ,I have pdf files that can cause ssrf, I think pdf files about causing RCE can also be generated. By the way, I am very interested in the way you find the vulnerabilities.How did you find these two XSS vulnerabilities We can have a communication.
Do you have an XSS payload that can Pop-Up (document.cookie) or (document.domain). Please share if you have.
i was able to upload the file but the xss doesnt pop up? do you'll have any idea?