Dotclear

Changeset 1115:2b3f369c6456


Ignore:
Timestamp:
03/13/13 15:21:17 (12 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
2.5
Message:

Revert to previous swfupload.swf and quick & dirty hack to prevent XSS vulnerabilities

Location:
inc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • inc/load_plugin_file.php

    r270 r1115  
    4747} 
    4848 
     49// Prevents XSS vulnerabilities in swfupload.swf 
     50if (((isset($_GET['buttonText']) && strpos($_GET['buttonText'],'<') !== false) || 
     51     (isset($_GET['movieName']) && strpos($_GET['movieName'],';') !== false)) && 
     52     strpos($_GET['pf'],'swfupload.swf') !== false) { 
     53     { 
     54          header('Content-Type: text/plain'); 
     55          http::head(403,'Forbidden'); 
     56          exit; 
     57     } 
     58} 
     59 
    4960$allow_types = array('png','jpg','jpeg','gif','css','js','swf'); 
    5061 
Note: See TracChangeset for help on using the changeset viewer.

Sites map