CVE-2024-27927: RSSHub vulnerable to SSRF in /mastodon, /zjoi, and /m4

Published Mar 6, 2024
·
Updated

Summary

Serveral Server-Side Request Forgery (SSRF) vulnerabilities in RSSHub allow remote attackers to use the server as a proxy to send HTTP GET requests to arbitrary targets and retrieve information in the internal network or conduct Denial-of-Service (DoS) attacks.

Details

/mastodon/acct/:acct/statuses/:onlymedia?

https://github.com/DIYgod/RSSHub/blob/5928c5db2472e101c2f5c3bafed77a2f72edd40a/lib/routes/mastodon/acct.js#L4-L7

https://github.com/DIYgod/RSSHub/blob/5928c5db2472e101c2f5c3bafed77a2f72edd40a/lib/routes/mastodon/utils.js#L85-L105

/zjol/paper/:id?

https://github.com/DIYgod/RSSHub/blob/172f6cfd2b69ea6affdbdedf61e6dde1671f3796/lib/routes/zjol/paper.js#L7-L13

/m4/:id?/:category

https://github.com/DIYgod/RSSHub/blob/172f6cfd2b69ea6affdbdedf61e6dde1671f3796/lib/routes/m4/index.js#L10-L14

PoC

- https://rsshub.app/mastodon/acct/test@a6wt15r2.requestrepo.com%23/statuses - https://rsshub.app/zjol/paper/a6wt15r2.requestrepo.com%23 - https://rsshub.app/m4/a6wt15r2.requestrepo.com%23/test

Impact

The attacker can send malicious requests to a RSSHub server, to make the server send HTTP GET requests to arbitrary destinations and see partial responses. This may lead to:

1. Leak the server IP address, which could be hidden behind a CDN. 2. Retrieve information in the internal network. e.g. which addresses/ports are accessible, the titles and meta descriptions of HTML pages. 3. DoS amplification. The attacker could request the server to download some large files, or chain several SSRF requests in a single attacker request: https://rsshub.a.com/zjol/paper/rsshub.b.net%2Fzjol%2Fpaper%2Frsshub.a.com%252Fzjol%252Fpaper%252Frsshub.b.net%25252Fzjol%25252Fpaper%25252Frsshub.a.com%2525252Fzjol%2525252Fpaper%2525252Fexample.com%2525252523%25252523%252523%2523%23.

Other sources

RSSHub is an open source RSS feed generator. Prior to version 1.0.0-master.a429472, RSSHub allows remote attackers to use the server as a proxy to send HTTP GET requests to arbitrary targets and retrieve information in the internal network or conduct Denial-of-Service (DoS) attacks. The attacker can send malicious requests to a RSSHub server, to make the server send HTTP GET requests to arbitrary destinations and see partial responses. This may lead to leak the server IP address, which could be hidden behind a CDN; retrieving information in the internal network, e.g. which addresses/ports are accessible, the titles and meta descriptions of HTML pages; and denial of service amplification. The attacker could request the server to download some large files, or chain several SSRF requests in a single attacker request.

— NVD

Affected Software

2 affected componentsFixes available
npm/rsshub<1.0.0-master.a429472
1.0.0-master.a429472
RSSHub Rsshub Node.js<1.0.0-master.a429472

Event History

Mar 6, 2024
Advisory Published
via GitHub·05:03 PM
CVE Published
via MITRE·08:42 PM
Data Sourced
via MITRE·08:42 PM
DescriptionSeverityWeakness
Mar 21, 2024
Data Sourced
via NVD·02:52 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·02:52 AM
RemedyAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2024-27927?

CVE-2024-27927 has been classified as a high-severity vulnerability due to its potential for SSRF attacks that can lead to data exposure and DoS conditions.

2

How do I fix CVE-2024-27927?

To remediate CVE-2024-27927, upgrade to the version 1.0.0-master.a429472 or later of the rsshub package.

3

What are the risks associated with CVE-2024-27927?

The risks include unauthorized access to internal network resources, data leakage, and potential Denial-of-Service attacks.

4

Who is affected by CVE-2024-27927?

Any user or organization utilizing vulnerable versions of the rsshub software is at risk of exploitation through this vulnerability.

5

Can CVE-2024-27927 be exploited remotely?

Yes, CVE-2024-27927 can be exploited remotely, allowing attackers to send arbitrary HTTP GET requests through the vulnerable server.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203