Lucene search

K
securityvulnsSecurityvulnsSECURITYVULNS:DOC:13749
HistoryAug 04, 2006 - 12:00 a.m.

[Full-disclosure] GaesteChaos <= 0.2 Multiple Vulnerabilities

2006-08-0400:00:00
vulners.com
13

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

  Advisory: GaesteChaos <= 0.2 Multiple Vulnerabilities

Release Date: 2006/08/04
Last Modified: 2006/08/03
Author: Tamriel [tamriel at gmx dot net]
Application: GaesteChaos <= 0.2
Risk: Moderate
Vendor Status: not contacted
Vendor Site: www.chaossoft.de

Overview:

Quote from www.chaossoft.de:

"GaesteChaos ist ein Gaestebuch fur Ihre Homepage. Es
ist klein und kompakt in PHP geschrieben und benutzt
mySQL, um die Daten abzuspeichern."

Details:

1) In the eintragen.php are some possible cross site scripting
vulnerabilities.

  This can be used to insert malicious code that will be executed
  on the client&#39;s machine.

  The input fields &quot;gastname&quot; and &quot;gastwohnort&quot; will be not checked
  by this script.

2) SQL Injection Vulnerabilities in eintragen.php
(arround line 35-45)

  ...
  
  mysql_db_query&#40;$database, &quot;INSERT INTO $tabellekommentar SET
  eintragid = &#39;$komwelches&#39;, name = &#39;$gastname&#39;,email = &#39;$gastemail&#39;,
  wohnort = &#39;$gastwohnort&#39;, datum =&#39;$timestamp&#39;, ip = &#39;$tempip&#39;,
  host = &#39;$hosti&#39;, homepage = &#39;$gasthomepage&#39;, eintrag =

'$gasteintrag',
geschlecht = '$geschlechti'");

  ...

Solution:

  Take a view on PHP&#39;s htmlentities and mysql_real_escape_string

functions.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (MingW32)

iD8DBQFE0oGOqBhP+Twks7oRAhonAKCIcumXeAc03GGhF4gKdgLH/efX1gCgk+5x
BqnmUiRb5A5fGgcOggVjQnQ=
=sMQh
-----END PGP SIGNATURE-----


Full-Disclosure - We believe in it.
Charter: http://lists.grok.org.uk/full-disclosure-charter.html
Hosted and sponsored by Secunia - http://secunia.com/