A more detailed description of the Jura F90 vulnerability.

Quarta-feira, Junho 18th, 2008

Só pra situar: Ontem foi descoberta uma vulnerabilidade em uma máquina de café que possui um it para conexão à internet. Segue um e-mail (pós-vulnerabilidade) que explica “bem” a situação.

De: Craig Wright [mailto:Craig.Wright@bdo.com.au]
Enviada em: quarta-feira, 18 de junho de 2008 03:10
Para: security-basics@lists.securityfocus.com; bugtraq@securityfocus.com
Assunto: A more detailed description of the Jura F90 vulnerability.

The issue is a lack of input validation. OWASP would be a great learning exercise for the coders on this product. It seems to be assumed that only trust-worthy users will connect only to trust-worthy sites. I could not find any evidence of input validation.

Through the magic of Web Scarab and Paros proxy, one can capture the Internet communications used by the F90 Internet Connection Kit software. What you soon see is that the software does not account for either bypassing the local application and changing the input or in spoofed and re-directed sites.

The software does not validate the site it gets the information from nor does it sufficiently validate the input to the software.

At the moment as I think there are so few people as crazy as I am who actually have to have a gadget just as it is Internet connected; this is not likely to become a widespread attack vector.

The software is an oversized web proxy with other stuff to connect to the coffee machine thrown in. Jura did not make the assumption that an evil attacker could purposefully modify and publish “evil” coffee “recipes.

I have been taking the updated SANS@Home 610 course. I have a GREM, but Lenny and the other guys have added an additional component to the Reverse Engineering Malware Course. So I had to take it.

The course focuses on analysing and reversing malware, but IDA and Olly work on binaries of all types and the bad combination of a bottle of good resiling and 9 coffees after midnight is not a good combination. Hence I decided to attack my coffee maker and the control software.

There are certain aspects of code (like the ever faithful GETS() function) that should be beaten from existence. Others need to be securely configured such that all the required variable fields are entered correctly (see SPRINTF()). Unfortunately the coders at Jura did not consider that “bad people” would ever attack a coffee maker ;) .

There are 2 main attacks that I have noted,

1 Loading a malicious setting or recipe into the device causing a “coffee overflow” etc.

2 More seriously, not validating the input correctly coupled with a lack of authorisation of the source and nothing to stop invalid data at the host means that malformed strings can be fed to the software that can either crash the system or if crafted correctly run a binary on the host.

So, as most people who check this list I no doubt know, not validating input is bad. Trusting the web as you have a piece of custom software that is closed source and a belief that users are all nice is bad.

Regards,

Craig Wright GSE-Compliance

PS for DMCA compliance reasons I would state that I was not reversing the software, but rather inputting unusual coffee recipes that had a strange binary flavour ;)

Craig Wright

Manager, Risk Advisory Services

Direct : +61 2 9286 5497

Craig.Wright@bdo.com.au

+61 417 683 914

BDO Kendalls (NSW-VIC) Pty. Ltd.

Level 19, 2 Market Street Sydney NSW 2000

GPO BOX 2551 Sydney NSW 2001

Fax +61 2 9993 9497

http://www.bdo.com.au/

Ladrões usam eeePc para hackear um ATM

Quarta-feira, Abril 23rd, 2008

Não vou comentar a reportagem (clique na figura acima para assistir), mas eles utilizaram um eeePc para colocar dentro da ATM.

A máquina com Ubuntu não foi craqueada

Segunda-feira, Março 31st, 2008

Acabei de ler na linux.com que a CanSecWest acabou e a máquina com Ubuntu não conseguiu ser invadida.

Os participantes puderam escolher entre três máquinas para hackear: um VAIO VGN-TZ37CN rodando ubuntu 7.10, um Fujitsu UB810 rodando o Vista Ultimate e um MacBook Air rodando OS X 10.5.2. Todos os sistemas operacionais estavam atualizados.

Os participantes tinham 30 minutos para explorar os códigos nos equipamentos e ler um arquivo nos laptops. Quem conseguisse levava um prêmio (que ia diminuindo conforme os dias passavam) e o laptop.

A primeira máquina a ser crackeada foi o MacBook ao meio-dia do segundo dia e, no terceiro dia às 18:00 (quando estava acabando a CanSec), o vista foi a lona com uma falha no Flash.

A única máquina que ficou intacta foi o Ubuntu.

Não fazendo apologia ao linux, mas estou rodando o ubuntu no note há algum tempo e de longe foi o cara que menos me deu dor de cabeça e que me faz ser mais produtivo.