Invision Community <= 4.7.20 (calendar/view.php) SQL Injection Vulnerability
The calendar search feature in Invision Community passed a user-supplied location parameter into a SQL query without proper sanitisation. An attacker could inject SQL through that parameter to manipulate the database query.
karmainsecurity.com
Published on karmainsecurity.com
The vulnerability is located within the /applications/calendar/modules/front/calendar/view.php script.
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 location search parameter was concatenated into a SQL LIKE clause without parameterisation or escaping.
What the attacker needed
Access to the calendar search feature
The fix
The issue should be fixed by using parameterised queries or properly escaping the location value before it is placed in the SQL statement.
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.
A website's search box sometimes builds database questions by gluing your text directly into the command. If the site does not clean that text first, you can type extra database instructions and the site will run them. This is called SQL injection, and it can let someone read or change data they should not see.
What is SQL injection?
Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.