[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Remote command execution in fastreader ruby gem

Ruby gem fastreader-1.0.8 remote code exec

if the url contains any ; characters code will be executed as the user.

for example if fastreader is fed http://www.g;id;.com id will be executed.


.strip only removes whitespace before and after the URL.

115       # open web browser
116       command = (ENV['FASTREADER_WEB'] || "open") + " {@current_entry.url.strip}"
117       `{command}`
Larry W. Cashdollar