Previous Thread
Next Thread
Print Thread
Rate Thread
#320776 02/02/2015 6:45 AM
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
I've been hard at work on the Suhosin detection and a Suhosin Information display which will give the user data on what setting is recommended, what settings are being used, and what the default data is.

Data for recommendations is utilized as referenced from PHPMyAdmin's doc's (I had to reference a big project).

A bug was also discovered with my initial check and will be updated in the next version (I used equal to or less than, rather than less than, in my test code and didn't get it updated).

If your webhost is running the recommended settings and you're still seeing the warning, you can fix this by editing admin/login.php
Find:
Code
// suhosin Check by VNC Web Services (http://www.virtualnightclub.net/)
if(extension_loaded("suhosin") && ini_get("suhosin.get.max_value_length")) {
if(ini_get("suhosin.get.max_value_length") <= 2048) {
$suhosin = "You may experience issues with a blank configuration file if you continue, please see <a href=\"http://www.ubbwiki.com/article/view/16/issues-with-suhosin.html\" target=\"_blank\">UBBWiki: Issues with suhosin</a>; this issue pertains to the settings of the suhosin module with your webhost. Your current suhousin length is: ". ini_get("suhosin.get.max_value_length") .".";
} else {
$suhosin = "";
}
}

Replace With
Code
// suhosin Check by VNC Web Services (http://www.virtualnightclub.net/)
if(extension_loaded("suhosin") && ini_get("suhosin.get.max_value_length")) {
if(ini_get("suhosin.get.max_value_length") < 2048) {
$suhosintxt = "You may experience issues with a blank configuration file if you continue. Please see \"<a href=\"http://www.ubbwiki.com/article/view/16/issues-with-suhosin.html\" target=\"_blank\">UBBWiki: Issues With Suhosin</a>\". This issue pertains to the settings of the suhosin module with your webhost.";
$suhosinsize = ini_get("suhosin.get.max_value_length") ;
} else {
$suhosintxt = "";
$suhosinsize = "";
}
}

The new check that I'm working on will check the following settings:
Quote
suhosin.get.max_value_length < 1024
suhosin.request.max_vars < 2048
suhosin.post.max_vars < 2048

Versus:
Quote
suhosin.get.max_value_length < 2048

For users with Suhosin installed, if you'd be interested in testing the new Suhosin check/info center PLEASE send me a PT or an email james[at]virtualnightclub[dot]net and I'll give you the latest set of coding (you must be running 7.5.8+ in order to use the new code).


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Sponsored Links
Entire Thread
Subject Posted By Posted
UBB.Threads Suhosin Check Gizmo 02/02/2015 1:45 PM
7.5.9 suhosin check. Ruben Rocha 02/02/2015 1:45 PM
Re: 7.5.9 suhosin check. Gizmo 02/02/2015 2:02 PM
Re: 7.5.9 suhosin check. Ruben Rocha 02/18/2015 11:28 AM
Re: 7.5.9 suhosin check. Gizmo 02/18/2015 2:57 PM
Re: 7.5.9 suhosin check. Ruben Rocha 02/18/2015 5:11 PM
Re: 7.5.9 suhosin check. Gizmo 02/18/2015 6:34 PM
Re: 7.5.9 suhosin check. Gizmo 02/18/2015 7:04 PM
Re: 7.5.9 suhosin check. Gizmo 02/18/2015 7:23 PM
Re: 7.5.9 suhosin check. Ruben Rocha 02/19/2015 11:39 AM
Re: 7.5.9 suhosin check. Gizmo 02/19/2015 3:26 PM
Re: 7.5.9 suhosin check. Ruben Rocha 02/19/2015 4:18 PM
Re: 7.5.9 suhosin check. Gizmo 02/19/2015 4:22 PM
Re: 7.5.9 suhosin check. Ruben Rocha 02/19/2015 4:28 PM
Re: 7.5.9 suhosin check. Gizmo 02/19/2015 4:32 PM
Re: UBB.Threads Suhosin Check Ruben Rocha 02/19/2015 4:47 PM
Re: UBB.Threads Suhosin Check Ruben Rocha 02/20/2015 10:40 AM

Moderated by  Gizmo, isaac 

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
JAISP
JAISP
PA
Posts: 449
Joined: February 2008
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)