The vulnerability scanner focuses on YesWiki, an open-source wiki platform used by individuals and organizations to collaboratively create and manage content. YesWiki is particularly popular due to its extensibility and flexibility, allowing users to add features and customize their wikis according to their needs. Many educational institutions leverage YesWiki for maintaining wikis due to its user-friendly interface and community support. Companies and groups use it for documentation, knowledge management, and internal communication purposes. It offers plugins and themes to enhance functionality, making it a versatile option for various use cases. The platform's reliance on Bazar forms and ActivityPub integration adds to its popularity but also opens avenues for vulnerabilities.
The identified vulnerability is Server-Side-Request-Forgery (SSRF), which occurs when an attacker can make the server send HTTP requests to arbitrary locations. This can happen without authentication, posing a significant risk. By exploiting the SSRF vulnerability, attackers can manipulate the server to interact with internal or external resources. This particular SSRF in YesWiki affects the ActivityPub inbox, a feature used by some YesWiki Bazar forms, leading to unauthorized requests. The attacker does not require valid credentials to exploit this flaw, making it a high-severity vulnerability.
Technically, the vulnerability arises from the way YesWiki's route '/api/forms/{formId}/actor/inbox' passes headers to the HttpSignatureService. This flaw allows interaction with URLs controlled by an attacker without proper validation. Exploitation involves crafting specific POST requests to the endpoint, manipulating the 'Signature' header to include a malicious keyId. The vulnerability requires that ActivityPub is enabled, which could be checked by examining specific JSON responses in YesWiki. The susceptibility is due to a lack of adequate validation of incoming requests.
If exploited, the SSRF vulnerability can allow attackers to perform network reconnaissance within the server's internal environment. It can lead to exposure of sensitive information, such as metadata from cloud services, and may enable further attacks through open services. Unchecked, it provides a gateway that could compromise server data, leading to information disclosure or facilitating other attacks on more robust services through indirect exposure.
REFERENCES
- Upgrade YesWiki to version 4.6.6 or later to patch the SSRF vulnerability.
- Disable the ActivityPub integration on all Bazar forms if it is not needed.
- Implement network segmentation to separate internal services from those exposed to the internet.
- Apply strict egress filtering to control and monitor HTTP traffic leaving the network.
- Review HTTP request handling to ensure proper validation and sanitation.
Get AI-powered remediation steps tailored to your asset.
Try AI Solutions →