Web Application Vulnerability Assessment
The web application had unsanitised input fields that allowed cross-site scripting and a login mechanism vulnerable to SQL injection, enabling attackers to execute malicious JavaScript or bypass authentication. These flaws could lead to session hijacking, data theft, and full account compromise.
medium.com
Published on medium.com
This report outlines a comprehensive security assessment performed on a Node.js-based web application featuring user registration, login, and profile management functionalities. The objective was to identify security weaknesses, evaluate their potential impact, and recommend effective remediation strategies.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the application failed to sanitise user input and used raw SQL string concatenation in the login query.
Impact
Attackers could hijack sessions, steal sensitive data, redirect users to malicious sites, gain unauthorised data access, fully compromise accounts, and potentially execute commands on the database server.
What the attacker needed
Access to the web application; ability to submit input to forms
The fix
The report recommends sanitising and encoding user-generated content, using prepared statements and parameterised queries, and implementing security headers via helmet.js.
How it was found
- Clone the repository and install dependencies.
- Run the application locally.
- Create dummy accounts to verify functionality.
- Submit a script payload in an input field to test for XSS.
- Manipulate SQL input in the login form to bypass authentication.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
This report describes two serious security holes in a simple web app. One lets an attacker inject JavaScript code that runs in other users' browsers (cross-site scripting), and the other lets someone trick the login form into letting them in without a password (SQL injection). Both can give attackers control over user accounts or data.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.