-
Search Results
-
Hello,
When adding a file to a new package, through the WPDM Downloads > All Packages > New Package screen, it seems to add the file to the WP MEdia Library, where the direct File URL can be accessed by anyone if entered into a browser.
Is there a setting where files that are part of a WPDM package are not publically accessible, and only accessible based on the WPDM settings?
I appreciate your time.
We have a gated download available after a user provides their name and email address. upon submittal they are presented with a screen that contains download button and an email is sent with a link as well. If the user selects to download using the button, then the download link in the email does not work (show “Invalid Download” error)…and vise versa.
The download button and the email link both use the same auto generated unique url (ex. https://decisivmarketplace.com/download/decisiv-commercial-vehicle-service-analysis-report-q1-2023/?wpdmdl=47231&_wpdmkey=652053e205c7a&subscriber=EKuC93DYZJBmptiLwj7miORMHYHqVgSa0LHc-RoRVF-WxU0xUv_ARxSS0MFerUw6s-eeGPFAAXMJ6FO8w6Aqeg)
The package download limit is 999/user
The Email Lock Options are:
Ask for visitors name: SELECTED
Download Instantly: SELECTED
Do Not Mail Download Link: NOT SELECTEDAny help is appreciated.
Here is my code
import requests
import uuid # Import the UUID library for generating unique keys# Configure the API endpoint URL and your API key
api_url = ‘https://www.downloadbrandlogos.com/wp-json/wpdm/v1/packages’
api_key = ‘your API key’# Set up headers with API key for authentication
headers = {
‘Authorization’: f’Bearer {api_key}’
}# Define a list of dictionaries, each specifying a file with its title and file path
files_data = [
{
‘title’: ‘Kerala Blasters FC.png’,
‘path’: ‘/storage/emulated/0/Download/photo.jpg’,
},
# Add more files as needed
]# Generate unique keys for files and associate them with file paths
file_key_mapping = {}
for file_info in files_data:
key = str(uuid.uuid4()) # Generate a unique key using UUID
file_path = file_info[‘path’]
file_key_mapping[key] = file_path# Use the generated keys in download_params
download_params = {
‘title’: ‘Kerala Blasters FC.pdf’,
‘author’: ‘Ken’,
‘status’: ‘publish’, # Set the status to “publish”
‘files’: file_key_mapping # Use the generated keys as file identifiers
}# Create an empty list to store file attachments
files_to_upload = []# Iterate through the list of files and create attachments
for key, file_path in file_key_mapping.items():
files_to_upload.append((‘file[]’, (key, open(file_path, ‘rb’))))# Make a POST request to create the downloadable files
response = requests.post(api_url, headers=headers, data=download_params, files=files_to_upload)# Check the response
if response.status_code == 201:
print(‘Downloadable files created successfully!’)# Extract the package ID from the API response
package_id = response.json().get(‘id’)if package_id:
# Use the package ID to attach the file to the “Attach Files” section
attachment_url = f'{api_url}/{package_id}/attach’
attachment_data = {
‘media’: ‘1’ # Attach to the “Attach Files” section (1 for yes, 0 for no)
}
attachment_response = requests.post(attachment_url, headers=headers, data=attachment_data)if attachment_response.status_code == 200:
print(‘File attached to “Attach Files” section successfully!’)
else:
print(‘Failed to attach file to “Attach Files” section.’)
print(attachment_response.text)
else:
print(‘Package ID not found in API response.’)
else:
print(‘Failed to create the downloadable files.’)
print(response.text)How can I achieve this please
Hello Download nManager Free Support Team,
I hope you are well. I would like to report a security issue that I have encountered in the latest version of the “Download nManager Free” plugin (version 3.2.76) which I recently updated on my WordPress website. This problem seems to be a vulnerability that allows attackers to access sensitive information without authentication, which is extremely concerning for the security of my website.
The vulnerability is described as follows:
[ Download Manager Pro < 6.3.0 – Unauthenticated Sensitive Information Disclosure
Description
The plugin leaks master key information without the need for a password, allowing attackers to download arbitrary password-protected package files.
Proof of Concept
– Create a password protected package containing one or more files.
– Navigate to the download page of the package (e.g./download/package1)
– Inspect the “Download” button beside one of the packaged files. The HTML should look like this:<button
class=”inddl btn btn-primary btn-sm”
data-pid=”123″
data-file=”12345678″
rel=”https://wpscan-vulnerability-test-bench.ddev.site/download/package1/?wpdmdl=123&ind=12345678″
data-pass=”#pass_113_1679405558600″>
<i class=”fa fa-download”></i>
Download
</button>– Note the
wpdmdlandindURL parameters for later.
– Send a POST request to/wp-json/wpdm/validate-filepass:fetch(“/wp-json/wpdm/validate-filepass”, {
“headers”: {
“accept”: “*/*”,
“content-type”: “application/x-www-form-urlencoded; charset=UTF-8”,
},
“body”: “”,
“method”: “POST”,
“credentials”: “include”
}).then(response ► response.text()).then(text ► console.log(text));– The response will look like the following:
{“success”:true,”downloadurl”:”\/wp-json\/wpdm\/validate-filepass?wpdmdl=0&_wpdmkey=abcdef&ind=”}
– Construct a download URL as follows, using the above
_wpdmkeyparameter, as well as thewpdmdlandindparameters from above:https://wpscan-vulnerability-test-bench.ddev.site/download/package1/?
wpdmdl=123&ind=12345678&_wpdmkey=abcdef– See that the file may be download from that URL, without any knowledge of its password. ]
Despite having updated the plugin to the latest available version (version 3.2.76), this issue still persists on my website. As a result, I am very concerned about the security of my site and the data of my users.
I kindly request your assistance and guidance in addressing this security issue effectively. Can you please confirm if you are aware of this vulnerability and if you are working on a solution? If so, when can we expect an update that addresses this problem?
The security of my website is of utmost importance, and I would appreciate any help you can provide to resolve this issue urgently. If additional information or access to my website is needed to investigate this problem, I am willing to provide it securely.
I look forward to your response and appreciate your attention to this critical security matter.
I’m sorry if my English is poor, I am Spanish and I am using ChatGPT to translate 🙂
Thank you and regards,
Saray
saray.mc@gmail.comWe have several documents in a members only portal (powered by Ultimate Member) that use Password Lock that no longer open. As far as I know, things were working fine until 2 or 3 weeks ago. When the password (different passwords for each document) is entered, the buttons reads “Processing” and nothing happens. In developer tools, I see a 403 error on [our-website]/wp-json/wpdm/validate-password. When that url is opened, it reads
{"code":"rest_no_route","message":"No route was found matching the URL and request method.","data":{"status":404}}Disabling plugins (all except WPDM and Ultimate Member) does not seem to resolve the issue.Edit to add: no errors when opening [our-website]/wp-json
Topic: Related Products URL
Is it possible via Add-Ons or templates to associate a related pages URL with a package? See image as an example.
Topic: ?wpdmdl= not working
Hi,
recently the ?wpdml= for an direct link stopped working correctly.
When accessing for an example:
https://www.international-petroleum.com/download/?wpdmdl=2561
https://www.international-petroleum.com/download/?wpdmdl=2557
https://www.international-petroleum.com/download/?wpdmdl=2558It gives the same files to download, while it should be different files.
But when adding some random text in the url like:
https://www.international-petroleum.com/wadawdawd/download/?wpdmdl=2558
It gives the correct document.
