-
Notifications
You must be signed in to change notification settings - Fork 481
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Enhancement] Add server setting to disable SSRF req filters to allow internal addresses #2549
Comments
Is this an issue with abs or rss-bridge? I've never used that so I'm not sure what to make of this. |
i think it's an issue in podcastUtils.js here is what happens in the audiobookshelf container:
But other Clients have no problems and w3c feed validator says, thats a correct feed: w3c validator Update: Here is the correct Link. The first i wrote was wrong. |
I've not seen a podcast RSS feed that looks like the one you are using. The RSS feeds Abs is expecting look like this: https://help.apple.com/itc/podcasts_connect/#/itcbaf351599 https://www.castfeedvalidator.com/validate.php?url=https://siftrss.com/f/By7vlK6Z3Q Abs is expecting the Are you able to add that RSS feed to other podcast apps? I doubt that would be recognized as a podcast |
@zentonic Thanks for jumping in as I've been super busy recently. @advplyr They acknowledge on rss-bridge's end that their feed handling isn't totally spot on in reproducing a feed that has been filtered like SiftRSS is, however I'm able to add an rss-bridge feed to other podcast applications without an error as well. |
What podcast app accepts that format of RSS feed so that I can test it out? |
I am particularly interested in this feed: Unfortunately, not all "podcasts" from German radio stations have real feeds. That's why I'm glad that rss bridge is now building them. On the page you can select ATOM and then this feed appears. This is w3c validatable and can also be used in AntennaPOD, for example. But i would prefer to use audiobookshelf instead for listening this productions :-) siftrss was for me a experiment to "enhance" oder "clean up" the rss bridge feed. since i wrote a static-page podcast publisher i know that the feed thing is ugly. and all clients and libraries and servers do other things. but i don't know what happens here. |
Apple Podcasts loads the feed without issue on my iPhone. |
instead of
rss-bridges feed starts with
after disabling in https://github.com/advplyr/audiobookshelf/blob/master/server/utils/podcastUtils.js ... around line 200 !json?.rss there is a new error:
BUT: The Feeds from there are working fine (slow but fine and also only on external domains, not in LAN) without any changes in Audiobookshelf. |
That has to do with an SSRF filter blocking internal IPs. That was put in after a security advisory but a way to disable that is going to be put in soon. I'm not sure what that will be yet but probably an environment variable. |
Added in v2.11.0 Using environment variable |
Describe the issue
I generated a filtered RSS podcast feed from a self-hosted instance of rss-bridge in mrss format. The feed appears very similar to an identically regex filtered feed created on SiftRSS.
When I attempt to add the feed to audiobookshelf, I received a popup 'Failed to get podcast feed', and the browser console errors are:
The SiftRSS link of the same podcast regex works without issue - https://siftrss.com/f/G6k08l5zqgL
Both the SiftRSS and my rss-bridge feed work when I test them at https://rssviewer.app/. I temporarily exposed my rss-bridge with a public CNAME to test this, but generally it is only accessible from my private network as it redirects the FQDN to my Traefik host.
I am able to successfully pull the entire feed from shell with
docker exec audiobookshelf curl "https://rss.domain.com/feedurl"
but without quotes, I receive an error so I'm wondering if Audiobookshelf is having an issue escaping some of the characters in the full URL?Partly sanitized URL:
https://rss.domain.com/?action=display&bridge=FilterBridge&url=https%3A%2F%2Ffeeds.megaphone.fm%2FQCD8414694967&filter=%5E%28Gatewalkers+Episode%7CGatewalkers+Session%29&filter_type=block&target_title=on&length_limit=-1&format=Mrss
Steps to reproduce the issue
Audiobookshelf version
v2.7.2
How are you running audiobookshelf?
Docker
The text was updated successfully, but these errors were encountered: