eFront <= 3.6.10 (periodic_updater.php) SQL Injection Vulnerability
The periodic_updater.php script in eFront did not properly sanitise input taken from the HTTP_REFERER header, so an attacker could inject SQL into backend database queries. This could allow manipulation or disclosure of arbitrary data.
karmainsecurity.com
Published on karmainsecurity.com
eFront contains a flaw that may allow an attacker to carry out an SQL injection attack. The issue is due to the www/periodicupdater.php script not properly sanitizing user-supplied input passed via the ‘HTTPREFERER’ parameter.
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
The script built SQL queries using the raw HTTP_REFERER value without sanitising or parameterising it.
Impact
An attacker could inject or manipulate SQL queries, potentially allowing manipulation or disclosure of arbitrary data.
What the attacker needed
Attacker can set the Referer header; reachable periodic_updater.php script
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 often stores information in a database and asks it questions using a language called SQL. If the site builds those questions by pasting in text supplied by a visitor without cleaning it first, the visitor can sneak in extra SQL commands. Here the text came from the Referer header, which the browser sends to say which page you came from, and it was pasted into a database query.
What is SQL injection?
Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.