Issues (1751)

Security Analysis    not enabled

This project does not seem to handle request data directly as such no vulnerable execution paths were found.

  Cross-Site Scripting
Cross-Site Scripting enables an attacker to inject code into the response of a web-request that is viewed by other users. It can for example be used to bypass access controls, or even to take over other users' accounts.
  File Exposure
File Exposure allows an attacker to gain access to local files that he should not be able to access. These files can for example include database credentials, or other configuration files.
  File Manipulation
File Manipulation enables an attacker to write custom data to files. This potentially leads to injection of arbitrary code on the server.
  Object Injection
Object Injection enables an attacker to inject an object into PHP code, and can lead to arbitrary code execution, file exposure, or file manipulation attacks.
  Code Injection
Code Injection enables an attacker to execute arbitrary code on the server.
  Response Splitting
Response Splitting can be used to send arbitrary responses.
  File Inclusion
File Inclusion enables an attacker to inject custom files into PHP's file loading mechanism, either explicitly passed to include, or for example via PHP's auto-loading mechanism.
  Command Injection
Command Injection enables an attacker to inject a shell command that is execute with the privileges of the web-server. This can be used to expose sensitive data, or gain access of your server.
  SQL Injection
SQL Injection enables an attacker to execute arbitrary SQL code on your database server gaining access to user data, or manipulating user data.
  XPath Injection
XPath Injection enables an attacker to modify the parts of XML document that are read. If that XML document is for example used for authentication, this can lead to further vulnerabilities similar to SQL Injection.
  LDAP Injection
LDAP Injection enables an attacker to inject LDAP statements potentially granting permission to run unauthorized queries, or modify content inside the LDAP tree.
  Header Injection
  Other Vulnerability
This category comprises other attack vectors such as manipulating the PHP runtime, loading custom extensions, freezing the runtime, or similar.
  Regex Injection
Regex Injection enables an attacker to execute arbitrary code in your PHP process.
  XML Injection
XML Injection enables an attacker to read files on your local filesystem including configuration files, or can be abused to freeze your web-server process.
  Variable Injection
Variable Injection enables an attacker to overwrite program variables with custom data, and can lead to further vulnerabilities.
Unfortunately, the security analysis is currently not available for your project. If you are a non-commercial open-source project, please contact support to gain access.

lib/modules/mod_html.php (1 issue)

Labels
Severity

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
    /******************************************************************
3
     mod_html.php                                          Muze Ariadne
4
     ------------------------------------------------------------------
5
     Author: Muze ([email protected])
6
     Date: 26 november 2002
7
8
     Copyright 2002 Muze
9
10
     This file is part of Ariadne.
11
12
     Ariadne is free software; you can redistribute it and/or modify
13
     it under the terms of the GNU General Public License as published
14
     by the Free Software Foundation; either version 2 of the License,
15
     or (at your option) any later version.
16
17
     Ariadne is distributed in the hope that it will be useful,
18
     but WITHOUT ANY WARRANTY; without even the implied warranty of
19
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20
     GNU General Public License for more details.
21
22
     You should have received a copy of the GNU General Public License
23
     along with Ariadne; if not, write to the Free Software
24
     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
25
     02111-1307  USA
26
27
    -------------------------------------------------------------------
28
29
     Description:
30
31
	   This module includes a number of usefull HTML related tools,
32
	   e.g. a method to use htmltidy to clean/rewrite HTML, a word clean
33
	   method, etc.
34
	   This module calls the html tidy executable with the given
35
	   options and returns 'clean' html.
36
37
    ******************************************************************/
38
39
40
	class html {
41
42
43
		function tidy($html, $config)
44
		{
45
			global $AR;
46
			require_once($AR->dir->install."/lib/modules/mod_tidy.php");
47
48
			return ARtidy::clean($html, $config);
49
		}
50
51
52
		function clean($html, $rules) {
53
			global $AR;
54
			require_once($AR->dir->install."/lib/modules/mod_htmlcleaner.php");
55
56
			return htmlcleaner::clean($html, $rules);
0 ignored issues
show
The method clean() does not seem to exist on object<htmlcleaner>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
57
		}
58
59
		function cleanmsword($html) {
60
			/*
61
				rewrite : array with rewrite/remove rules
62
				preserve : array with exeptions on the rewrite rules
63
				rewrite : tag : attribute : value match = new value or false (remove)
64
			*/
65
			$rules = array();
66
			$rules['rewrite']['.*']['class']['mso.*']=false;	// class="msoNormal" etc
67
			$rules['rewrite']['o:.*']=false;					// <o:p style=".."></o>
68
			$rules['rewrite']['.*']['style']=false;				// style="..."
69
			$rules['rewrite']['font']=false;					// font tags begone
70
			$rules['rewrite']['.*']['v:.*']=false;				// v:shape="..."
71
			return html::clean($html, $rules);
72
		}
73
74
	}
75