Skip to content
By using Twitter’s services you agree to our Cookies Use. We and our partners operate globally and use cookies, including for analytics, personalisation, and ads.
  • Home Home Home, current page.
  • About

Saved searches

  • Remove
  • In this conversation
    Verified accountProtected Tweets @
Suggested users
  • Verified accountProtected Tweets @
  • Verified accountProtected Tweets @
  • Language: English
    • Bahasa Indonesia
    • Bahasa Melayu
    • Català
    • Čeština
    • Dansk
    • Deutsch
    • English UK
    • Español
    • Filipino
    • Français
    • Hrvatski
    • Italiano
    • Magyar
    • Nederlands
    • Norsk
    • Polski
    • Português
    • Română
    • Slovenčina
    • Suomi
    • Svenska
    • Tiếng Việt
    • Türkçe
    • Ελληνικά
    • Български език
    • Русский
    • Српски
    • Українська мова
    • עִבְרִית
    • العربية
    • فارسی
    • मराठी
    • हिन्दी
    • বাংলা
    • ગુજરાતી
    • தமிழ்
    • ಕನ್ನಡ
    • ภาษาไทย
    • 한국어
    • 日本語
    • 简体中文
    • 繁體中文
  • Have an account? Log in
    Have an account?
    · Forgot password?

    New to Twitter?
    Sign up
ericlaw's profile
Eric Lawrence 🎻
Eric Lawrence 🎻
Eric Lawrence  🎻
@ericlaw

Tweets

Eric Lawrence  🎻

@ericlaw

Impatient optimist. Dad. Author and speaker. Created Fiddler & SlickRun. PM @ MSFT '01-'12, and '18- on @microsoftedge. My words are my own. he/him

Texas, USA
textslashplain.com
Joined May 2007

Tweets

  • © 2018 Twitter
  • About
  • Help Center
  • Terms
  • Privacy policy
  • Cookies
  • Ads info
Dismiss
Previous
Next

Go to a person's profile

Saved searches

  • Remove
  • In this conversation
    Verified accountProtected Tweets @
Suggested users
  • Verified accountProtected Tweets @
  • Verified accountProtected Tweets @

Promote this Tweet

Block

  • Tweet with a location

    You can add location information to your Tweets, such as your city or precise location, from the web and via third-party applications. You always have the option to delete your Tweet location history. Learn more

    Your lists

    Create a new list


    Under 100 characters, optional

    Privacy

    Copy link to Tweet

    Embed this Tweet

    Embed this Video

    Add this Tweet to your website by copying the code below. Learn more

    Add this video to your website by copying the code below. Learn more

    Hmm, there was a problem reaching the server.

    By embedding Twitter content in your website or app, you are agreeing to the Twitter Developer Agreement and Developer Policy.

    Preview

    Why you're seeing this ad

    Log in to Twitter

    · Forgot password?
    Don't have an account? Sign up »

    Sign up for Twitter

    Not on Twitter? Sign up, tune into the things you care about, and get updates as they happen.

    Sign up
    Have an account? Log in »

    Two-way (sending and receiving) short codes:

    Country Code For customers of
    United States 40404 (any)
    Canada 21212 (any)
    United Kingdom 86444 Vodafone, Orange, 3, O2
    Brazil 40404 Nextel, TIM
    Haiti 40404 Digicel, Voila
    Ireland 51210 Vodafone, O2
    India 53000 Bharti Airtel, Videocon, Reliance
    Indonesia 89887 AXIS, 3, Telkomsel, Indosat, XL Axiata
    Italy 4880804 Wind
    3424486444 Vodafone
    » See SMS short codes for other countries

    Confirmation

     

    Welcome home!

    This timeline is where you’ll spend most of your time, getting instant updates about what matters to you.

    Tweets not working for you?

    Hover over the profile pic and click the Following button to unfollow any account.

    Say a lot with a little

    When you see a Tweet you love, tap the heart — it lets the person who wrote it know you shared the love.

    Spread the word

    The fastest way to share someone else’s Tweet with your followers is with a Retweet. Tap the icon to send it instantly.

    Join the conversation

    Add your thoughts about any Tweet with a Reply. Find a topic you’re passionate about, and jump right in.

    Learn the latest

    Get instant insight into what people are talking about now.

    Get more of what you love

    Follow more accounts to get instant updates about topics you care about.

    Find what's happening

    See the latest conversations about any topic instantly.

    Never miss a Moment

    Catch up instantly on the best stories happening as they unfold.

    1. Voodoo Artisan (@ London)‏ @andrewhowdencom Sep 24

      I'm talking about MAGECART! Or, more generally, credit card skimming: https://www.computerworlduk.com/security/magecart-who-what-is-behind-british-airways-attack-3683768/ … This works as follows: 1. Attacker compromises the site 2. Attacker injects JavaScript into the site 3. JavaScript listens for and send credit card details to attacker /2

      1 reply 3 retweets 3 likes
      Show this thread
    2. Voodoo Artisan (@ London)‏ @andrewhowdencom Sep 24

      So, HOW DOES THIS HAPPEN?! Well, it seems to happen one of two ways: 1. The server gets owned, or 2. The administrative control panel of the application (such as Magento) gets owned From there, JS insertion is trivial. /3

      1 reply 1 retweet 1 like
      Show this thread
    3. Voodoo Artisan (@ London)‏ @andrewhowdencom Sep 24

      Now, ONTO THE PROBLEM! We, as systems administrators, have little / no visibility* to what happens within the browser. So, 1. We get hacked, and, 2. We don't know about it. So, these hacks can persist for months! /4 *except this changed recently

      1 reply 0 retweets 0 likes
      Show this thread
    4. Voodoo Artisan (@ London)‏ @andrewhowdencom Sep 24

      HOWEVER! Recently this changed. WE CAN TELL THE BROWSER WHATS ACCEPTABLE! We do this by defining a "policy" for the website to follow. This is called "Content Security Policy" or CSP /5

      1 reply 2 retweets 1 like
      Show this thread
    5. Voodoo Artisan (@ London)‏ @andrewhowdencom Sep 24

      CSP allows us to define a bunch of things that our website should do, like: 1. Only accept JavaScript from one domain (default-src, script-src) 2. Only allow in-page connections to a specific set of domains (connect-src) /6

      1 reply 0 retweets 0 likes
      Show this thread
    6. Voodoo Artisan (@ London)‏ @andrewhowdencom Sep 24

      CSP will prevent the website doing things that we, as web administrators, say "nope this is bad don't do this". It'll even tell us when it's doing it! (via the report-uri) THIS IS AMAZING! /7

      2 replies 1 retweet 2 likes
      Show this thread
    7. Georg Friedrich‏ @trickser26 Sep 24
      Replying to @andrewhowdencom

      I'm asking this question as I'm not familiar with CSP. But couldn't the atracker change the CSP or simply remove it from the header? When he has access to the server or the distributor that sounds like an easy thing to do.

      1 reply 0 retweets 0 likes
    8. Voodoo Artisan (@ London)‏ @andrewhowdencom Sep 24
      Replying to @trickser26

      Yes! This is an excellent point. There are a couple of ways to handle this; 1. Define the header in the webserver. This means that we have the additional security boundary of a Linux user, increases attacker cost... /1

      1 reply 0 retweets 0 likes
    9. Voodoo Artisan (@ London)‏ @andrewhowdencom Sep 24
      Replying to @andrewhowdencom @trickser26

      2. Implement it in the application, but in a way that's not trivial to override. In the case of 2, it's likely the attacker will be able to drop the CSP. You could set some sort of static analysis on the site to ensure CSP is present -- but it's a "turtles all the way down" /2

      1 reply 0 retweets 1 like
    10. Voodoo Artisan (@ London)‏ @andrewhowdencom Sep 24
      Replying to @andrewhowdencom @trickser26

      What would probably be ideal is some sort of "expiry" property of the CSP, such as that which is found on HSTS. cc @ericlaw -- do you know if there's a way to set a "persistent" CSP?

      2 replies 0 retweets 1 like
      Eric Lawrence  🎻‏ @ericlaw Sep 24
      Replying to @andrewhowdencom @trickser26

      As I said before, CSP doesn't help when a bad guy gets root on your server. It just doesn't. But the thing you're asking about is Origin Policy. (Which also doesn't. But it's closer.)

      4:11 AM - 24 Sep 2018
      • 2 Likes
      • Georg Friedrich Voodoo Artisan (@ London)
      1 reply 0 retweets 2 likes
        1. New conversation
        2. Voodoo Artisan (@ London)‏ @andrewhowdencom Sep 24
          Replying to @ericlaw @trickser26

          This is dope AF! I didn't know this was a thing before. TIL! https://wicg.github.io/origin-policy/#manifest-file …

          1 reply 0 retweets 1 like
        3. 1 more reply

      Loading seems to be taking a while.

      Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.

        Promoted Tweet

        false

        • © 2018 Twitter
        • About
        • Help Center
        • Terms
        • Privacy policy
        • Cookies
        • Ads info