# OGNLi

## Description

Object-Graph Navigation Language (OGNL) est un langage d’expression open source pour Java. La fonction principale d’OGNL est d’obtenir et de définir des propriétés d’objet : « La plupart de ce que vous pouvez faire en Java est possible dans OGNL. »

Les expressions OGNL sont évaluées en utilisant des séquences `%{code}` et `${code}`

Ressource: <https://commons.apache.org/dormant/commons-ognl/language-guide.html>

## Reconnaissance

```
%{7*7} #doit renvoyer 49
${7*7} #doit renvoyer 49
```

## Ressources

{% embed url="<https://github.blog/2023-01-27-bypassing-ognl-sandboxes-for-fun-and-charities/>" %}

{% embed url="<https://github.com/hev0x/CVE-2022-26134>" %}

{% embed url="<https://github.com/hev0x/CVE-2021-26084_Confluence>" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://blog.s1rn3tz.ovh/pentest-web/injections/eli/ognli.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
