domorielton / minimal-web-notepad Goto Github PK
View Code? Open in Web Editor NEWMinimal PHP web notepad with password protection. All notes saved as text files.
License: MIT License
Minimal PHP web notepad with password protection. All notes saved as text files.
License: MIT License
Recently, our team found a reflected cross-site scripting (XSS) vulnerability
The vulnerability logic is present in the file:
https://github.com/domOrielton/minimal-web-notepad/blob/master/modules/protect_form.php#L16
The print
directly outputs the parameter $_GET['note']
without any sanitization. This makes it susceptible to Cross-Site Scripting (XSS) attacks. As a result, attackers can exploit this vulnerability by injecting malicious html code with $_GET['note']
To fix this vulnerability, we recommend that developers implement properly sanitize (e.g., htmlspecialchars()
) for user input before displaying it on the webpage.
Recently, our team found a reflected cross-site scripting (XSS) vulnerability
The vulnerability logic is present in the file:
https://github.com/domOrielton/minimal-web-notepad/blob/master/index.php#L81
The print
directly outputs the parameter $_GET['note']
without any sanitization. This makes it susceptible to Cross-Site Scripting (XSS) attacks. As a result, attackers can exploit this vulnerability by injecting malicious html code with $_GET['note']
To fix this vulnerability, we recommend that developers implement properly sanitize (e.g., htmlspecialchars()
) for user input before displaying it on the webpage.
The new notes are not saved? How to solve this?
When I click view without password , the browser doesn't show any content. I am using Nginx.
Recently, our team found a reflected cross-site scripting (XSS) vulnerability
The vulnerability logic is present in the file:
https://github.com/domOrielton/minimal-web-notepad/blob/master/simple.php#L61
The print
directly outputs the parameter $_GET['note']
without any sanitization. This makes it susceptible to Cross-Site Scripting (XSS) attacks. As a result, attackers can exploit this vulnerability by injecting malicious html code with $_GET['note']
To fix this vulnerability, we recommend that developers implement properly sanitize (e.g., htmlspecialchars()
) for user input before displaying it on the webpage.
I'm having issues get this to work under MAMP or a hosted public server, the url rewriting causes it to spit out errors where it can't find the requested URL of any new or old note. I couldn't find any info/faq about this error, so I'm posting it as an issue.
Recently, our team found a reflected cross-site scripting (XSS) vulnerability
The vulnerability logic is present in the file:
https://github.com/domOrielton/minimal-web-notepad/blob/master/view.php#L27
The print
directly outputs the parameter $_GET['note']
without any sanitization. This makes it susceptible to Cross-Site Scripting (XSS) attacks. As a result, attackers can exploit this vulnerability by injecting malicious html code with $_GET['note']
To fix this vulnerability, we recommend that developers implement properly sanitize (e.g., htmlspecialchars()
) for user input before displaying it on the webpage.
Can you increase the code highlighting function?
RT
Possibility of using the container method
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.