Friday, January 28, 2011

Combinations Of Digits

[WSIS] Evalsmsi install

I continue my adventures on the study of the WSIS, but I'm taking a break on standards to give you a tool for the evaluation of WSIS: evalsmsi . This tool was introduced by Michel Dubois during the rump session of SSTIC 2009. Such a solution, what is more free, I know of no other: it seems important to get involved.


In fact, this position is perhaps nothing!

The purpose of this post is to install the solution but the reality is there is already a virtual image -made and then there's nothing to do but to import it into his virtual box . Except that about me, I had errors with the *. ova so I am not discouraged so far and I took the tar.gz (or player you are it is not;)).
To do that, I started a new picture so I take Ubuntu 10.10 everything from e beginning. Some things you will therefore probably not useful. In any case, even if the author has thought about making a README.txt, I think a tutorial will make life easier for some.


So this post will perhaps eventually serve ...

Step 1: Installing packages

The solution is based on a LAMP architecture. We install the packages accordingly. Note that we must create the database before installing phpmyadmin :
jer001 @ ubuntu: ~ $ sudo apt-get install apache2
jer001 @ ubuntu: ~ $ sudo apt-get install-server mysq
jer001 @ ubuntu: ~ $ mysql-u root-p create evalsmsi
jer001 @ ubuntu: ~ $ sudo apt-get install phpmyadmin

Step 2: Make the main restrictions

This would be an insult to talk about hardening but minimum security measures seems necessary:
  • We start by changing the alias to reach the administration interface of phpmyadmin, it is less visible story:
jer001 @ ubuntu: ~ $ sudo vi / etc / phpmyadmin / apache.conf (add this line):

  • avoided to provide the version of PHP, a matter of principle (variable expose_php to Off ):
jer001 @ ubuntu: ~ $ sudo vi / etc/php5/apache/php.ini

  • We go to the configuration of Apache to hide to prevent access to the file config.inc.ini of phpmyadmin , hide banners, limit access to the application by filtering IP:
jer001 @ ubuntu: ~ $ cd / etc/apache2
jer001 @ ubuntu: ~ $ sudo vi apache2.conf # add these lines ...
jer001 @ ubuntu: ~ $ sudo vi conf.d / security # verify / change the value of these variables
jer001 @ ubuntu: ~ $ sudo vi sites-available/default # add lines
jer001 @ ubuntu: ~ $ sudo / etc/init.d/apache2 reload

Step 3: Installation and configuring the solution

# We will install the solution in a directory accessible by the Web server
jer001 @ ubuntu: ~ $ cd / var / www
jer001 @ ubuntu: ~ $ sudo wget http://downloads.sourceforge .net/project/evalsmsi/evalsmsi_2.3.1.tar.gz
jer001 @ ubuntu: ~ $ sudo tar-xzvf evalsmsi_2.3.1.tar.gz
jer001 @ ubuntu: ~ $ sudo rm evalsmsi_2.3.1.tar.gz
# is assigned the rights of web servers to the directory where the solution is localized
jer001 @ ubuntu: ~ $ sudo chown-R www-data: www-data evalsmsi /
# is recovered file to configure the SQL database.
jer001 @ ubuntu: ~ $ sudo gunzip-d / var / www / evalsmsi / docs / evalsmsi.sql.gz

To start the SQL queries in this file, I simply copy the contents of the file and paste it into phpmyadmin (SQL tab) and "Go" (click):


is created a new user in MySQL for database management "evalsmsi. I do it via phpmyadmin again (tab "Privileges"):


It provides data connections to the DB to the solution (including the financial information):

jer001 @ ubuntu: ~ $ sudo vi / var / www / evalsmsi / functions.php
We check that everything works in the interface of Evalsmsi> Click on "Access establishment" ...

... and enter the sideboards of an admin (eg admin1 account). If it works, you see this page:

Success!


Conclusion

Few master the technical and organizational security. However, the WSIS is aimed primarily at this second category of people. So why not allow them to use such a solution without being blocked by the technique.
It remains a lot to say as securing the platform and especially the use of the solution. Perhaps the subject of a future post?

0 comments:

Post a Comment