CVE-2021-40909

Cross site scripting (XSS) vulnerability in sourcecodester PHP CRUD without Refresh/Reload using Ajax and DataTables Tutorial v1 by oretnom23, allows remote…

published January 24, 2022

CVSS
—
EPSS
2%
Percentile
82.2
In the wild
Unconfirmed
What it is

⚠️ A crafty XSS vulnerability exists in a widely used PHP CRUD tutorial! Attackers can execute arbitrary code through seemingly harmless input fields like first name, last name, and email. 🔥 Think of this as a restaurant where anyone can write their own orders without checks — if the kitchen doesn't verify what’s written, it might serve something utterly inappropriate! If exploited, an attacker could run their own scripts in a user's browser, leading to data theft or manipulation. It's like leaving the door open during dinner; anyone could walk in and mess with your feast!

Put simply

Think of this as a restaurant where anyone can write their own orders without checks — if the kitchen doesn't verify what’s written, it might serve something utterly inappropriate! This XSS flaw allows attackers to inject and execute malicious scripts via the /ajax_crud endpoint by manipulating input parameters, specifically first_name, last_name, and email.

What to do

If exploited, an attacker could run their own scripts in a user's browser, leading to data theft or manipulation. It's like leaving the door open during dinner; anyone could walk in and mess with your feast! To secure your application, sanitize and validate all user inputs rigorously. Consider implementing a Content Security Policy (CSP) and keep your libraries up to date to avoid such vulnerabilities. Ensuring all fields are correctly escaped will help immensely! You've got this! Fixing this vulnerability will bolster your defenses and keep your users safe. 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.02181 · 82.2th percentile
Published
2022-01-24T15:15Z
EPSS history
Timeline
  • 24 JAN 15:15Z
    Cross site scripting (XSS) vulnerability in sourcecodester PHP CRUD without Refresh/Reload using Ajax and DataTables Tutorial v1 by oretnom23, allows remote…
    cvelistv5