Prøve GULL - Gratis
The Right Ways to Address Cross-Site Request Forgery
Open Source For You
|June 2025
Here’s an overview of the key concepts, impact and effective mitigation strategies of cross-site request forgery, also known as CSRF.
CSRF (cross-site request forgery) was included in the OWASP (Open Worldwide Application Security Project) Top 10 list in 2013 but was removed from it in 2017 as the statistical data did not justify its place there. However, CSRF still impacts web applications a great deal.
The effect of a CSRF exploit varies from case to case. There are multiple factors that decide the severity of the exploit, which could be:
- Unauthorised actions [money transfer, account setting changes]
- Privilege escalation [admin access]
- Application integrity and confidentiality loss [data theft]
- Possible loss of reputation [negative image within users or communities]
SOP (Same-Origin Policy)
To understand why CSRF is successful, one needs to understand the Same-Origin Policy (SOP) used by browsers. The latter follow SOP by default and only allow requests from the same origin. However, there is a business need for the user to make a cross-origin or cross-domain request to the application server. There are a lot of security concerns around allowing cross-domain requests. Initially, browser implementations used CORS (cross-origin resource sharing) to accommodate cross-domain requests while taking security concerns into consideration. Recent implementations have come up with a cookie attribute called ‘SameSite’. Let us discuss CORS and SameSite in brief.
To address the need of cross-origin requests, CORS specifications are used, and browsers are made compliant with CORS specs. Application servers explicitly whitelist the trusted domains from where they can accept cross-origin requests and browsers are directed accordingly, using CORS-specific response headers.Denne historien er fra June 2025-utgaven av Open Source For You.
Abonner på Magzter GOLD for å få tilgang til tusenvis av kuraterte premiumhistorier og over 9000 magasiner og aviser.
Allerede abonnent? Logg på
FLERE HISTORIER FRA Open Source For You
Open Source For You
The Role of Open Source in Building Modern Data Infrastructure
It's no secret that open source is emerging as the backbone of modern data infrastructure. Here’s a list of the core open source technologies used to deploy this infrastructure, along with some real-world examples and a brief on why open source matters.
3 mins
December 2025
Open Source For You
The Whispering Machines: How Open Source is Bringing Intelligence to the Tiniest Devices
Built on open source frameworks, TinyML is enabling complex machine learning models to run on the microcontrollers embedded in connected devices, bringing artificial intelligence to the very edge of the network.
3 mins
December 2025
Open Source For You
Setting Up Snort to Secure Your Network
Snort is a popular, open source intrusion detection system that monitors traffic in real time to detect malware. Here’s a detailed explanation of how to set it up on Ubuntu and test it by generating traffic from another system.
7 mins
December 2025
Open Source For You
When AI Meets DevOps to Build Self-Healing Systems
Traditional DevOps, with its rule-based automation, is struggling to work effectively in today’s complex tech world. But when combined with AlOps, it can lead to IT systems that predict failures and solve issues without human intervention.
7 mins
December 2025
Open Source For You
How to Automate Java Code Modernisation
This short guide illustrates that automating Java code modernisation with Python and OpenAI API is not just possible-it's remarkably effective.
5 mins
December 2025
Open Source For You
The Quest to Build a Quantum Computer
The road to large-scale quantum computing is long and hard, with incremental advances paving the way. But the destination is in sight.
12 mins
December 2025
Open Source For You
Job Opportunities: What's Hot in the Cloud Space?
If there's one field that refuses to slow down, it's cloud computing. Even as automation and AI reshape roles, cloud adoption continues to surge. From startups deploying microservices overnight to enterprises migrating decades of legacy systems, cloud remains the engine of digital transformation. For professionals, this means one thing: skills that live in the cloud won't come down anytime soon.
2 mins
December 2025
Open Source For You
Securing Client Identity with Post-Quantum Cryptography
Here's a quick tutorial on how to build a secure, real world client-server model that establishes client identity by using CRYSTALS-Dilithium, a post-quantum cryptography algorithm.
3 mins
December 2025
Open Source For You
Unlocking the Power of Multi-Agent Solutions with the Microsoft Agentic Framework
The Microsoft Agentic Framework is rapidly emerging as a cornerstone for developers, architects, and technology leaders seeking to build dynamic, intelligent systems powered by multiple collaborating agents. In an era where automation, distributed intelligence, and adaptive software are increasingly vital, this framework offers robust tools and features to accelerate the design and deployment of agent-based solutions.
6 mins
December 2025
Open Source For You
Apache Iceberg and Trino: Powering Data Lakehouse Architecture
Apache Iceberg is a cornerstone of any open data lakehouse, providing the transactional foundation upon which highly scalable and flexible analytics can flourish. Along with Trino, it can be used to build a robust, scalable, and high-performance data lakehouse.
4 mins
December 2025
Listen
Translate
Change font size
