Best of Web Security β€” 2024

  1. 1
    Article
    Avatar of hnHacker NewsΒ·2y

    Zen Browser

    Zen Browser aims to transform your web experience with features like split views, workspaces, and profile switching. It offers a customizable theme store, advanced security technologies, and a compact mode for smaller screens. Zen prioritizes both speed and privacy, presenting itself as a superior alternative to other Firefox-based browsers.

  2. 2
    Article
    Avatar of communityCommunity PicksΒ·2y

    CORS: the ultimate guide

    CORS (Cross-Origin Resource Sharing) is a security mechanism that protects users' data from being accessed by malicious websites when different origins interact. AJAX (Asynchronous JavaScript And XML) requests from web browsers are controlled by CORS rules, ensuring data confidentiality and security. This guide explains how CORS policies are configured via HTTP response headers to allow or deny access based on origin and credentials. It also highlights the dangers of misconfigured CORS policies and provides steps to define a secure CORS policy effectively.

  3. 3
    Article
    Avatar of lobstersLobstersΒ·2y

    CORS is Stupid

    CORS (Cross-Origin Resource Sharing) attempts to mitigate web security issues caused by implicit credentials in cross-origin requests. Despite its flexibility, it doesn't fully solve the problem of cross-site request forgery (XSRF). A recommended solution is to use explicit credentials like API tokens and setting same-site attributes on cookies. Additionally, implementing server middleware to block implicit credentials can enhance security.

  4. 4
    Article
    Avatar of communityCommunity PicksΒ·2y

    πŸ” Session-Based vs. Token-Based Authentication: Which is better?πŸ€”

    Learn about session-based and token-based authentication methods used in backend applications. Understand the implementation steps and the key differences between the two methods.

  5. 5
    Article
    Avatar of newstackThe New StackΒ·2y

    5 JavaScript Security Best Practices for 2024

    JavaScript applications face numerous cyber threats in 2024, including cross-site scripting (XSS), man-in-the-middle (MitM) attacks, and denial of service (DoS) attacks. Key security best practices include securing APIs, implementing Content Security Policies (CSP), input sanitization, and performing regular security audits. Tools like Snyk, ZAP by OWASP, and the Cypress Testing Framework are essential for maintaining robust security in JavaScript development.

  6. 6
    Article
    Avatar of communityCommunity PicksΒ·2y

    Best Practices for Storing Access Tokens in the Browser

    Web applications often use OAuth 2.0 for data security, which involves storing access tokens. This piece examines various browser storage solutions like local storage, session storage, and cookies, highlighting their vulnerabilities to XSS and CSRF attacks. The token handler pattern is recommended for enhancing security, suggesting encrypted tokens stored in secure cookies and managed by backend components.

  7. 7
    Video
    Avatar of bytegradByteGradΒ·1y

    Next.js Top 7 Security Best Practices (Checklist)

    Ensure the security of your Next.js applications by following a comprehensive checklist that includes dependency management, data validation, and setting up content security policies. Learn how to use tools like arcjet to protect against common vulnerabilities and automate security checks efficiently.

  8. 8
    Article
    Avatar of faunFaunΒ·2y

    Spring Boot 3.1 JWT Authentication &Authorization: Secure Your APIs Like a ProπŸ”’

    Learn how to secure your Spring Boot 3.1 applications using JWT authentication and authorization. This guide covers creating a Spring Boot project, setting up dependencies, creating secure endpoints, and configuring JWT tokens for user authentication. Includes practical examples and code snippets to help you implement security measures swiftly.

  9. 9
    Article
    Avatar of newstackThe New StackΒ·2y

    Most Dangerous JavaScript Vulnerabilities To Watch For in 2025

    JavaScript remains a top programming language but is vulnerable to various security threats. These include advanced XSS attacks, CSRF, server-side JS injection, formjacking, prototype pollution, IDOR, and supply chain attacks. To mitigate these risks, developers need to implement secure coding practices, including correct input validation, use of security tokens, and regular integrity checks.

  10. 10
    Article
    Avatar of communityCommunity PicksΒ·2y

    Implementing Rate Limiting in API Routes with Express and Next.js

    Implementing rate limiting is essential for controlling the number of API requests users can make within a set timeframe, protecting the service from abuse and ensuring its availability and performance. The post explains the setup using the `express-rate-limit` middleware in a Next.js API route. This involves configuring parameters like `windowMs` for the time window and `max` for the maximum requests allowed. It is a practical method to enhance security and efficiency by preventing brute force attacks and managing server load effectively.

  11. 11
    Article
    Avatar of bitBits and PiecesΒ·2y

    Top 7 Common Frontend Security Attacks

    Learn about the top 7 common frontend security attacks and how to protect your application from them.

  12. 12
    Article
    Avatar of systemweaknessSystem WeaknessΒ·2y

    Turning Your Server into a High-Security Server with a Free WAF

    SafeLine WAF is a powerful web application firewall designed to protect servers from various cyber attacks. It offers dynamic protection, low false positives, and is easy to install with one-click setup. The configuration includes setting up a dedicated server, applying for SSL certificates, and configuring domain bindings to ensure secure traffic filtering. SafeLine WAF also supports dynamic encryption for high-security needs, making it an effective solution for safeguarding web applications.

  13. 13
    Article
    Avatar of newstackThe New StackΒ·2y

    13 Practical Updates to Optimize Website Performance

    Gcore.com enhanced website performance, security, SEO, and accessibility through a series of strategic updates. Implemented improvements include SSO authentication for streamlined access, WAF and bot protection to reduce security breaches, Gcore DDoS protection to achieve 99.99% uptime, and automatic pod scaling to improve stability. SEO initiatives like structured data markup, special HTML tags for lists, and image optimization significantly boosted search rankings and organic traffic. Accessibility advancements were made via color scheme adjustments, font-size changes, and better alt texts. These efforts resulted in improved user engagement, SEO metrics, and overall website performance.

  14. 14
    Article
    Avatar of hnHacker NewsΒ·2y

    900 Sites, 125 million accounts, 1 vulnerability

    A misconfiguration in Firebase has led to hundreds of sites exposing around 125 million user records, including plaintext passwords and sensitive billing information.

  15. 15
    Article
    Avatar of netguruNetguruΒ·2y

    15 Critical Security Tips for Web Development in 2023

    The rising importance of cybersecurity due to increasing cyber threats makes web application security indispensable. Key security measures include implementing web application firewalls, multi-factor authentication, conducting security assessments, and regular software updates. Understanding and differentiating between external and internal web security are crucial. Emphasizing enterprise security planning can mitigate potential breaches, and employing best practices like encryption, logging, and employee education enhances security. Monitoring for anomalies and conducting security audits are also essential for safeguarding web applications.

  16. 16
    Article
    Avatar of systemweaknessSystem WeaknessΒ·2y

    Finding origin ip address

    The post provides various methods and tools to find the origin IP address of websites hidden behind Web Application Firewalls (WAF) like Cloudflare. It suggests manual techniques using platforms such as Shodan and DNS lookup tools, and also lists automation tools available on GitHub for the same purpose.

  17. 17
    Video
    Avatar of communityCommunity PicksΒ·2y

    NGINX Tutorial - What is Nginx

    NGINX is a versatile software used as a web server, load balancer, and proxy server. It handles large volumes of requests efficiently by distributing them across multiple servers. Key functionalities include load balancing, caching to save server resources, enhanced security measures, and compression of large files for bandwidth optimization. NGINX is also prominently used in container environments, such as Kubernetes, to manage inbound traffic with advanced load balancing. Its flexible configuration and efficiency have made it a popular choice over Apache in various applications.

  18. 18
    Article
    Avatar of freecodecampfreeCodeCampΒ·2y

    What is Rate Limiting? Exploring the Role of Rate Limiting in Protecting Web APIs from Attacks

    Rate limiting is a crucial technique used in safeguarding APIs from malicious activities like DDoS attacks, brute-force attacks, and unauthorized web scraping. It regulates the frequency of client requests to a server, enhancing security and efficiency. Various algorithms like Fixed Window, Sliding Window, Leaking Bucket, and Token Bucket are used to implement rate limiting. Best practices include choosing the right algorithm, setting reasonable limits, handling errors efficiently, and ensuring proper logging and monitoring.

  19. 19
    Article
    Avatar of semaphoreSemaphoreΒ·2y

    How Attackers Use HTTP Status Codes for Malicious Purposes

    HTTP status codes are crucial for communication between servers and clients, but they can be exploited by attackers to compromise servers. Understanding the role of status codes, how attackers use them, and proper handling techniques are essential for web application security. While returning uncommon status codes might confuse attackers temporarily, following API security best practices is the real solution to mitigate risks.

  20. 20
    Article
    Avatar of freecodecampfreeCodeCampΒ·1y

    Building a Simple Web Application Security Scanner with Python: A Beginner's Guide

    Learn how to build a basic Python-based web application security scanner to detect common vulnerabilities like XSS, SQL injection, and sensitive information exposure. This guide covers setting up your development environment, writing the core scanning class, implementing a web crawler, and performing security checks. The tutorial also highlights how to extend the scanner with additional features.

  21. 21
    Video
    Avatar of webdevcodyWeb Dev CodyΒ·2y

    How web applications are secured

    Web application security involves protecting backend code and databases by using a server-side component such as a REST API. Authentication is key to verifying user identities through tokens or session IDs. Authorization ensures users have proper permissions to access data. Middleware functions check token validity to prevent unauthorized access. Rate limiting can protect servers from being overwhelmed by repeated requests. Input validation and sanitization are crucial to prevent storing malicious data that could harm the application or other users.

  22. 22
    Article
    Avatar of systemweaknessSystem WeaknessΒ·2y

    Defending Against CSS-Based Attacks: Best Practices for Web Security

    Front-end technologies like CSS and JavaScript enhance user experience but also present security risks. CSS, traditionally for styling, can be exploited for data exfiltration to steal sensitive information such as keystrokes. This tutorial explains how CSS-based attacks work, presents real-world cases, and provides best practices to mitigate these vulnerabilities including implementing Content Security Policies (CSP), validating input, and conducting regular reviews of stylesheets.

  23. 23
    Article
    Avatar of asayerasayerΒ·2y

    Secure Cookies and HTTPOnly Attributes for Better Security

    Cookies play an important role in web development by storing client-side information, but they can be vulnerable to attacks if not properly secured. The Secure attribute ensures cookies are only sent over HTTPS connections, while the HTTPOnly attribute prevents client-side scripts from accessing cookies, thereby protecting against Cross-Site Scripting (XSS) attacks. Combining these attributes enhances data confidentiality and integrity. The post includes examples for setting these attributes in Express.js and best practices for implementation to minimize potential security risks.

  24. 24
    Article
    Avatar of syncfusionSyncfusionΒ·2y

    Top 5 Techniques to Protect Web Apps from Unauthorized JavaScript Execution

    Keep your web app secure with these 5 vital techniques: validate and sanitize inputs, implement a content security policy (CSP), use subresource integrity (SRI), follow secure JavaScript practices, and conduct regular security audits. This will help protect against unauthorized JavaScript executions and safeguard your users from data leakage, identity theft, and loss of trust.

  25. 25
    Article
    Avatar of hnHacker NewsΒ·2y

    Web Locks API - Web APIs

    The Web Locks API allows scripts running in one tab or worker to asynchronously acquire, hold, and release a lock to coordinate resource usage across multiple tabs or workers within the same origin. It supports both shared and exclusive lock modes and includes features for conditional acquisition and deadlock prevention. Locks are scoped to their origins, ensuring only tasks from the same origin are affected. It provides a way to inspect lock states for debugging purposes.