Skip to content
Path traversal Write-up Intermediate

SugarCRM (Web Logic Hooks module) Path Traversal Vulnerability

The webhook_target_module parameter in the Web Logic Hooks module was not properly sanitised before being used to write PHP code into a hooks file, allowing path traversal. An attacker with admin privileges could use this to create arbitrary directories.

karmainsecurity.com

Published on karmainsecurity.com

User input passed through the “webhooktargetmodule” parameter is not properly sanitized before being used to save PHP code into the hooks file through the Web Logic Hooks module. This can be exploited to carry out Path Traversal attacks and e.g. create arbitrary directories.

The author, on karmainsecurity.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the webhook_target_module parameter was concatenated into a file path without sanitising path traversal sequences before writing the hooks file.

Impact

An attacker with admin privileges could traverse directories and create arbitrary directories on the server; the text does not claim code execution beyond writing the hooks file.

What the attacker needed

Admin privileges

The fix

It should be fixed by updating to the listed patched versions, which the text presents as the solution.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

A path traversal bug lets someone slip special characters like dot-dot-slash into a file path so the program writes somewhere it should not. Here an administrator-supplied value was used to build a file path without cleaning it, so the file could land outside the intended folder. The catch is that you already needed admin rights to reach this feature.

What is Path traversal?

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.

Similar reports

View all

Same bug class and techniques, clearest first.

Path traversal and file inclusion

The lesson behind this report.

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.