Skip to content
Path traversal Write-up Intermediate

WeBid <= 1.0.2 (includes/messages.inc.php) Local File Inclusion Vulnerability

User input passed to the index.php script is not properly sanitised in includes/messages.inc.php, allowing directory traversal sequences in the 'lan' parameter. An attacker could include a local file containing arbitrary code, which the vulnerable script would execute.

karmainsecurity.com

Published on karmainsecurity.com

WeBid contains a flaw that may allow a remote attacker to execute arbitrary commands or code. The issue is due to user input passed to the index.php script not being properly sanitized in the includes/messages.inc.php script, specifically directory traversal style attacks (e.g., ../../) supplied to the ‘lan’ parameter.

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

Impact

An attacker could include a local file containing arbitrary commands or code that would be executed by the vulnerable script.

What the attacker needed

Access to index.php with lan parameter

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.

This is a local file inclusion bug. The website takes a value from the user (the 'lan' parameter) and uses it to decide which file to load, without cleaning it first. By using '../' sequences, an attacker can make the site load a different file on the same server, and if that file contains code, the server may run it.

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.