DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
  1. DZone
  2. Coding
  3. Languages
  4. The Promise and the Peril of HTML5

The Promise and the Peril of HTML5

While learning a new dev tool or language may seem harmless enough, not learning how to implement proper security could lead to significant vulnerabilities.

Kevin Poniatowski user avatar by
Kevin Poniatowski
·
Jun. 29, 17 · Opinion
Like (1)
Save
Tweet
Share
1.54K Views

Join the DZone community and get the full member experience.

Join For Free

Like many software engineers, I love new toys. New programming languages allow us to create new features quickly, while handling tedious overhead issues, making it so we don’t have to think about them. However, in this desire to use the “new,” developers often forget to ask themselves, “How do we secure it?” Each feature of a new development tool may have security issues that we need to be aware of. However, in the rush to create, we don’t always educate ourselves thoroughly about the risks of those features. For example, HTML5 is becoming more popular now that all current browser versions support it, but developers need to be aware of the security issues they may encounter when utilizing certain HTML5 features.  

Offline Storage

What developer doesn’t want to take advantage of more storage space in the browser?! This enables us to store persistent user data. However, just like Spiderman’s Uncle Ben said, “With great power comes great responsibility.” Developers need to make sure that the data they are storing in the browser isn’t sensitive. Storing data that is considered sensitive by HIPAA, GLBA, or SOX regulations could result in severe legal ramifications and storing sensitive PCI data could lead to hefty fines. Developers must be made aware of what data is okay to store and which data should never be stored in the browser.

Geolocation

HTML5 gives us the ability to determine a user’s location and use that information to tailor search results, push notifications to the user about deals near them, and lots of other cool features.  However, developers need to be very careful about using geolocation because many end-users may not want their location to be used. They may consider their location to be sensitive information that they don’t want to be distributed. The geolocation functionality could easily be abused by malicious websites tracking users for nefarious purposes. 

Cross-Site Scripting

While many web developers are aware of cross-site scripting, they may be unaware that using HTML5 creates a new, unfamiliar attack surface. Each new feature within HTML5 such as local storage, canvas, and video capabilities could be implemented insecurely, giving an attacker the ability to run malicious scripts within the browser. Developers still need to carefully sanitize any input from one user that will be sent as output to other users in order to lower the risk of that output becoming malicious.

The thrill of using new tools and new programming languages will always attract developers. But we must get educated about securing any new functionality from these tools and languages before applications go into production.

HTML

Published at DZone with permission of Kevin Poniatowski, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • PHP vs React
  • The Importance of Delegation in Management Teams
  • RabbitMQ vs. Memphis.dev
  • The Data Leakage Nightmare in AI

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: