Quantcast
Viewing all articles
Browse latest Browse all 2663

Potential leak of data: Simple Password

Detected 1 occurrence(s) of ‘\s*pass[word]+\s*[:=]\s*["'][a-z0-9\-_\!\$]+["']‘: require 'active_record' require 'mysql2' ActiveRecord::Base.establish_connection( adapter: 'mysql2', # or 'postgresql' or 'sqlite3' host: 'localhost', database: 'your_database', username: 'your_username', password: 'your_password' ) class Product < ActiveRecord::Base #blah, blah, blah end # Now instantiating and do some stuff puts Product.all product = Product.new require 'active_record' require 'mysql2' require 'path/to/class.rb' ActiveRecord::Base.establish_connection Source: http://pastebin.com/raw.php?i=H5MF23H2

Viewing all articles
Browse latest Browse all 2663

Trending Articles