question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Umbraco exposes all tags publicly by default

See original GitHub issue

Umbraco provides a TagsController (an UmbracoApiController) by default that allows to publicly query all tags within the site with a simple GET-request, e.g. https://umbraco.com/umbraco/api/tags/GetAllTags.

The controller is available in both Umbraco 7 & 8, although it is moved in V8:

The following remarks are added in the source, so I don’t think this is a BIG security issue (that’s why I’m creating this as an issue):

This controller does not contain methods to query for content, media or members based on tags, those methods would require authentication and should not be exposed publicly.

As tags could still expose information that shoudn’t be public (e.g. classifications on media or members) and I don’t see why Umbraco would include this controller by default, I would recommend removing this controller.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:13 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
Shazwazzacommented, Apr 11, 2019

Nice! I can update my blog at some stage with that too.

In v8 you can actually remove the TagsController, etc… by type from the composers and they won’t be auto routed at all but in v7 you can’t do that so thought I’d write a similar solution that works for both.

But yes having an extension method on routes would be nice too, happy to accept a PR if you have time too 😃

0reactions
nul800sebastiaancommented, Jul 3, 2019

Note: I’ve tested the workaround in both 7.14 and 8.0.2 by using RouteTable.Routes.Remove(RouteTable.Routes["umbraco-api-Tags"]); and that doesn’t break anything since we’re not actually removing the controller from being registered, just making sure it’s not routable.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Working with caching - Umbraco CMS
We're going to expose an endpoint that allows us to get the tags from each group. The tags from the default should be...
Read more >
problem outputting tags - Using Umbraco And Getting Started
I have a property type of Umbraco.Tags, which I've added to a document type. On my page I have typed a number of...
Read more >
Compare Releases
5206 - Umbraco exposes all tags publicly by default · 5233 - Error in Backoffice when selecting Order By Document Type in Custom...
Read more >
is it safe to expose umbraco to the public internet
But indeed most Umbraco websites by default have an easy to guess login page which results in exposure to brute force login attempts...
Read more >
UmbracoHelper - Umbraco CMS
UmbracoHelper will expose all content in the form of IPublishedContent . To get a reference to the currently executing content item from the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found