Lucene search

K
githubGitHub Advisory DatabaseGHSA-3P3P-CGJ7-VGW3
HistoryMar 06, 2024 - 5:03 p.m.

RSSHub vulnerable to Server-Side Request Forgery

2024-03-0617:03:11
CWE-918
GitHub Advisory Database
github.com
7
rsshub
ssrf
vulnerabilities
remote attackers
proxy
http get requests
arbitrary targets
information retrieval
dos attacks

6.5 Medium

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

LOW

Integrity Impact

NONE

Availability Impact

LOW

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L

7 High

AI Score

Confidence

Low

0.001 Low

EPSS

Percentile

25.8%

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/:only_media?

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

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.

Affected configurations

Vulners
Node
rsshubrsshubRange<1.0.0-master.a429472node.js
CPENameOperatorVersion
rsshublt1.0.0-master.a429472

6.5 Medium

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

LOW

Integrity Impact

NONE

Availability Impact

LOW

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L

7 High

AI Score

Confidence

Low

0.001 Low

EPSS

Percentile

25.8%

Related for GHSA-3P3P-CGJ7-VGW3