Menu

#7 HTML injection possible when viewing files

open
None
5
2004-10-14
2004-10-14
kuba tyszko
No

fixed.
now, View.php check if the desired file contains one of
the Root paths.
if yes, all is ok, but if no - then it gives security violation
and exits.
also added function IntrusionNotifyExt that can accept
extended description and print it withinh alert box.

Discussion

  • kuba tyszko

    kuba tyszko - 2004-10-14

    Logged In: YES
    user_id=1138713

    updated:
    now, Viiew.php checks that root is at the beginning of the
    filename.also it checks that filename does not contain ../
    and /.. - so it should prevent access beyond desired root.
    (like /home/kuba/../../etc/passwd - it won't work now).
    editing and saving files is still vulnerable. will fix....

     
  • kuba tyszko

    kuba tyszko - 2004-10-14
    • assigned_to: nobody --> vival
     
  • kuba tyszko

    kuba tyszko - 2004-10-19

    Logged In: YES
    user_id=1138713

    fixed those four if statements.
    prevoius version was invulnerable to injection like
    /home/kuba/../../etc/passwd but vulnerable to simple
    /etc/passwd ;-). now both cases are detected.

     
  • kuba tyszko

    kuba tyszko - 2004-10-19

    fixed again

     

Log in to post a comment.