Skip to content
HomeVideosBooksBlogs
AllTop postsTopics
Podcasts
HistoryListsWatch laterLiked videosFollowing

The videos, books, blogs and podcasts Hacker News keeps recommending, all in one place.

VideosBooksBlogsPodcastsAboutPrivacySettings

Data from Hacker News, HackerTube, HackerBooks, HackerBlogs and Open Library. Credits · Not affiliated with Y Combinator.

HomeVideosBooksBlogsPodcasts
Ctrl K
    C

    Chris Shiflett

    shiflett.org · Personal blog · on HN since 2007

    Chris Shiflett, a PHP developer, writes about web security, HTTP, and web development, including XSS and escaping.

    Visit blogRSSHN submissions
    SecurityWeb DevelopmentProgramming
    What HN says

    HN links it for web security topics like XSS, though one commenter says its PHP security advice can mislead and points to an IBM post instead.

    Stats for nerds
    31HN people shared it
    20linked in comments
    296story points
    Mar 2024last shared
    2008people per year2024

    Top posts on HN

    1. 1
      JavaScript and URLs
      1 person · 134 points · first shared 2011 · 69 comments on HN
    2. 2
      The Accept Header
      1 person · 56 points · first shared 2011 · 8 comments on HN
    3. 3
      Rev="canonical" tags to cure short url problems
      1 person · 19 points · first shared 2009 · 13 comments on HN
    4. 4
      Hacking Rails (and GitHub)
      1 person · 18 points · first shared 2012 · Discussion on HN
    5. 5
      LeakedIn - Check if you LinkedIn Password is Leaked
      1 person · 17 points · first shared 2012 · 7 comments on HN
    6. 6
      Javascript Study Guides
      1 person · 14 points · first shared 2012 · 1 comments on HN
    7. 7
      Indie Web Movement and IndieAuth
      1 person · 14 points · first shared 2015 · Discussion on HN
    8. 8
      Just You Wait
      2 people · 5 points · first shared 2026 · 1 comments on HN
    9. 9
      Addslashes() Versus mysql_real_escape_string(), by Chris Shiflett
      3 people · 3 points · first shared 2009 · Discussion on HN
    10. 10
      Allowing HTML and Preventing XSS (2007)
      1 person · 3 points · first shared 2014 · Discussion on HN

    What HN people wrote when they linked it

    • niftichFeb 2017

      This is an old idea that is finally coming to fruition.

      See a Microsoft paper from 2011 that prominently features cookie isolation [1]. Or a 2012 proposal in Mozilla's bug tracker [2] which resulted in some proof-of-concept code early on, a writeup in 2013 hosted on Github [3]; blogged about independently and contemporaneously by others [4], which hit HN [5].

      I've always taken a dim view on cross-domain requests in general [6] and the sprawling set of specifications (like most security headers) us developers have to learn and implement properly to stay one step ahead [7], and am not particularly enthused that this is opt-in instead of a heavy-handed mandate like some other recently-introduced features, the default opt-in is the more-secure but essentially session-destroying version meaning it's guaranteed to encourage a long and impassioned debate about whether Strict or Lax is the preferred balance.

      It's fascinating to go way back to ~2006-2008 and read about when CSRF was first starting to be recognized by mainstream evangelists, commentators, developers and decision-makers as a problem instead of a feature of just how the web works.

      This article on DarkReading from 2006 [8] was soon after cited by the OWASP wiki [9], Jeff Atwood first wrote about it in 2008 [10] and admitted its sublteness yet seriousness took him by surprise, and yet it's amusing that going back to 2003 you can find references to CSRF by that name and instructions on how to protect against it [11] --…

    • robinhoustonJun 2012

      bash$ diff -u <(curl -s http://leakedin.org) <(curl -s http://leakedln.org)
      --- /dev/fd/63 2012-06-07 15:31:02.000000000 +0100
      +++ /dev/fd/62 2012-06-07 15:31:02.000000000 +0100
      @@ -322,6 +322,7 @@
      </noscript>
      <form id="leakedin-check" onsubmit="hashIt()">
      <fieldset>
      + <input type="text" name="uname" id="uname" placeholder="Type your username here" />
      <input autocomplete="off" type="text" name="check" id="check" onblur="hashIt()" placeholder="Type your password here" />
      <button type="submit">Check</button>
      </fieldset>
      @@ -329,7 +330,7 @@
      <div id="footer">
      <p><a id="fk" href="http://fictivekin.com">Fictive Kin</a> and <a href="http://shiflett.org/">friends</a>.</p>
      </div>
      -<script src="//static.getclicky.com/js" type="text/javascript"></script>
      +<script src="/static.getclicky.com/js" type="text/javascript"></script>
      <script type="text/javascript">try{ clicky.init(66595923); }catch(e){}</script>
      -<noscript><p><img alt="Clicky" width="1" height="1" src="//in.getclicky.com/66595923ns.gif" /></p></noscript>
      +<noscript><p><img alt="Clicky" width="1" height="1" src="/in.getclicky.com/66595923ns.gif" /></p></noscript>
      </body>

    • elviejoJun 2011

      I think what is normal is to let the company know first.
      And also give them a test they can reproduce with the bug
      and also a deadline in which you are going to make public the security bug you have done.
      The deadline is because many companies ignore the problem until is public.

      This opinion comes from reading this Chris Shifflet's article:
      http://shiflett.org/blog/2007/mar/my-amazon-anniversary
      "On this day last year, I informed Amazon about a pretty serious vulnerability and demonstrated it with a few examples and a detailed description. In the description, I explained how to exploit the infamous "1-Click" feature, causing victims to purchase items of my choosing without their knowledge or consent, and I stressed that the scope of the problem extended beyond my benign examples. After some mild prodding, I finally received a reply letting me know that my email had been received, the vulnerability had been verified, and Amazon considered fixing it a top priority.""

    • ecaronJul 2009

      Blog about website design + blog post about website security = Excellent source of well-intended data that perpetuates PHP code that people think is secure

      For a better post on securing PHP scripts, see IBM's post at http://www.ibm.com/developerworks/opensource/library/os-php-secure-apps/ or just see http://shiflett.org/blog/2006/jan/addslashes-versus-mysql-real-escape-string to understand why anyone recommending addslashes should be ignored.

    • enobrevAug 2011

      I've done this on a couple well-visited client sites and it worked incredibly well. The best part is that it's super easy to add an invisible "email" field to a form and check if it has any content on the backend. By far the best bang for the buck.

      I'm fairly sure I first learned this trick from Chris Shiflett's blog[1] a few years back, although I can't seem to find the original post.

      1: http://shiflett.org/

    • bdotdubJul 2008

      I totally agree, except the date one. I feel like many people don't take the time to make their URLs look good.

      I do like when I can go to /2008/06 and see all the posts from June.

      Here's some more interesting reading on URL design: http://shiflett.org/blog/2008/mar/urls-can-be-beautiful

    Related

    Jake Archibaldjakearchibald.com191 people

    I discovered a browser bug

    Jake Archibald
    Personal · last shared 2026
    Dave Winerscripting.com372 people

    Facebook is scaring me

    Dave Winer
    Personal · last shared 2026
    Neal Poolenealpoole.com20 people

    HTTP Response Splitting Vulnerability on reddit.com

    Neal Poole
    Personal · last shared 2018
    I Don't Play Dartsidontplaydarts.com81 people

    Detecting the use of "curl | bash" server-side

    I Don't Play Darts
    Personal · last shared 2024
    Daniel Miesslerdanielmiessler.com241 people

    It’s Time to Get Back to RSS

    Daniel Miessler
    Personal · last shared 2026
    Chris Ferdinandigomakethings.com84 people

    SPAs Were a Mistake

    Chris Ferdinandi
    Personal · last shared 2026
    Coding Horrorblog.codinghorror.com2.1k people

    Farewell Stack Exchange

    Coding Horror
    Personal · last shared 2026
    Russ Coxresearch.swtch.com554 people

    Timeline of the xz open source attack

    Russ Cox
    Personal · last shared 2026