Skip to content

This repository provides an overview of common server-side vulnerabilities along with practical solutions and examples. It includes hands-on solutions to **PortSwigger Labs**, making it a valuable resource for learning and practicing web application security.

Notifications You must be signed in to change notification settings

maryamirfan18/server-side-Vulnerabilities

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 

Repository files navigation

Server-Side Vulnerabilities

This project explores common server-side vulnerabilities and their mitigations. It also contains solutions for challenges from PortSwigger Labs, providing a hands-on approach to web application security.

Table of Contents

Vulnerabilities Covered

1. Path Traversal

An attacker can manipulate file paths to access files outside the intended directory.

Mitigation: Sanitize file paths using built-in methods.

2. Access Control

Flawed permissions allow unauthorized access to restricted resources.

Mitigation: Implement strong role-based access control (RBAC).

3. Authentication

Weak authentication mechanisms expose sensitive areas of an application.

Mitigation: Use multi-factor authentication and secure session management.

4. Server-Side Request Forgery (SSRF)

An attacker sends malicious requests from the server to internal services.

Mitigation: Whitelist internal destinations and sanitize inputs.

5. File Upload Vulnerabilities

Improper file upload handling can lead to arbitrary file execution or denial of service.

Mitigation: Validate file types, and scan for malware.

6. OS Command Injection

An attacker injects commands that the server executes.

Mitigation: Avoid using user input in system commands.

7. SQL Injection

An attacker injects malicious SQL queries into an application.

Mitigation: Use parameterized queries to prevent SQL injection.

PortSwigger Labs Solutions

This repo includes solutions for various PortSwigger Labs challenges, offering practical examples of exploiting and mitigating the above vulnerabilities.

About

This repository provides an overview of common server-side vulnerabilities along with practical solutions and examples. It includes hands-on solutions to **PortSwigger Labs**, making it a valuable resource for learning and practicing web application security.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published