imedo Development Blog

there is no charge for awesomeness

Secure coding with Ruby on Rails 6: TLS

without comments

The transmission of sensitive information in cleartext is the number six of the 2009 CWE/SANS Top 25 Most Dangerous Programming Errors. Sending data without encryption becomes a security issue when nobody but the receiver is supposed to be able to read the included information and the data is send over an open network like the [...]

Written by ehartung

November 23rd, 2009 at 12:46 pm

How to troubleshoot Problems in Server Setups, Rails Apps or any other Config or Code Problem

without comments

This post might be interesting for all people who are faced with strange problems like this: “Yesterday it worked. Now it’s broken” or “It works on my machine (and it does not in production)”.
I’m sure that all Programmers and sysadmins have had an incident like this in their lives. I’ve had a lot of these [...]

Written by hvolkmer

November 20th, 2009 at 2:18 pm

Matching elements on complex web pages with Webrat

without comments

Writing feature, integration, or acceptance tests with Webrat is a lot easier with simple web pages than it is with huge pages which provide much content. It can get really annoying to find the correct links or buttons to click. The same applies for matching content elements on complex pages in order to evaluate whether [...]

Written by ehartung

November 12th, 2009 at 3:01 pm

Writing good stories

without comments

One of the biggest problems in software development has nothing to do with coding. It is about communication, the “code monkey versus software artist problem”.
Business people tend to specify as much as possible, but often lack the necessary knowledge of the technical details. From their point of view software developers are code monkeys who are [...]

Written by ehartung

October 20th, 2009 at 7:27 pm

Secure coding with Ruby on Rails 5: OS command injection

without comments

OS command injection is ranked number five on the 2009 CWE/SANS Top 25 Most Dangerous Programming Errors listing. It means to extend input, which is meant to be used as parameter for a shell command, with malicious shell commands. This is possible since operating systems like UNIX support the execution of several commands in one [...]

Written by ehartung

October 7th, 2009 at 4:24 pm

Continuous releasing with git

with 2 comments

Agile software development can be seen as heavily influenced by the open-source world. In 1996 Eric S. Raymond described two different models of open-source-software (OSS) development in his essay The Cathedral and the Bazaar. Back then OSS has been crafted like a cathedral, i.e. an exclusive group of developers was releasing source code when a [...]

Written by ehartung

October 5th, 2009 at 2:58 pm

Secure coding with Ruby on Rails 4: Cross-site scripting (XSS)

without comments

A Failure to Preserve Web Page Structure, which is number four of the 2009 CWE/SANS Top 25 Most Dangerous Programming Errors, is a programming error which makes an application vulnerable to cross-site scripting (XSS). For XSS an attacker injects malicious content into the output of a web application loading code from an external resource which [...]

Written by ehartung

October 2nd, 2009 at 9:41 am

Secure coding with Ruby on Rails 3: SQL injection

with 2 comments

Number three of the 2009 CWE/SANS Top 25 Most Dangerous Programming Errors is Improper Sanitization of Special Elements used in an SQL Command which could lead to the possibility of SQL injection.
If an application is vulnerable to SQL injection an attacker can add SQL commands to input values in order to manipulate the behavior of [...]

Written by ehartung

September 23rd, 2009 at 7:36 am

Secure coding with Ruby on Rails 2: Output escaping

without comments

While input validation prevents the malicious manipulation of an application by users, proper output data escaping prevents failures in other applications which receive the generated data, but lack input validation.
Improper encoding or escaping of output is therefor the number two of the 2009 CWE/SANS Top 25 Most Dangerous Programming Errors. A popular example for this [...]

Written by ehartung

September 21st, 2009 at 6:31 pm

File uploads with webrat in Ruby on Rails 2.0.2

without comments

Webrat supports file upload in web forms with the method attach_file. Due to a lack of multipart form support for integration tests in Action Pack 2.0.2, this does not work with Rails 2.0.2.
It has been added in version 2.1., but for those who are still using 2.0.2, with the following code you can upgrade the [...]

Written by ehartung

September 2nd, 2009 at 1:32 pm

Posted in Testing

Tagged with , , ,