Wednesday, June 30, 2010

Knowledge Adventure Cubefield

[HITB Conference] Hacking SAP - Overview 2 / 2



Second and last day of training on SAP security. Many things but it's still quite interesting. We continue our tour!

The authentication security
On SAP systems, it is possible to connect several different ways. In particular, it is possible to connect:

via a login / password (classical);

SNC (Secure Communication nework) can connect to using an external library ( eg NTLM)
    via a certificate
  • ;
  • by
  • ticket (as part of an authentic 'by including SSO;
  • PAS (Pluggable Authentication Service): use of another base 'authentic' (eg LDAP)
  • Well, we should this is not the choice that is missing. Afterwards, they are not all equal in terms of reliability ...
  • safety of users
Firstly, there are several types

user. The type assigned depend on the connection and the expected safety. For example, type
Dialog allows direct access to SAP. This is not the case for the type system
but it requires a password that does not expire.
An Unusually, there are quite a few default accounts

on an SAP system. Obviously, it is recommended lock the accounts in question or at least, to change passwords. The privileged account is SAP *. Hey, I think we saw that the account had a password by default trivial ... Moreover, this account can not be deleted! However, there are ways to secure such access.
policy passwords
encoding passwords has evolved as and versions of SAP. Today, most complexes are hashed with SHA1 and receive a random salt. The precedents are breakable

patched with john. Then all parameters are conventional and expected (blocked account, password history, expiration, etc..).
Permissions

A user logged in can not (always) do whatever he wants. it is subject to authorization. Checks are performed before a user can perform a transaction (as defined in SAP) for example. A user with the profile
sap_all
is most interesting for an attacker, in effect, it can perform any action.

Safety Communications

An attacker can have fun to interact with the protocols used by SAP for information on the system or exploit vulnerabilities. these include:


RFC : Starts functions on remote servers;

External Commands: SAP allows a transaction to interpret system commands (on the operating system) .
  • security environments
  • In SAP, we find three primary instances:

environment Development (DEV);

environment
qualification
(QAS)
    environment
  • production (PRD).
  • Even though it is separate instances, they are connected to a single base ( common transport directory ). It is possible
  • cloissoner rights between these environments and within the base. Thus, a developer can not affect the integrity of production data for example. Configuration is done via SAP transaction.
security programming language (ABAP)

miscoded A module may allow attacks critics. In this case, they can afford to bypass the restrictions of rights applied to a user. This language can also be used to execute SQL commands and recover data (bypass authorization checks (see above)).


few hidden doors to the holy grail

There are several points of entry that an attacker will be happy to use to reach its target. These are services that, when activated, provides a Web interface

to be more or less well protected ... (Who said it could be accessible from the Internet??;)
It may particularly affect the application via the administration interfaces often poorly protected (according to some research on google ...).
http://serveur:port/chemin_vers_WGate/service/!?variable
http://serveur/scripts/wgate/webgui!? ~ Client = 000
http://serveur:port/chemin_vers_WGate/admin /!

  • Conclusion
  • 're done for training. I have not been exhaustive but I think I have provided a good overview. Here especially given the different security points to be addressed for securing an SAP system ... or vectors attack for an attacker.
  • We will not talk without SAP are intended for two confer on the subject. Also, I hope you find the opportunity to experience a return on an audit to illustrate this theory in practice:)




Tuesday, June 29, 2010

Sean Cody Favorite Top

[HITB Conference] Hacking SAP - Overview 1 / 2


After SSTIC, we chain HITB with Amsterdam and this time I'll try to keep up during the four days to update my blog daily. Enrolled in training SAP Security, I will take this opportunity to give you an overview of these first two days. Later, I will give you a practical example;)

What does the beast?

SAP ERP is used by a lot of business because basically, it allows you to manage production from beginning to end. By cons, it's heavy to put in place and safety is rarely a priority integrators. Nothing new is often like that. But it also just means that there are ways to have fun;
So rather than give you a course on SAP (besides, I'm no expert!), I give you the main elements to take into account for his safety. The heart
is represented by the SAP system containing the particular database (eg Oracle);
In this database, there are usually some very interesting things: p;
To connect to the SAP platform, we bind with

customers to consider as a gateway
    actually. Concretely, we can use as an interface connection
  • SAPGUI
  • and address these customers. You go get this tool and you'll realize that it pays. And as you do not come to the idea of using a version Cracked, there is actually a JAVA version for free here
  • ;
  • It is possible to connect from outside the SAP customers. In this case, one or two layers interposed: SAP Router and Webdispather. We will discuss these elements further; SAP, it's still very complex and when it works it well. That's why security is often overlooked ... Despite all this, I do not want you to be lost. I propose to add a schema.
  • The SAP security (usually from external)

As promised, we will talk about two key components that bring security to the SAP architecture. These components are used for connections to networks that are not generally trusted (eg internet).


SAP Router
For starters, the SAP Router
. We will find typically on port TCP/3219. Including the ability to filter the IPs allowed to communicate with SAP customers. 3 permission levels are available: D


deny; P allowed;

and S to allow only flows SAP (which is circumvented ...) By default, this component works Whitelist, which is a good point ... unless the director finally put an equivalent rule to "permit any any
    " because he lacks the courage to write all the permissions and again, it has to forward all!
  • For each rule, we can associate with the IP (or IP address range) allowed a password (shared key). To be more clear, here is a sample rules file:
  • S 192.168.1 .* SAProuter password
  • D * * * * *
Another shortcoming of SAP Router, these passwords are in clear visible in the file configuration. Where SAP router is configured, it would take control of the machine of a user with the correct IP address. Then, how to get an account? It is clear in the user profiles ...
The WebDispatcher

This time, we address the application layer. Like the SAP Router, the WebDispatcher will operate from a whitelist for URLs, but this time allowed (not IPs / services).
There is a default account that may be interesting to know:
icmadm
. But the password is randomly generated. You can always try to find the password : The administration interface is found at the following address:

http://host:port/sap/wdisp/admin/default.html
The WebDispatcher may have other functions such as load balancing (load balancing) and encryption of communications (from end to end or not depending on whether one wishes to analyze the flow for example).

Finally, an example configuration file (we find the P and D respectively for

Permit and Deny
):


P / sap / authorized.cgi D *. php D * The SAP security in general



SAP Instances

To attack the SAP instances, we need two elements: the instance ID (SAPID)

an account (username / password).
Regarding the first element, it is generally the same as the instance of the database. If we find it, we would more than likely have the desired item.
As auditors, it exists by default. Indeed, apart from three SAP customers created by default, others will be generated for login / password:
    SAP * PASS
  • Other components

The architecture has a SAP database and a system operating at least on the underlying database. Several solutions can be implemented: Oracle, Informix, for example side database. Linux OS and Windows side. These key elements within the architecture should also be secure.
There is much to say and it is not strictly specific items mentioned. We do not detail these points but it is important to note that they must be treated so as not to be the weak links of the architecture implementation.

Petite conclusion


We begin to address the security of SAP, while seeing some potential avenues of attack during our explanations.
To facilitate the task of an auditor (or an attacker ...), there are platforms such as audit
BIZSPLOIT
I will certainly speak to you and that I will SAPSPLOIT also since conf will be dedicated.

Thursday, June 24, 2010

Sound Blaster X-fi Utility

Why not you??

Be paid a dollar each time a new member signs up through you! It's FREE
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
payment from $ 25 to your paypal account. (More knowledge has been paid)

Friday, June 18, 2010

Worksheet Find The Hazzards

[ARJEL] Security and online games


Recently, online gambling games are allowed on the canvas in France, with the exception of poker games that will be very soon. An obvious issues Security comes into consideration. When it was announced 2 billion turnover in this market, it is enough to attract decent players ... and other less honest.

The ARJEL, what is it?

The
ARJEL
is the "Regulatory Authority of Online Games". Its particular role is to ensure that online gaming is conducted according to very precise rules in terms of legislation in addition to the very rules of the game This authority was widely regarded as a safety specification. An operator may legally offered its online games if and only if it is consistent with this specification. We will show some points of safety procedures in this part of online gaming.

The ARJEL, specifically, what happens?

To know the exact requirements of the authority, the reader is reading the document specifications drawn, downloadable

here.
If there is one principle to remember is the traceability. In this case, the gaming operations must be made. It should be possible to trace the actions of a player through the logs. Even better, the traces must be stored securely to ensure the integrity of logs. Specifically, the traces must be:

stamped;
chained;
sealed; available to the ARJEL.
    In total, the traces must be kept for 5 years.
  • A second principle is to establish the
  • confidentiality of data. For this it is requested that communications are encrypted. In addition, cryptography must follow established good practice. Notably, the level of security must be sufficient for the following:
  • generator pseudo-random numbers;
the hash algorithm;

algorithms based on symmetric or asymmetric key employees. The ARJEL also takes into account the
    architecture of the platform for online games. First, several components are defined: a front (directly related to the user), the gaming platform (pure application part), the platform of the ARJEL with a link between the operator and the authority: it must indeed be able to recover data at any time for inspection. Then safety equipment are expected as filtering equipment. On the systems themselves, they are expected to be secured (updated, no password by default, system hardening, etc.)..
  • Regarding
  • precisely controls, periodic audits and / or at the request must be made. These audits will ensure the safety of the game software and compliance. The technical audit will be extended to the audit code to check in depth software security.
  • The check may be made promptly by the ARJEL accessing the vault where the operator will be archived in the footsteps of gambling operations in authority should therefore have access.
  • Then, means of supervision should be established. Finally, the player's identity must be considered in order to precisely identify it and ensure that gambling is not prohibited
To be approved, the
stringent criteria must be respected as that:
CSPN certification or better for the safe, strong authentication

must be necessary to connect to the safe (management of access rights profiles defined according to 4);

a reverse-proxy application or a similar solution should be deployed in front; the clock used to be regarded as reliable, ie + or - 1 second of UTC
    architecture for high availability must be established. The
  • ARJEL goes even further in terms of security in the sense that it goes beyond technical security. On the one hand, organizational safety is taken into account with, for example:
  • management Incident
  • the backup plan;
  • organization (human, geographical implementation, security policy, etc.).
etc..
    other hand, physical security:
  • physical access control;
  • personnel management;
  • etc..

  • To conclude ...
  • must say what is the ARJEL wanted to do things well and there are people there looked really know something (who said that this was not always the case?? ;)
  • addition to the requirements, they are realistic. For evidence, avenues for implementation are provided (eg, process traceability).
Also, the Authority has taken account of security for different areas: organizational and technical physics. The specification is not finished yet but so far, it already provides all the chances that the games take place with equal opportunities for all:)



Monday, June 14, 2010

Cervix Softened Right Before Period

[SSTIC 2010] Day 3




A third day that ends in beauty this 2010 edition!

Morning
Trusted Computing: current limitations and prospects
Uh ... it looked interesting ... ;)
JBOSS AS: Operation and

security is a subject that interests me a lot for several reasons:

pentest and it talks about it, i like! ;)
often encountered this kind of platform during audits;

I addressed this subject in MISC with a colleague delighted to see what's new.
After reviewing the work already done on the subject (including the RedTeam), he addressed the safety of new versions, ie 5 and JBOSS 6. In short, it's better but still exploitable flaws! Indeed, security is not applied by default or so badly (remember the security of management interfaces on GET and POST requests only ...). Security is possible, but unfortunately, rarely addressed in business, in show cases encountered during the audits.
  • Audit. NET application complexes / Nicolas Ruff
  • The return of Nicolas! Conf much his last year was to bring an open mind on the ISS by admitting its failures and deal primarily a reflection, provided here is a technical subject that has been presented. The demonstration was carried out with disconcerting ease.
  • code. Net is scrutinized and the example of a Microsoft did fly: they bypass the license form of a product of karaoke.
only regret we have not had the opportunity to discover the vocal talents of Nicolas! ;)


MLState, language OPA / Mathieu Bodet


Say this conference allowed me to compare my N900 with future iPhone 4 of my neighbor ...
In fact, this conference could have been much as it addressed a topic that we encounter every day during our audit: non secure code that brings diverse injection. Based on safe languages (eg OCaml), the solution presented certainly brings a lot of its complexity and its level of sophistication. For finger on what type of language, I can assure you that this is not simple. Unfortunately, the orientation of the presentation was not chosen with an introduction to Web attacks as an intro ... which lasted 40 minutes! (
Really sad but I am delighted to see a presentation that goes into the heart of the matter within minutes and see how the solution overcomes the shortcomings of security within codes and to what extent.


Afternoon




PoC (k) ET, the details of a rootkit for Windows Mobile 6 / Cedric Halbronn
I've seen this conf at the seminar of CSEC and Once again, Cedric shows that it is possible to do everything with Windows Mobile 6 for the user ... but for an attacker. To have exchanged a lot with the subject with Cedric, we realize that unfortunately can not do much (multi-user OS, lack of security settings natively, ease of circumvention protections ...).
Problem, we realize that once the rootkit installed (via the memory via WAP Push), including the attacker has access to all confidential data contained on the smartphone. Well, bah it's done!


Project OsmocomBB / Harald Welte
The following presentation of the speaker: Project OpenBSC
At both conferences, we have the right to the highest level! We speak here of GSM networks and their security weaknesses. It's a lot of work done by analyzing the specifications Harald networks GSMs. we then made a state of the art of these networks. But more than theory, it also has the right to practice.
By creating its own network, Harald knows the subject and through his model shows the possibilities in terms of attack. And we do not see one thing: nothing can stop our speaker!




ANSSI / Patrick Pailloux


The director of the National Security Agency (formerly DCSSI) describes the agency and its work. In addition to audits for different jurisdictions, the agency discusses very interesting topics such as concrete and security of electronic bracelets for prisoners, the security of electronic voting systems, etc..
Clearly, here too, it is recruiting! Then there is a small competition DGSE / ANSSI but quite cordial;)
That is the end of the edition of SSTIC. This year, I brought my reviews (too) late but will have to do better next time! :) I have the chance to participate in HITB early next month: I will try to give you back as soon as possible to catch me;)

Invitation Letter To Visit Kosovo

[SSTIC 2010] Day 2



A second day more interesting to me;)



Morning

Security Java runtime platform: Limitations and suggestions for improvement
After a brief overview of how particular JAVA, speakers showed us the limits of this language. However, it has security mechanisms and it is far from true of all languages. In this case, controls are carried out at three levels:
to compile;

loading the class; execution dangerous for instructions.

Unfortunately, the weaknesses are well known about this language. Moreover, MISC's file No. 45 was devoted to this subject. In particular, the vulnerabilities are due to misuse of security mechanisms (when they are used ...), the privilege level of standard libraries and the eternal concerns of performance at the expense of safety.
To summarize the solutions proposed, we can mention:
  • formulating development guidelines and configuration settings;
  • auditing code for functions sensitive
  • the application of good practices such as limiting the number of libraries used;

increase confidence in the JVM and enjoy its possibilities.
  • Analysis of the effectiveness of the service provided by an IOMMU
  • A good topo on the protections and limitations of an IOMMU. A demonstration went well. In short, interesting! In short, such a protection system to control access to peripherals and memory. However, weaknesses are noted on the PCI devices ... like yours, would not talk we do before that?? A track that has been used here also shows the interception of flow (here the video stream) between two machines.
  • Some elements
security network cards / Loïc Duflot
Then there is the heavy tackles! When it comes to conducting our famous MITM attacks directly on the canvas, no more laughs. You've dreamed of controlling the network (via network card so) to anyone on the Internet ... they did!
Well, I exaggerate a little bit and it was a POC, but that seems to work well and could be very bad if such knowledge were in the hands of attackers ...
Worse, it has plenty of time to take action, given the extremely slow time for the correction of a firmware drive this type of material.


Afternoon




security of voting systems / Frederic Connes

This is primarily a reflection of a proposal, a protocol for secure systems electronic voting. This subject is debated because it is difficult to provide a level of security on this very subject when the issue is very important. And what is more, some states in the U.S. have bad memories ... Meanwhile, the French are less and less bother to vote (just look at the rate of abstention to realize it on) and there is a solution that could be a solution ... practical in any case because the plane of the ISS, this raises new problems.

Facebook Applications: What are the risks for the company?
An interesting presentation in the sense that the experience was well run. Now, why talk about business while this application certainly should not be allowed in the office. There are certainly more appropriate social networks. And finally, I would say that home users are probably most impacted. To return to
the presentation itself, the two speakers wanted to do a demonstration of a malicious application and they did it seriously! After picking up members through an application whose role was to know that we had deleted his contacts, they showed us that multiple data were available. They also showed some weaknesses in passing on the partitioning provided by applications.
Also, I think the ideas that would "trap" a large number of users are certainly numerous: just look at the existing communities (who do not care about spelling elsewhere;) and often raise the curiosity of users.





Project OpenBSC / Harald Welte


I will take this very well presented in the following note that a similar subject has been treated.
The rumps sessions
So no rumps "fun" this year. I must say that we were well served last year, including the breathalyzer connected to the WFP), but several rumps on PenTest (my favorite subject!) PenTest as a Blackberry Server, the case study of pentest one of Company X (or Y)), operation of Oracle, etc. ... In short, frustrating to see these topics in 5 minutes.


Wednesday, June 9, 2010

Rice Krispie Treats Ingredients

[SSTIC 2010] Day 1



A new editions, new conferences and new things ... or not!


Morning

Information Systems: Issues and Challenges for Signals Intelligence Technical / Bernard BARBER / DGSE
We can say that this edition begins so quite original: a presentation of the DGSE ... who said a job interview? :) Seriously, passionate this medium, I listened carefully keynote. The presentation helped to debunk this particular environment and show what happens in real life. Well, I knew a bit to find a specific person but chuuuuuuut ... we may be listening? Overall, we learn the various bricks of information in France, the intelligence organization that is based on the three "see - feel - listen." It does not announce that France is the best in the field (I want to say because I have seen speakers chauvinists!;) But we learn that it comes out wrong and that the threats are particularly known priotisées and lacks "fair" means. Our country seeks to recruit in this direction and further improve its information services. Statements about the IOL (or Offensive Computing Fight) are in effect and will be discussed at conferences that will follow. However, Bernard Barbier, our speaker, said he must first learn to defend themselves: "This is not true!".

Tattoo medical imaging data / Gouenou Coatrieux
When I read the title of the conf, I said "some watermarking! But what will we learn?" . Indeed, we already had a conference on this subject last year and it was, to my taste, very well done so what the conference could make more? In reality, a totally different angle has been discussed here since they were treating the subject in a different domain than the media: the medical field and also take into account new constraints. So finally, the conference did have an interest but we remain compartmentalized to a particular environment and what medicine it is rare that we have to work in this area ... but maybe it's the problem! A worm called
confiker
in medical scanners, it does remind you of anything? Did not speak precisely tonight with a glass (and yes I took a coke and I assume even publicly!:)). So broad it would take an interest in security in the medical community.


Visualization and analysis of dynamic risk for cyber-defense / Philippe Lagadec

The key terms in this presentation are "dynamic defense." More specifically, it is responding to attacks on SI Live. For this, four principles are considered:
Regards;

East Decide;

Act.
    To observe, we know how and what the means are not lacking. Precisely! Indeed, many equipment and devices in general we back logs. Better still, there are aggregators logs. Better yet, log correlators we call SIM (Security Information Management). However, market tools are not satisfactory or at least, not always.
  • Small memory: I was talking about OSSIM tool there for some time now and it is part of the family of SIMs. The challenge of the tool was presented to the operating log the simplest possible and most useful! And this, to make the right decisions and act accordingly to defend himself and now, full circle. And the tool succeeds in the sense that we have in fine mapping engine and graphically displayed in an interface that seems ergonomic. To obtain such results, it is possible to customize the tool by assigning values to assets and criticality will be better evaluated.
  • actually OSSIM was already quite a few things. I would pass on defects in the latter but it brought quite a lot of elements for customization and mapping subnet and less user-friendly and ergonomic course. While this presentation has shown us a solution that will enable decision makers to have useful information and not just "noise" because let's not forget, "too much information kills information". When it comes to dealing with events, regularly end solutions in a closet as too complex.
  • Nevertheless, a small disappointment that there was no more advanced in this field since that time. Or improvements located on the more technical aspects that have not been addressed?
  • Castafiore: Automatic tunnels illegitimate by statistical analysis / ALLARD and Fabien Mathieu Morel

This is a new and interesting topic! We remain in the defense information to protect its information This involves identifying illegitimate flows passing through. Specifically, it is not a solution to prevent illegitimate because the flows are identified ... once they have been sent! But the solution that allows Castafiore doing that aims to locate and to undertake activities including forensics to find the perpetrators of these flows illegitimate.
And how do we do? To classify flows according to their protocol, several parameters are taken into account and their aggregation can be a relatively accurate idea of its nature. For example, the parameters in question will be the duration of a stream or the number of packets exchanged between the client and the server or the latency between each exchange, etc.).
Data is retrieved simply using TCPDUMP for analysis. Once the analysis is done and flow classified, it can be treated accordingly. A graphical interface has been implemented in the solution Castafiore to manage the flows considered illegitimate. By combining both methods of analysis are RandomForest BHM and the results quite satisfactory could be obtained.
course, improvements are always possible but in the field, there are few equivalent and this type of solution could be used in many of these companies (who said "almost all"?:) where users try to bypass network protections that are so difficult and sometimes cumbersome to implement .


Afternoon




Reflections on an action plan against botnets / Eric Freyssinet

haaaaaaa botnets! We hear talk about this evil and for good reason. The durability and strength of this threat stems from the fact that it relies on weak security that can be found on the desktops of users. And whether in private or in business, the element that we do not control is often the workstation. Suffice it also to do some research on Google when a new vulnerability comes out to realize how many machine could be infected and serve as a zombie in a botnet. And this time we are also talking about servers. So a topic that has been, is and will be valid. The presentation helped formalize the subject and to show that communication effort and research is actually done through the press and computer security laboratories. It comprehensively that he proposed an action plan aimed at deal with different axes: the axis
human condition is known as sensitization;
axis technique: we speak of prevention, detection and response system (the tools are there!)
the Legal axis: this is called for clarification of the legislation.

The next step would be to synchronize all ...
  • Virtdbg, a kernel debugger using hardware virtualization / Christophe Devine and Damien Aumaître
  • Well, some say I'm biased but for me the best day of the conference. A change in the work of Damien which continues to push the limits of the access system. With Christopher, we are witnessing a duo. The objective of this conference is to get access via the PCI bus (while the Firewire bus had been used last year). In this case, the team has based its solution on the hypervision and stealth (including taking over the tech advanced rootkits). Well, I will not go into details because we go to another level;)
  • At the conference, the duo targeted a Windows 7: another success! There is still room for improvement but we charge to patients as ... until the year next!



Interested

-vou s right ... before the law is interested in you / Eric Barbry


Like every year, a conference on the law on security of information systems is presented to us and that's good. Moreover, no presentation on organizational safety this year. Indeed, the information security needs to be addressed from the perspectives of technical, organizational and legal to achieve his ends (or at least do his best).
Here, a dynamic presentation that allowed us to tour the different laws affecting the ISS. We are not going into detail of the laws but it was not the goal. In fact, he also wished to make a speech rather striking and we show our commitment to all vis-à-vis the laws on the subject. With new laws such as the infamous "Article 34" and the famous (for other reasons;) web laws, companies and users are now involved whether they like it or not. Indeed, everyone has obligations and everyone is required to hold. In short, will have to be square!