Skip to content
SQL injection Write-up Intermediate

WikkaWiki <= 1.3.2 (usersettings.php) SQL Injection Vulnerability

The usersettings.php script in WikkaWiki fails to sanitise the 'default_comment_display' parameter during an update action, allowing SQL injection. An attacker could inject or manipulate SQL queries to alter or disclose arbitrary data in the back-end database.

karmainsecurity.com

Published on karmainsecurity.com

WikkaWiki contains a flaw that may allow an attacker to carry out an SQL injection attack. The issue is due to the /actions/usersettings/usersettings.php script not properly sanitizing user input passed through the 'defaultcommentdisplay' parameter during an update actions.

The author, on karmainsecurity.com

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 concatenates the 'default_comment_display' parameter directly into an SQL query without parameterisation or escaping.

Impact

An attacker could manipulate or disclose arbitrary data in the back-end database.

What the attacker needed

Access to the update action; ability to set default_comment_display

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 is a SQL injection bug. When you change your account settings, the site takes what you typed and puts it directly into a database command without cleaning it first. A malicious user can type extra database instructions, so the database runs their commands instead of just saving a setting.

What is SQL injection?

Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.

Similar reports

View all

Same bug class and techniques, clearest first.

SQL injection

The lesson behind this report.

Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.