66
Views
13
Comments
How can I change 403 Forbidden message to 404 Not Found message
Question
Application Type
Reactive

Anyone knows how to modify or change this message 403 forbidden to 404 not found to avoid browsable web directory. Thanks!

2024-07-05 14-16-55
Daniël Kuhlmann
 
MVP

Hi,

Your screenshot doesn't seem to be a webpage generated by OutSystems (it ends with .php).

So how is your question OutSystems related?

Regards,

Daniel

UserImage.jpg
RD.

Let me check with our lead, this one was raise by VAPT findings.

UserImage.jpg
RD.

Hello Daniel, 
to answer your question, the base url in the image is also the link we use for Outsystems Service Studio, and where we accessing the environment.

2024-07-05 14-16-55
Daniël Kuhlmann
 
MVP

But it cannot be a valid URL, no OutSystems URL ends with .php

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

In addition to Daniel's answer, Service Studio is a Windows (or Mac) application, it cannot be started via the browser.

2023-02-09 12-36-42
Damian Fonville

I think I understand the issue, if you request any page including .PHP from an OutSystems environment you will get the 403 forbidden (404 for personal environments). 

I think this is because the OutSystems is set to deny any PHP requests in the AWS LoadBalancers. So my guess is this can't be changed. 

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

What do you mean by "requesting [a] page (...) from an OutSystems environment"?

2023-02-09 12-36-42
Damian Fonville


{sub domain}.outsystemsenterprise.com/Discovery/Dummy.php

When I check this URL in our enterprise environment I get a 403 exactly like the screenshot.


My guess is OutSystems uses AWS Web Application Firewall, to deny any PHP requests

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP
UserImage.jpg
RD.

Noted on this answers guys, thank you!

UserImage.jpg
RD.

Hello guys,
I think my thoughts about this issue is somehow connected on this one 

https://www.outsystems.com/forums/discussion/5484/creating-custom-error-pages-with-the-outsystems-agile-platform-4-1/


The problem is I am having a hard time figuring out how to apply, can you have basic explanation for this?  I already added the configuration listed on the link and how can I apply it on the OS. Thanks!

 

UserImage.jpg
RD.

I am having this warning that the configuration is invalid

2023-02-09 12-36-42
Damian Fonville

Hi,

This is not gonna work, because the error is implemented on the Firewall level and not on the application level, so there is no manipulation possible by developers, only by OutSystems, because in cloud environments you can't access the Firewall and Loadbalancers

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.