News for hackers. Stuff that matters.
Re:Firefox and IE's "View source" can be spoofed to show any... by 51Cards on Thursday September 08, 2011 @02:31PM (#2975064)
Tried in Firefox 6... spoof works. Tried in Firefox 3.6... could see full source, script and all.
Re:Firefox and IE's "View source" can be spoofed to show any... by dspillett on Friday September 09, 2011 @12:03PM (#2978605)
IIRC earlier versions of FF re-request the page when you do a view source, rather than displaying a rendering of the current (potentially changed) document state. You could still spoof the source view in this case by somehow recognising the second request (though how you'd distinguish "view source" from "f5" I don't know) and sending different content back.