Orange Applications for Business
Vigil@nce Vigil@nce Vigil@nce
analyzing computer vulnerabilities since 1999
  home presentation vulnerabilities documentation contact  
subscriber area subscriber area
free access free access
The Vigil@nce team watches vulnerabilities impacting your computers, and then offers security solutions, a database and tools to fix them.
recent vulnerabilities recent vulnerabilities
tracked products tracked products
RSS feed RSS feed
vulnerability

vulnerability CVE-2012-4522

Ruby: file creation via IO open

Synthesis of the vulnerability

When an attacker can transmit a special file name to a Ruby application, he can use a special character, in order to force the application to create/open another file.
Impacted products: Fedora, openSUSE, RHEL, Unix (platform).
Severity: 2/4.
Creation date: 15/10/2012.
Identifiers: BID-56115, CVE-2012-4522, FEDORA-2012-16086, openSUSE-SU-2013:0376-1, RHSA-2013:0129-01, VIGILANCE-VUL-12070.

Description of the vulnerability

The Ruby IO#open method is used to open a file, and creates it if it does not exists.

The character '\0' is used as a string terminator in C language. However, in Ruby, a '\0' character is allowed inside a string. This incoherence can lead to errors. For example, if the IO#open method is used to create the file "a\0b", then the system creates the file "a".

When an attacker can transmit a special file name to a Ruby application, he can therefore use a special character, in order to force the application to create/open another file.
Complete Vigil@nce bulletin.... (free access)

Share this bulletin

Delicious Digg Facebook Google bookmarks LinkedIn Mail Reddit StumbleUpon Technorati Twitter 

Computer vulnerabilities tracking service

Vigil@nce provides a systems vulnerabilities management. The Vigil@nce vulnerability database contains several thousand vulnerabilities. The Vigil@nce security watch publishes vulnerability bulletins about threats impacting the information system. The technology watch team tracks security threats targeting the computer system.



















Copyright 1999-2014 Vigil@nce. Vigil@nce is a service from Orange Applications for Business. Site map. Legal notice. Version française