Skip to content

Latest commit

 

History

History
101 lines (70 loc) · 5.47 KB

File metadata and controls

101 lines (70 loc) · 5.47 KB

Ruby RailsGoat Spec

SOURCES

DBTAINT - DBTAINT = ActiveRecord::find_by -> it looks like we have this one already? - DBTAINT = ActiveRecord::find -> could also be database tainted - LOOK IN RYAN SPECS - it does show up in the fblog app -> Post.find() for instance... - risky function is where we list functions related to CWE - sources is DPA and is a whole other ballgame - we think the find is not working

	- compile railsgoat with latest version of ruby 

so if a variable which is tained goes into a sink, it's tainted 
look into Ryan's documentatino and if these are already there, don't spend too much time on it

current user is DB tainted
therefore, we probably consider all the properties tainted too

Sinks

Propagators

All files in views if they contain a taint might be XSS what do rails erb files do; how are they compiled, if at all?

Web Template

Files with extentsion '.erb' under the folder '\views' are used as templates by RoR

  • check RYANS DOCUMENTATION

write a very small hello world which reads string from paramters and prints it out to view