Computer Security
[EN] securityvulns.ru
no-pyccku



Related information

  CGI bugs

  phpMyNewsletter

  The Books Module for the PostNuke CMS XSS Vulnerability

  Multiple Web Security Holes

  wp-02-0012: Carello 1.3 Remote File Execution (Updated 1/10/2002)

From:Sp.IC <SpeedICNet_(at)_Hotmail.Com>
Date:04.10.2002
Subject:phpLinkat XSS Security Bug



phpLinkat is a free Web-Based link indexing script written in PHP and
runs on MySQL.This product is server is vulnerable to the Cross-Site
Scripting vulnerability would allow attackers to inject HTML and script
codes into the pages and execute it on the clients browser as if it were
provided by the site.

+ Tested on:

   - phpLinkat 0.1.0

+ Exploit:

   - showcat.php?catid=&lt;Script&gt;JavaScript:alert('XSS
Exploit');&lt;/Script&gt;
   - addyoursite.php?catid=&lt;Script&gt;JavaScript:alert('XSS
Exploit');&lt;/Script&gt;

+ Solution:

   - Open showcat.php
   - Add this code to line 22:

    $catid = HTMLSpecialChars($catid);
    $catid = PREG_Match("/^[0-9]/", $catid);
    
    If (!$catid){

        Print "Error";
        
    }Else{

   - Add this code to line 138:

   }} //end if

   - Open showcat.php
   - Add this code to line 14:

    $catid = HTMLSpecialChars($catid);
    $catid = PREG_Match("/^[0-9]/", $catid);
    
    If (!$catid){

        Print "Error";
        
    }Else{

   - Add this code to line 105:

   }}

+ Links:

  - Http://www.DesClub.com

About | Terms of use | Privacy Policy
© SecurityVulns, 3APA3A, Vladimir Dubrovin
Nizhny Novgorod

 
 



Rating@Mail.ru