Intro
Authentication always been one of the main concerns when developing web applications. This is a first post of a series of three (that’s what I’ve initially planned, I may extend it)that tries to shed some light on this subject. Although all examples in this series are presented using PHP and PostgreSQL, you’ll notice that the concepts involved are pretty common to other web technologies as well.
Part 1 – Concepts
I always liked to think before doing something or, in the worst case, think while doing it. Both strategies work for me, although the second one always requires more time re-coding everything =) The important thing here, and this is commonly overlooked in most development environments I’ve watched in almost 15 years working on the web, is to define which are the concepts involved in authenticating a user, how the application (or, at least this part of the application) should flow.
Read more…
[pt-BR]
It’s been a while since I’ve last teached a class and I must confess that I’ve missed that a lot. It’s a funny thing to say for a guy that less than 5 years ago was terrified to speak to an audience. Teaching classes made me a better professional and human being and it’s something that I cherrish.
On February 09 I’ll be back at Sisnema (Porto Alegre) to teach “PHP – Module III”, which covers some “advanced” topics on the language, such as, but not limited to: Debugging, Error Treatment. OOP and Security.
On March 28 I’ll be back at Acctiva (Sao Paulo) for yet anothersecurity hands on, promoted by the always competent Tempo Real Eventos. On this one I’ll cover each and every vulnerability listed on OWASP’s TOP 10 and how to address them when developing web applications using PHP. More information and subscriptions @ http://www.temporealeventos.com.br/?area=88
Hope to see you all there!
—
Já faz um tempo desde a última vez em que dei aula e eu devo confessar que senti falta disso. É um troço meio engraçado de se dizer de um cara que há menos de 5 anos atrás ficava apavorado com a idéia de falar para um público. Dar aulas é algo que me tornou melhor como profissional e como ser humano e é uma atividade pela qual eu tenho muito carinho.
Dia 9 de Fevereiro estarei de volta na Sisnema (Porto Alegre) pra lecionar “PHP – Módulo III”, que cobre alguns tópicos “avançados” da linguagem, como por exemplo, mas não limitado à: Debugging, Tratamento de Erros, POO e Segurança.
Dia 28 de Março estarei de volta à Acctiva (São Paulo) para mais um mão na massa de segurança, promovido pela sempre competente Tempo Real Eventos. Neste curso vou cobrir no geral e em detalhes as vulnerabilidades listadas no OWASP Top 10 e como tratá-las no desenvolvimento de aplicações web com PHP. Maiores informações e inscrições @ http://www.temporealeventos.com.br/?area=88
Espero ver todos lá!
[pt-BR]
It’s a great pleasure to announce that I’ll be at Brasilia for the first time on October 3rd and 4th for the third edition of Festival de Software Livre. At the ocasion I’ll be presenting “PHP & Segurança: Uma união possível”, which speaks about best practices and most common pitfalls in developing PHP applications.
—
É um prazer anunciar que estarei em Brasília pela primeira vez nos dias 3 e 4 de Outubro para a terceira edição do Festival de Software Livre. Na ocasião estarei apresentando a palestra “PHP & Segurança: Uma união possível” que fala de boas práticas e as armadilhas comuns no desenvolvimento de aplicações PHP.
[pt-BR]
Due to the success of the first edition Tempo Real Eventos and myself will be doing a new edition of Hands on PHP – Secure your application workshop. This one will happen on May 31st, once again at Acctiva – 1159, Paulista Av. (click here to see it at Google Maps). For those who don’t already know this workshop presents best practices in developing PHP applications, explains how the three most common web exploits (SQL Injection, XSS and CSRF) work and how to make your web application less vulnerable to them.
It’s worthy to point out that the sooner you confirm your subscription (through the event’s link, above) the cheaper you’ll pay.
—
Devido ao sucesso da primeira edição, a Tempo Real Eventos e eu faremos uma nova edição do workshop Mão na Massa – PHP: Proteja sua aplicação. Esta edição acontecerá no dia 31 de Maio, novamente na Acctiva – Av. Paulista, 1159 (click aqui para ver no Google Maps). Para os que ainda não sabem, este workshop apresenta as boas prátcas de desenvolvimento de aplicações PHP, explica como funcionam as três vulnerabilidades web mais comuns (SQL Injection, XSS e CSRF) e como tornar sua aplicação menos vulnerável à elas.
Vale lembrar que quando mais cedo você realizar sua inscrição (através do link do evento, acima) menor será o valor da mesma.
[pt-BR]
It’s a pleasure to post in here that this year I’ll be back at fisl to do another presentation about PHP and security. This time I’ll set the focus on XSS Attacks and how to prevent them. I was also invited to go to Luanda, Angola for the first edition of their own version of fisl. It was a great honor to receive this invitation from ASL – Angola and I hope to be there on May 23rd and 24th.
As usual you can check my calendar here.
—
É um prazer postar aqui que este ano estarei de volta ao fisl para apresentar mais uma palestra sobre PHP e segurança. Desta vez estarei focando em ataques XSS e como prevení-los. Além disso fui convidado para ir à Luanda, Angola para a primeira edição da versão deles do fisl. Foi uma grande honra receber este convite da ASL – Angola, e espero estar lá nos dias 23 e 24 de Maio.
Como de costume você pode checar meu calendário aqui.
[pt-BR]
I’ve made the document I’ve produced for the Hands on PHP – Secure your application event at Sao Paulo available on my website. I have plans to keep it updated and produce an English version of it, so keep an eye in here, I’ll announce it as soon as it’s available. The document is licensed under Creative Commons.
—
Disponibilizei em meu website o documento que produzi para o evento Mão na Massa PHP – Proteja sua aplicação. Vou mantê-lo sempre atualizado e pretendo lançar uma versão em inglês em breve. O documento é licenciado através da Creative Commons.
[pt-BR]
On January 19th March 1st I’ll be at Acctiva in Sao Paulo (SP) at an event called Hands on PHP – Secure your application. On this workshop I’ll be presenting techniques to prevent the most common web exploits such as SQL Injection, XSS and CSRF. As usual you can check my public calendar here.
—
No dia 19 de Janeiro 1º de Março eu estarei na Acctiva em São Paulo (SP) em um evento chamado Mão na Massa PHP – Proteja sua aplicação. Neste workshop estarei apresentando técnicas para prevenir os ataques mais comuns na web, como SQL Injection, XSS e CSRF. Como de costume meu calendário público pode ser conferido aqui.