Upgrade to PRO for Only $50/Year—Limited-Time Offer! 🔥
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Escape From New York
Search
Tom J Nowell
November 01, 2015
Technology
0
740
Escape From New York
A talk on escaping and security in WordPress and PHP
Tom J Nowell
November 01, 2015
Tweet
Share
More Decks by Tom J Nowell
See All by Tom J Nowell
Using Blocks Outside The Editor
tarendai
0
1.1k
Composer_and_WordPress__1_.pdf
tarendai
0
90
REST APIs for Absolute Beginners
tarendai
0
990
VVV 2
tarendai
0
790
WordCamp Europe 2016 - Handling Anxiety
tarendai
1
500
WP The Right Way
tarendai
0
1.1k
Code Deodorant 2014
tarendai
1
750
Adv WP CLI
tarendai
0
730
WP CLI
tarendai
0
690
Other Decks in Technology
See All in Technology
ESXi のAIOps だ!2025冬
unnowataru
0
160
コンテキスト情報を活用し個社最適化されたAI Agentを実現する4つのポイント
kworkdev
PRO
1
1.8k
Kiro を用いたペアプロのススメ
taikis
4
1.4k
業務のトイルをバスターせよ 〜AI時代の生存戦略〜
staka121
PRO
2
240
Power of Kiro : あなたの㌔はパワステ搭載ですか?
r3_yamauchi
PRO
0
200
Building Serverless AI Memory with Mastra × AWS
vvatanabe
0
180
Oracle Database@AWS:サービス概要のご紹介
oracle4engineer
PRO
1
350
NIKKEI Tech Talk #41: セキュア・バイ・デザインからクラウド管理を考える
sekido
PRO
0
190
AWSの新機能をフル活用した「re:Inventエージェント」開発秘話
minorun365
2
320
mairuでつくるクレデンシャルレス開発環境 / Credential-less development environment using Mailru
mirakui
5
580
ExpoのインダストリーブースでみたAWSが見せる製造業の未来
hamadakoji
0
180
CARTAのAI CoE が挑む「事業を進化させる AI エンジニアリング」 / carta ai coe evolution business ai engineering
carta_engineering
0
2.2k
Featured
See All Featured
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
1
64
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
390
Writing Fast Ruby
sferik
630
62k
HDC tutorial
michielstock
0
260
Exploring the relationship between traditional SERPs and Gen AI search
raygrieselhuber
PRO
2
3.4k
Mind Mapping
helmedeiros
PRO
0
36
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
1.9k
Why You Should Never Use an ORM
jnunemaker
PRO
61
9.6k
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
0
210
Accessibility Awareness
sabderemane
0
18
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
0
180
4 Signs Your Business is Dying
shpigford
186
22k
Transcript
Escape From New York Tom J Nowell
Validation Sanitisation Escaping
Validation: Is this what it claims to be?
Sanitisation: Lets clean up this input
Escaping: Making output safe
WordPress.com VIP VIP Wrangler - @tarendai
'; DROP TABLE votes'
Search Results For: <?php echo $_GET[‘s’]; ?>
Search Results For: <?php echo $_GET [‘s’]; ?>
<b>Test</b>
<b>Test</b>
<script>alert(“hey”);</script>
Search Results For: <?php echo esc_html( $_GET[‘s’] ); ?>
Search Results For: <?php echo esc_html( $_GET[‘s’] ); ?>
How to Escape
Sanitize early Escape Late Escape Often
No Data is Safe
<script src='//peniscorp.com/topkek.js'> </script>
Escape Everything..?
echo $var; echo esc_html( $var );
class=”<?php echo $css; ?>” class=”<?php echo esc_attr( $css ); ?>”
href=”<?php echo $url; ?>” href=”<?php echo esc_url( $url ); ?>”
wp_kses & wp_kses_post
echo apply_filters( ‘the_content’ wp_kses_post( $content ) );
tomjn.com/escaping
WordPress.com VIP VIP Wrangler - @tarendai
automattic.com/work-with-us/vip-wrangler/
Questions? Tom J Nowell - WordPress.com VIP @tarendai - tomjn.com