HackTheBox VariaType Exposed Git, Traversal Filter Bypass, f...#2370
Open
carlospolop wants to merge 1 commit into
Open
HackTheBox VariaType Exposed Git, Traversal Filter Bypass, f...#2370carlospolop wants to merge 1 commit into
carlospolop wants to merge 1 commit into
Conversation
Collaborator
Author
🔗 Additional ContextOriginal Blog Post: https://0xdf.gitlab.io/2026/06/13/htb-variatype.html Content Categories: Based on the analysis, this content was categorized under "HackTricks Main: Pentesting Web > File Inclusion/Path Traversal; Pentesting Web/File Upload or Network Services Pentesting > Flask/PHP; Linux Privilege Escalation > sudo/package installer abuse; optionally add a new note under web/file processing for fontTools/designspace arbitrary file write and FontForge filename command injection". Repository Maintenance:
Review Notes:
Bot Version: HackTricks News Bot v1.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 Automated Content Update
This PR was automatically generated by the HackTricks News Bot based on a technical blog post.
📝 Source Information
🎯 Content Summary
Overview: The post is a HackTheBox VariaType Linux writeup chaining multiple realistic web and local escalation issues across two virtual hosts:
variatype.htb, a Flask-based variable-font generator, andportal.variatype.htb, a PHP internal validation portal. The full chain is: exposed.gitrepository disclosure → recovery of portal credentials from Git history → authenticated arbitrary file read via a naive single-pass traversal filter bypass → local...🔧 Technical Details
Exposed Git repository → historical secret recovery: If
/.git/is publicly reachable, reconstruct the repository with git-dumper, then inspect not only the current working tree but also commit history. Usegit log --onelineto identify commits andgit diff old newto recover deleted credentials, tokens, endpoints, or configuration. In this case,auth.phpcurrently contained$USERS = [];, but the diff exposed'gitbot' => 'G1tB0t_Acc3ss_2025!', which authenticated to the portal.Single-pass path traversal sanitization bypass: A dangerous anti-pattern is sanitizing filenames with a single replacement such as
$path = str_replace('../', '', $_GET['f']);. Overlapping payloads like....//bypass this because the filter removes the inner../, leaving a new../behind. Repeating the pattern...🤖 Agent Actions
Done.
Updated:
src/pentesting-web/file-inclusion/README.mdAdded:
str_replace('../', '', ...)traversal bypass note using....///.git/repos (git log,git show,git diff)/etc/passwd→ vhost config → document root source → creds/config/jobs)Notes:
fontTools/FontForge/setuptoolsstages because the provided material was too HTB-chain-specific / high-level for a clean reusable HackTricks entry without overfitting.git diffand file rereads.mdbook buildcould not be run becausemdbookis not installed in this environment.This PR was automatically created by the HackTricks Feed Bot. Please review the changes carefully before merging.