SSRF in fpostit.php #13877
Labels
Bug
Junior Jobs
These are issues we think are good for starting to work with the Friendica code base
Privacy
Communication privacy related issues
Security
Milestone
Hello Friendica Team!
Issue detail
I found a vulnerability issue while testing Friendica locally. The vulnerability lies in fpostit.php
It is possible to induce the application to perform server-side DNS lookups of arbitrary domain names and HTTP request.
Bug Description
The ability to send requests to other systems can allow the vulnerable server to be used as an attack proxy. By submitting suitable payloads, an attacker can cause the application server to attack other systems that it can interact with. This may include public third-party systems, internal systems within the same organization, or services available on the local loopback adapter of the application server itself. Depending on the network architecture, this may expose highly vulnerable internal services that are not otherwise accessible to external attackers.
Steps to Reproduce
The request
The response
The DNS and HTTP request received
More details
To make this request one doesn't need to be authenticated.
Issue remediation
You should review the purpose and intended use of the relevant application functionality, and determine whether the ability to trigger arbitrary external service interactions is intended behavior. If so, you should be aware of the types of attacks that can be performed via this behavior and take appropriate measures.
These measures might include blocking network access from the application server to other internal systems, and hardening the application server itself to remove any services available on the local loopback adapter. If the ability to trigger arbitrary external service interactions is not intended behavior, then you should implement a whitelist of permitted services and hosts, and block any interactions that do not appear on this whitelist.
References
External service interaction (DNS)
CWE-918: Server-Side Request Forgery (SSRF)
CWE-406: Insufficient Control of Network Message Volume (Network Amplification)
Platform Info
This is Friendica, version 2023.12 that is running at the web location http://localhost. The database version is 1542/1542, the post update version is 1507/1507.
Apache version: Apache/2.4.56
PHP version: PHP/8.1.27
DB version: 11.2.2-MariaDB
The text was updated successfully, but these errors were encountered: