Skip to content

Fix for Web Directories Listable Vulnerability#111

Open
ajayan508 wants to merge 1 commit into
rdkcentral:mainfrom
ajayan508:rdkm/RDKPREINTG-16153
Open

Fix for Web Directories Listable Vulnerability#111
ajayan508 wants to merge 1 commit into
rdkcentral:mainfrom
ajayan508:rdkm/RDKPREINTG-16153

Conversation

@ajayan508
Copy link
Copy Markdown

@ajayan508 ajayan508 commented Jan 9, 2026

We found a vulnerability while deploying in rdkm server, the URL was listing all the files in the path - . Added a fix for this , Now the path won't list all the files in it , but the required files will be available through URL.

@vimalks22
Copy link
Copy Markdown

Thanks Abhija.
Need to disable folder Web Directories Listable folders as per the Compliance Security policy. Either you can restrict to authentication based or disable the folder. Can someone review ?

@akshay-p-infosys
Copy link
Copy Markdown
Contributor

akshay-p-infosys commented Jan 13, 2026

We found a vulnerability while deploying in rdkm server, the URL was listing all the files in the path - . Added a fix for this , Now the path won't list all the files in it , but the required files will be available through URL.

The directory listing was introduced so that when we click the "browse media assets" tab, it will list the media assets present in test-materials folder. Instead of removing the listing completely, is it fine to keep the listing only for test-materials by adding the below code ( modified the directory)

<Directory "/home/MVT/test-materials">
Options Indexes FollowSymLinks
AllowOverride All
Require all granted

@vimalks22
Copy link
Copy Markdown

vimalks22 commented Jan 13, 2026

@akshay-p-infosys I doubt whether they will allow for test asset only. let me check on it.

Anyway, I don't think the below requirement for listing test asset is not working currently in the publicly hosted MVT, can you please confirm ?

when we click the "browse media assets" tab, it will list the media assets present in test-materials folder.

@akshay-p-infosys
Copy link
Copy Markdown
Contributor

akshay-p-infosys commented Jan 14, 2026

@vimalks22 I tested it on chrome browser (version - 142.0.7444.162 ) on ubuntu OS ( version - 22.04.5 ).
It is working fine.

@ajayan508
Copy link
Copy Markdown
Author

ajayan508 commented Jan 16, 2026

@akshay-p-infosys

When checked in the public server, the URL is listing the test assets - https://mvt.rdkcentral.com/test-materials/.

But the Browse Media Assets tab it is redirecting to this URL- https://mvt.onemw.net/test-materials/

Is this due to this change -

+ this.addLink('Browse Media Assets', 'https://mvt.onemw.net/test-materials/');

Meanwhile, We will check if the vulnerability can be fixed if it opens only this particular path

@akshay-p-infosys
Copy link
Copy Markdown
Contributor

@ajayan508 yes its due to that change

@vimalks22
Copy link
Copy Markdown

@akshay-p-infosys we are trying to convey that clicking on the "browse media assets" tab is not working for long time in the mvt.rdkcentral.com instance. so, it seems it is not a major requirement.
Also got confirmation from security team that, In accordance with security guidelines, all directories must be restricted.
So please let us know, either you can support getting the PR merged or we will apply these changes directly to the MVT tool hosted in RDK.

@akshay-p-infosys
Copy link
Copy Markdown
Contributor

@vimalks22 if this change is done due to security issue, then we are ok to get this PR merged

@vimalks22
Copy link
Copy Markdown

@akshay-p-infosys Thanks for the confirmation. If you need this feature in the other instances of MVT you can keep this feature ( No need to merge the PR) . But we will ensure whenever MVT is deployed in RDK/Comcast VM's the directory listing will be disabled.

@akshay-p-infosys
Copy link
Copy Markdown
Contributor

@vimalks22 Based on the above comment, I can understand that you will be making this code changes locally on your server before deploying the code. I also understand that you are not keen in getting this PR merged in the main branch. Please confirm if our understanding is correct.

@vimalks22
Copy link
Copy Markdown

@akshay-p-infosys Your understanding is right. Is that ok ?
Also letting you know that we had applied the changes in RDK hosted MVT tool, mvt.rdkcentral.com. Please let us know if there are any issues in the tool because of these changes.

@akshay-p-infosys
Copy link
Copy Markdown
Contributor

@vimalks22 yes we are OK with PR not getting merged. Also we are not seeing any issues with MVT tool after your deployment.

@vimalks22
Copy link
Copy Markdown

Thank you for the confirmation @akshay-p-infosys

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants